Lines Matching refs:udphdr
139 u_int8_t stripsiz = (u_int8_t)sizeof(struct udphdr); in esp4_input_strip_udp_encap()
157 u_int8_t stripsiz = (u_int8_t)sizeof(struct udphdr); in esp6_input_strip_udp_encap()
257 !(ip->ip_p == IPPROTO_UDP && off >= sizeof(struct udphdr))) { in esp4_input_extended()
537 off -= sizeof(struct udphdr); // off no longer includes the udphdr's size in esp4_input_extended()
543 struct udphdr *encap_uh = (__typeof__(encap_uh))(void *)((caddr_t)ip + off); in esp4_input_extended()
780 struct udphdr *udp; in esp4_input_extended()
787 if (m->m_len < off + sizeof(struct udphdr)) { in esp4_input_extended()
788 m = m_pullup(m, off + sizeof(struct udphdr)); in esp4_input_extended()
797 udp = (struct udphdr *)(void *)(((u_int8_t *)ip) + off); in esp4_input_extended()
964 !(*nproto == IPPROTO_UDP && off >= sizeof(struct udphdr)))) { in esp6_input_extended()
1240 off -= sizeof(struct udphdr); // off no longer includes the udphdr's size in esp6_input_extended()
1246 struct udphdr *encap_uh = (__typeof__(encap_uh))(void *)((caddr_t)ip6 + off); in esp6_input_extended()