Lines Matching refs:udphdr
163 off += sizeof(struct udphdr); in udp6_append()
220 struct udphdr *uh;
273 ctx.uh = (struct udphdr *)((char *)ctx.ip6 + off); in udp6_multi_input()
353 struct udphdr *uh; in udp6_input()
368 if (m->m_len < off + sizeof(struct udphdr)) { in udp6_input()
369 m = m_pullup(m, off + sizeof(struct udphdr)); in udp6_input()
377 uh = (struct udphdr *)((caddr_t)ip6 + off); in udp6_input()
398 if ((ulen < sizeof(struct udphdr)) || (ulen > plen)) { in udp6_input()
407 if ((ulen < sizeof(struct udphdr)) || (plen != ulen)) { in udp6_input()
554 struct udphdr uh; in udp6_common_ctlinput()
670 struct udphdr *udp6; in udp6_send()
859 plen = sizeof(struct udphdr) + ulen; in udp6_send()
866 M_PREPEND(m, hlen + sizeof(struct udphdr), M_NOWAIT); in udp6_send()
876 udp6 = (struct udphdr *)(mtod(m, caddr_t) + hlen); in udp6_send()
919 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); in udp6_send()