Lines Matching refs:UDP_HLEN
31 #define UDP_HLEN (sizeof(struct udphdr)) macro
107 IPPROTO_UDP + (uint32_t)(UDP_HLEN + payload_len)); in udp_checksum()
108 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp_checksum()
125 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp6_checksum()
139 int payload_offset = offset > 0 ? offset - UDP_HLEN : 0; in send_fragment()
147 udphdr.len = htons(UDP_HLEN + payload_len); in send_fragment()
153 memcpy(frag_start, &udphdr, UDP_HLEN); in send_fragment()
169 memcpy(frag_start + UDP_HLEN, udp_payload, in send_fragment()
170 frag_len - FRAG_HLEN - UDP_HLEN); in send_fragment()
187 memcpy(frag_start + UDP_HLEN, udp_payload, in send_fragment()
188 frag_len - IP4_HLEN - UDP_HLEN); in send_fragment()
247 while (offset < (UDP_HLEN + payload_len)) { in send_udp_frags()
258 while (offset < (UDP_HLEN + payload_len)) { in send_udp_frags()
277 while (offset < (UDP_HLEN + payload_len)) { in send_udp_frags()
297 frag_len = UDP_HLEN + max_frag_len; in send_udp_frags()
325 while (offset < (UDP_HLEN + payload_len)) { in send_udp_frags()