Lines Matching defs:udp
66 #include <netinet/udp.h>
153 struct udphdr *udp = NULL;
190 "failed to inject %u byte UDP for SA %s/%08lx\n",
197 udp = (struct udphdr *)(mtod(mo, char *) + roff);
198 udp->uh_sport = key_portfromsaddr(&saidx->src);
199 udp->uh_dport = key_portfromsaddr(&saidx->dst);
200 udp->uh_sum = 0;
201 udp->uh_ulen = htons(m->m_pkthdr.len - iphlen);
212 /* IPv4 packet does not have to be set UDP checksum. */
230 /* IPv6 packet should be set UDP checksum. */