Lines Matching refs:udphdr
194 m_adj(n, off + sizeof(struct udphdr)); in udp6_append()
212 struct udphdr *uh;
265 ctx.uh = (struct udphdr *)((char *)ctx.ip6 + off); in udp6_multi_input()
345 struct udphdr *uh; in udp6_input()
359 if (m->m_len < off + sizeof(struct udphdr)) { in udp6_input()
360 m = m_pullup(m, off + sizeof(struct udphdr)); in udp6_input()
368 uh = (struct udphdr *)((caddr_t)ip6 + off); in udp6_input()
389 if ((ulen < sizeof(struct udphdr)) || (ulen > plen)) { in udp6_input()
398 if ((ulen < sizeof(struct udphdr)) || (plen != ulen)) { in udp6_input()
543 struct udphdr uh; in udp6_common_ctlinput()
657 struct udphdr *udp6; in udp6_send()
846 plen = sizeof(struct udphdr) + ulen; in udp6_send()
853 M_PREPEND(m, hlen + sizeof(struct udphdr), M_NOWAIT); in udp6_send()
863 udp6 = (struct udphdr *)(mtod(m, caddr_t) + hlen); in udp6_send()
906 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); in udp6_send()