Home
last modified time | relevance | path

Searched refs:udp_targ (Results 1 – 1 of 1) sorted by relevance

/external/android-clat/
Dtranslate.c405 struct udphdr *udp_targ = out[pos].iov_base; in udp_translate() local
407 memcpy(udp_targ, udp, sizeof(struct udphdr)); in udp_translate()
413 if (udp_targ->check) { in udp_translate()
414 udp_targ->check = ip_checksum_adjust(udp->check, old_sum, new_sum); in udp_translate()
420 udp_targ->check = 0; // Checksum field must be 0 when calculating checksum. in udp_translate()
421 udp_targ->check = packet_checksum(new_sum, out, pos); in udp_translate()
426 if (!udp_targ->check) { in udp_translate()
427 udp_targ->check = 0xffff; in udp_translate()