Home | History | Annotate | Download | only in android-clat

Lines Matching refs:udp

39 #include <netinet/udp.h>
89 struct udphdr udp = {
92 .len = htons(len + sizeof(udp)),
98 .tot_len = htons(len + sizeof(ip) + sizeof(udp)),
109 { &udp, sizeof(udp) }, // Transport header
119 sum = ipv4_pseudo_header_checksum(&ip, ntohs(udp.len));
120 sum = ip_checksum_add(sum, &udp, sizeof(udp));
122 udp.check = ip_checksum_finish(sum);