Lines Matching defs:udp
165 udp_hdr udp;
225 // udp header
226 p->udp.src_port = htons(sport);
227 p->udp.dst_port = htons(dport);
228 p->udp.length = htons(length);
229 p->udp.checksum = 0;
232 p->udp.checksum = ip6_checksum(&p->ip6, HDR_UDP, length);
269 udp_hdr* udp = _data;
275 if (udp->checksum == 0)
278 if (udp->checksum == 0xFFFF)
279 udp->checksum = 0;
286 n = ntohs(udp->length);
293 uint16_t dport = ntohs(udp->dst_port);
294 uint16_t sport = ntohs(udp->src_port);