Home
last modified time | relevance | path

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

123

/f-stack/dpdk/examples/bpf/
H A Dt1.c50 struct udphdr *udphdr = (void *)iphdr + hlen; in entry() local
52 if (udphdr->dest != htons(5000)) in entry()
/f-stack/freebsd/net/
H A Dif_gre.h59 struct udphdr gi_udp;
72 struct udphdr gi6_udp;
101 struct greudp *udphdr; member
128 #define gre_udphdr gre_uhdr.udphdr
141 void gre_update_udphdr(struct gre_softc *, struct udphdr *, uint16_t);
H A Dif_gre.c463 gre_update_udphdr(struct gre_softc *sc, struct udphdr *udp, uint16_t csum) in gre_update_udphdr()
696 struct udphdr *uh;
767 uh = (struct udphdr *)mtodo(m, len);
776 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum);
777 len += sizeof(struct udphdr);
/f-stack/tools/compat/include/net/
H A Dif_gre.h59 struct udphdr gi_udp;
72 struct udphdr gi6_udp;
101 struct greudp *udphdr; member
128 #define gre_udphdr gre_uhdr.udphdr
141 void gre_update_udphdr(struct gre_softc *, struct udphdr *, uint16_t);
/f-stack/freebsd/netinet6/
H A Dudp6_usrreq.c194 m_adj(n, off + sizeof(struct udphdr)); in udp6_append()
216 struct udphdr *uh; in udp6_input()
232 if (m->m_len < off + sizeof(struct udphdr)) { in udp6_input()
233 m = m_pullup(m, off + sizeof(struct udphdr)); in udp6_input()
241 uh = (struct udphdr *)((caddr_t)ip6 + off); in udp6_input()
262 if ((ulen < sizeof(struct udphdr)) || (ulen > plen)) { in udp6_input()
549 struct udphdr uh; in udp6_common_ctlinput()
705 struct udphdr *udp6; in udp6_output()
890 plen = sizeof(struct udphdr) + ulen; in udp6_output()
897 M_PREPEND(m, hlen + sizeof(struct udphdr), M_NOWAIT); in udp6_output()
[all …]
H A Din6_rss.c221 const struct udphdr *uh; in rss_mbuf_software_hash_v6()
361 if (m->m_len < off + sizeof(struct udphdr)) { in rss_mbuf_software_hash_v6()
365 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
/f-stack/freebsd/netipsec/
H A Dudpencap.c120 struct udphdr *udp; in udp_ipsec_input()
215 struct udphdr *udp; in udp_ipsec_output()
257 off = offsetof(struct udphdr, uh_sum); in udp_ipsec_adjust_cksum()
H A Dipsec.c520 struct udphdr uh; in ipsec4_get_ulp()
537 if (off + sizeof(struct udphdr) > m->m_pkthdr.len) in ipsec4_get_ulp()
681 struct udphdr uh; in ipsec6_get_ulp()
713 if (off + sizeof(struct udphdr) > m->m_pkthdr.len) in ipsec6_get_ulp()
/f-stack/freebsd/netinet/
H A Din_rss.c217 const struct udphdr *uh; in rss_mbuf_software_hash_v4()
338 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4()
339 if (m->m_len < iphlen + sizeof(struct udphdr)) { in rss_mbuf_software_hash_v4()
H A Dudp.h43 struct udphdr { struct
H A Dudp_usrreq.c326 off += sizeof(struct udphdr); in udp_append()
396 struct udphdr *uh; in udp_input()
426 if (m->m_len < iphlen + sizeof(struct udphdr)) { in udp_input()
433 uh = (struct udphdr *)((caddr_t)ip + iphlen); in udp_input()
469 if (len > ip_len || len < sizeof(struct udphdr)) { in udp_input()
784 struct udphdr *uh; in udp_common_ctlinput()
809 uh = (struct udphdr *)((caddr_t)ip + (ip->ip_hl << 2)); in udp_common_ctlinput()
1411 ui->ui_ulen = htons((u_short)len + sizeof(struct udphdr)); in udp_output()
1418 plen = (u_short)len + sizeof(struct udphdr); in udp_output()
1469 htons((u_short)len + sizeof(struct udphdr) + pr)); in udp_output()
[all …]
H A Dudp_var.h44 struct udphdr ui_u; /* udp header */
H A Dip_output.c1062 struct udphdr *uh; in in_delayed_cksum()
1070 if (offset + sizeof(struct udphdr) > m->m_len) { in in_delayed_cksum()
1071 m_copydata(m, offset + offsetof(struct udphdr, in in_delayed_cksum()
1075 uh = (struct udphdr *)mtodo(m, offset); in in_delayed_cksum()
/f-stack/freebsd/netgraph/
H A Dng_checksum.c376 struct udphdr *uh; in checksum_ipv4()
378 PULLUP_CHECK(m, sizeof(struct udphdr)); in checksum_ipv4()
379 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv4()
501 struct udphdr *uh; in checksum_ipv6()
503 PULLUP_CHECK(m, sizeof(struct udphdr)); in checksum_ipv6()
504 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv6()
/f-stack/tools/compat/include/netinet/
H A Dudp.h43 struct udphdr { struct
H A Dudp_var.h44 struct udphdr ui_u; /* udp header */
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_log.c81 #define UDP(p) ((struct udphdr *)(p))
300 struct udphdr *udp; in ipfw_log()
321 udp = (struct udphdr *)(((char *)ip) + hlen); in ipfw_log()
326 udp = L3HDR(struct udphdr, ip); in ipfw_log()
H A Ddn_sched_fq_codel.c220 struct udphdr *uh; in fq_codel_classify_flow()
245 uh = (struct udphdr *)(ip6 + 1); in fq_codel_classify_flow()
272 uh = (struct udphdr *)(ip + 1); in fq_codel_classify_flow()
H A Ddn_sched_fq_pie.c789 struct udphdr *uh; in fq_pie_classify_flow()
814 uh = (struct udphdr *)(ip6 + 1); in fq_pie_classify_flow()
841 uh = (struct udphdr *)(ip + 1); in fq_pie_classify_flow()
/f-stack/freebsd/netinet/libalias/
H A Dalias.c344 struct udphdr *ud; in IcmpAliasIn2()
351 ud = (struct udphdr *)ip_next(ip); in IcmpAliasIn2()
531 struct udphdr *ud; in IcmpAliasOut2()
539 ud = (struct udphdr *)ip_next(ip); in IcmpAliasOut2()
730 struct udphdr *ud; in UdpAliasIn()
737 if (dlen < sizeof(struct udphdr)) in UdpAliasIn()
740 ud = (struct udphdr *)ip_next(pip); in UdpAliasIn()
824 struct udphdr *ud; in UdpAliasOut()
838 if (dlen < sizeof(struct udphdr)) in UdpAliasOut()
841 ud = (struct udphdr *)ip_next(pip); in UdpAliasOut()
[all …]
H A Dalias_local.h405 udp_next(struct udphdr *udphdr) in udp_next() argument
407 return ((void *)(udphdr + 1)); in udp_next()
H A Dalias_nbt.c342 struct udphdr *uh; in AliasHandleUdpNbt()
354 uh = (struct udphdr *)ip_next(pip); in AliasHandleUdpNbt()
787 struct udphdr *uh; in AliasHandleUdpNbtNS()
803 uh = (struct udphdr *)ip_next(pip); in AliasHandleUdpNbtNS()
/f-stack/freebsd/netgraph/netflow/
H A Dnetflow_v9.h112 #define _NETFLOW_V9_MAX_SIZE(x) (x) - sizeof(struct ip6_hdr) - sizeof(struct udphdr) - 16
/f-stack/freebsd/contrib/octeon-sdk/
H A Dcvmip.h120 cvmip_udp_hdr_t udphdr; member
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.h81 #define UDP(p) ((struct udphdr *)(p))

123