Home
last modified time | relevance | path

Searched refs:udphdr (Results 1 – 25 of 107) sorted by relevance

12345

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dudp.h38 struct udphdr { struct
45 static __inline struct udphdr * argument
49 return (struct udphdr *)skb_transport_header(skb); in udp_hdr()
/freebsd/sys/net/
H A Dif_gre.h58 struct udphdr gi_udp;
71 struct udphdr gi6_udp;
100 struct greudp *udphdr; member
127 #define gre_udphdr gre_uhdr.udphdr
140 void gre_update_udphdr(struct gre_softc *, struct udphdr *, uint16_t);
H A Dif_ovpn.c215 sizeof(struct udphdr) - sizeof(struct ovpn_wire_header))
1632 ohdr = mtodo(m, sizeof(struct udphdr)); in ovpn_decrypt_rx_cb()
1663 m_adj_decap(m, sizeof(struct udphdr) + in ovpn_decrypt_rx_cb()
1983 struct udphdr *udp; in ovpn_encap()
2002 M_PREPEND(m, sizeof(struct udphdr), M_NOWAIT); in ovpn_encap()
2009 udp = mtod(m, struct udphdr *); in ovpn_encap()
2015 udp->uh_ulen = htons(sizeof(struct udphdr) + len); in ovpn_encap()
2033 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); in ovpn_encap()
2044 ip->ip_len = htons(sizeof(struct ip) + sizeof(struct udphdr) + in ovpn_encap()
2085 ip6->ip6_plen = htons(sizeof(*ip6) + sizeof(struct udphdr) + in ovpn_encap()
[all …]
H A Dif_gre.c462 gre_update_udphdr(struct gre_softc *sc, struct udphdr *udp, uint16_t csum) in gre_update_udphdr()
687 struct udphdr *uh;
758 uh = (struct udphdr *)mtodo(m, len);
767 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum);
768 len += sizeof(struct udphdr);
/freebsd/tests/sys/netinet/libalias/
H A Dutil.c111 struct udphdr *
114 struct udphdr *u = (struct udphdr *)((uintptr_t)p + hlen); in set_udp()
H A D2_natout.c133 struct udphdr *ui, *uo;
175 struct udphdr *u;
205 struct udphdr *ui __unused, *uo;
252 struct udphdr *u;
313 struct udphdr *uo;
367 struct udphdr *uo, *uo2, *uo3;
406 struct udphdr *uo, *uo2, *uo3;
439 struct udphdr *uo;
494 struct udphdr *uo, *uo2, *uo3;
H A D3_natin.c47 struct udphdr *u;
149 struct udphdr *u;
232 struct udphdr *u;
307 struct udphdr *u;
337 struct udphdr *u;
/freebsd/sys/netinet6/
H A Dudp6_usrreq.c163 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()
[all …]
H A Din6_rss.c213 const struct udphdr *uh; in rss_mbuf_software_hash_v6()
353 if (m->m_len < off + sizeof(struct udphdr)) { in rss_mbuf_software_hash_v6()
357 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
/freebsd/stand/libsa/
H A Dudp.c60 struct udphdr *uh; in sendudp()
77 uh = (struct udphdr *)pkt - 1; in sendudp()
108 struct udphdr *uh; in readudp()
/freebsd/contrib/tcpdump/
H A Dprint-udp.c298 const struct udphdr *up, in udp_cksum()
306 const struct udphdr *up, u_int len) in udp6_cksum()
369 const struct udphdr *up; in udp_print()
378 up = (const struct udphdr *)bp; in udp_print()
392 if (length < sizeof(struct udphdr)) { in udp_print()
409 if (ulen < sizeof(struct udphdr)) { in udp_print()
414 ulen -= sizeof(struct udphdr); in udp_print()
415 length -= sizeof(struct udphdr); in udp_print()
563 sum = udp_cksum(ndo, ip, up, length + sizeof(struct udphdr)); in udp_print()
575 sum = udp6_cksum(ndo, ip6, up, length + sizeof(struct udphdr)); in udp_print()
/freebsd/sys/netinet/
H A Dudp_usrreq.c264 off += sizeof(struct udphdr); in udp_append()
335 struct udphdr *uh = (struct udphdr *)(ip + 1); in udp_multi_match()
363 struct udphdr *uh = (struct udphdr *)(ip + 1); in udp_multi_input()
463 struct udphdr *uh; in udp_input()
492 if (m->m_len < iphlen + sizeof(struct udphdr)) { in udp_input()
493 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == NULL) { in udp_input()
499 uh = (struct udphdr *)((caddr_t)ip + iphlen); in udp_input()
535 if (len > ip_len || len < sizeof(struct udphdr)) { in udp_input()
723 struct udphdr *uh; in udp_common_ctlinput()
729 uh = (struct udphdr *)((caddr_t)ip + (ip->ip_hl << 2)); in udp_common_ctlinput()
[all …]
H A Din_rss.c209 const struct udphdr *uh; in rss_mbuf_software_hash_v4()
328 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4()
329 if (m->m_len < iphlen + sizeof(struct udphdr)) { in rss_mbuf_software_hash_v4()
H A Dtcp_subr.c579 struct udphdr *uh; in tcp_recv_udp_tunneled_packet()
591 if (m->m_len < off + sizeof(struct udphdr) + thlen && in tcp_recv_udp_tunneled_packet()
592 (m = m_pullup(m, off + sizeof(struct udphdr) + thlen)) == NULL) { in tcp_recv_udp_tunneled_packet()
597 uh = (struct udphdr *)((caddr_t)iph + off); in tcp_recv_udp_tunneled_packet()
600 if (m->m_len < off + sizeof(struct udphdr) + thlen) { in tcp_recv_udp_tunneled_packet()
601 m = m_pullup(m, off + sizeof(struct udphdr) + thlen); in tcp_recv_udp_tunneled_packet()
607 uh = (struct udphdr *)((caddr_t)iph + off); in tcp_recv_udp_tunneled_packet()
613 m->m_len -= sizeof(struct udphdr); in tcp_recv_udp_tunneled_packet()
614 m->m_pkthdr.len -= sizeof(struct udphdr); in tcp_recv_udp_tunneled_packet()
625 iph->ip_len = htons(ntohs(iph->ip_len) - sizeof(struct udphdr)); in tcp_recv_udp_tunneled_packet()
[all …]
H A Dudp.h42 struct udphdr { struct
/freebsd/tools/tools/netmap/
H A Dpkt_hash.c161 const struct udphdr *udph = NULL; in decode_ip_n_hash()
172 udph = (const struct udphdr *)((const uint8_t *)iph + (iph->ip_hl<<2)); in decode_ip_n_hash()
232 const struct udphdr *udph = NULL; in decode_ipv6_n_hash()
243 udph = (const struct udphdr *)(ipv6h + 1); in decode_ipv6_n_hash()
/freebsd/sys/netipsec/
H A Dudpencap.c122 struct udphdr *udp; in udp_ipsec_input()
245 struct udphdr *udp; in udp_ipsec_output()
305 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); in udp_ipsec_output()
328 off = offsetof(struct udphdr, uh_sum); in udp_ipsec_adjust_cksum()
/freebsd/cddl/lib/libdtrace/
H A Dudp.d49 struct udphdr *udp_hdr; /* raw UDP header */
68 translator udpinfo_t < struct udphdr *p > {
/freebsd/sbin/dhclient/
H A Dpacket.c115 struct udphdr udp; in assemble_udp_ip_header()
167 struct udphdr *udp; in decode_udp_ip_header()
179 udp = (struct udphdr *)(buf + bufix + ip_len); in decode_udp_ip_header()
/freebsd/sys/netgraph/
H A Dng_checksum.c374 struct udphdr *uh; in checksum_ipv4()
376 PULLUP_CHECK(m, sizeof(struct udphdr)); in checksum_ipv4()
377 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv4()
499 struct udphdr *uh; in checksum_ipv6()
501 PULLUP_CHECK(m, sizeof(struct udphdr)); in checksum_ipv6()
502 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv6()
/freebsd/tools/tools/net80211/wesside/dics/
H A Ddics.c163 struct udphdr* uh;
169 uh = (struct udphdr*) ((char*)iph + 20);
230 struct udphdr* uh; in send_stuff()
256 uh = (struct udphdr*) ((char*)iph + 20); in send_stuff()
/freebsd/sys/netinet/libalias/
H A Dalias.c337 struct udphdr *ud; in IcmpAliasIn2()
345 ud = (struct udphdr *)ip_next(ip); in IcmpAliasIn2()
526 struct udphdr *ud; in IcmpAliasOut2()
534 ud = (struct udphdr *)ip_next(ip); in IcmpAliasOut2()
725 static struct udphdr *
728 struct udphdr *ud; in ValidateUdpLength()
735 if (dlen < sizeof(struct udphdr)) in ValidateUdpLength()
737 ud = (struct udphdr *)ip_next(pip); in ValidateUdpLength()
746 struct udphdr *ud; in UdpAliasIn()
837 struct udphdr *ud; in UdpAliasOut()
[all …]
H A Dalias_local.h376 udp_next(struct udphdr *udphdr) in udp_next() argument
378 return ((void *)(udphdr + 1)); in udp_next()
/freebsd/sys/dev/ixgbe/
H A Dif_fdir.c86 struct udphdr *uh; in ixgbe_atr()
119 uh = (struct udphdr *)((caddr_t)ip + ip_hlen); in ixgbe_atr()
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.c411 sizeof(struct udphdr),
420 sizeof(struct udphdr),
1441 struct udphdr *const outudp = (struct udphdr *) outp; in udp_prep()
1458 struct udphdr *const udp = (struct udphdr *) data; in udp_check()
1467 struct udphdr *const outudp = (struct udphdr *) outp; in udplite_prep()
1484 struct udphdr *const udp = (struct udphdr *) data; in udplite_check()

12345