Home
last modified time | relevance | path

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

12345

/freebsd-14.2/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-14.2/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))
1627 ohdr = mtodo(m, sizeof(struct udphdr)); in ovpn_decrypt_rx_cb()
1658 m_adj_decap(m, sizeof(struct udphdr) + in ovpn_decrypt_rx_cb()
1978 struct udphdr *udp; in ovpn_encap()
1997 M_PREPEND(m, sizeof(struct udphdr), M_NOWAIT); in ovpn_encap()
2004 udp = mtod(m, struct udphdr *); in ovpn_encap()
2010 udp->uh_ulen = htons(sizeof(struct udphdr) + len); in ovpn_encap()
2028 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); in ovpn_encap()
2234 struct udphdr *uhdr; in ovpn_udp_input()
2305 m_adj_decap(m, sizeof(struct udphdr) + ohdrlen); in ovpn_udp_input()
[all …]
/freebsd-14.2/tests/sys/netinet/libalias/
H A Dutil.c110 struct udphdr *
113 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;
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-14.2/sys/netinet6/
H A Dudp6_usrreq.c194 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()
543 struct udphdr uh; in udp6_common_ctlinput()
657 struct udphdr *udp6; in udp6_send()
846 plen = sizeof(struct udphdr) + ulen; in udp6_send()
[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-14.2/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-14.2/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-14.2/sys/netinet/
H A Dudp_usrreq.c261 off += sizeof(struct udphdr); in udp_append()
332 struct udphdr *uh = (struct udphdr *)(ip + 1); in udp_multi_match()
360 struct udphdr *uh = (struct udphdr *)(ip + 1); in udp_multi_input()
450 struct udphdr *uh; in udp_input()
479 if (m->m_len < iphlen + sizeof(struct udphdr)) { in udp_input()
486 uh = (struct udphdr *)((caddr_t)ip + iphlen); in udp_input()
522 if (len > ip_len || len < sizeof(struct udphdr)) { in udp_input()
706 struct udphdr *uh; in udp_common_ctlinput()
712 uh = (struct udphdr *)((caddr_t)ip + (ip->ip_hl << 2)); in udp_common_ctlinput()
1359 plen = (u_short)len + sizeof(struct udphdr); in udp_send()
[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 Dudp.h44 struct udphdr { struct
H A Dtcp_subr.c623 struct udphdr *uh; in tcp_recv_udp_tunneled_packet()
1799 struct udphdr *uh = NULL; in tcp_respond()
1868 uh = (struct udphdr *)nth; in tcp_respond()
1881 uh = (struct udphdr *)nth; in tcp_respond()
1917 uh = (struct udphdr *)nth; in tcp_respond()
1931 uh = (struct udphdr *)nth; in tcp_respond()
1987 tlen += sizeof (struct udphdr); in tcp_respond()
2970 struct udphdr *udp; in tcp_ctlinput_viaudp()
2994 o_len -= sizeof(struct udphdr); in tcp_ctlinput_viaudp()
3164 struct udphdr *udp; in tcp6_ctlinput_viaudp()
[all …]
/freebsd-14.2/cddl/lib/libdtrace/
H A Dudp.d49 struct udphdr *udp_hdr; /* raw UDP header */
68 translator udpinfo_t < struct udphdr *p > {
/freebsd-14.2/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-14.2/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-14.2/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-14.2/sys/netipsec/
H A Dudpencap.c118 struct udphdr *udp; in udp_ipsec_input()
213 struct udphdr *udp; in udp_ipsec_output()
255 off = offsetof(struct udphdr, uh_sum); in udp_ipsec_adjust_cksum()
/freebsd-14.2/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-14.2/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.h374 udp_next(struct udphdr *udphdr) in udp_next() argument
376 return ((void *)(udphdr + 1)); in udp_next()
/freebsd-14.2/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-14.2/sys/netpfil/ipfw/
H A Dip_fw_log.c80 #define UDP(p) ((struct udphdr *)(p))
308 struct udphdr *udp; in ipfw_log()
329 udp = (struct udphdr *)(((char *)ip) + hlen); in ipfw_log()
334 udp = L3HDR(struct udphdr, ip); in ipfw_log()
/freebsd-14.2/contrib/traceroute/
H A Dtraceroute.c440 sizeof(struct udphdr),
449 sizeof(struct udphdr),
1518 struct udphdr *const outudp = (struct udphdr *) outp; in udp_prep()
1535 struct udphdr *const udp = (struct udphdr *) data; in udp_check()
1544 struct udphdr *const outudp = (struct udphdr *) outp; in udplite_prep()
1561 struct udphdr *const udp = (struct udphdr *) data; in udplite_check()

12345