Home
last modified time | relevance | path

Searched refs:udph (Results 1 – 5 of 5) sorted by relevance

/freebsd-13.1/contrib/wpa/src/ap/
H A Dfils_hlp.c162 struct udphdr *udph; in fils_dhcp_handler() local
270 udph = wpabuf_put(resp, sizeof(*udph)); in fils_dhcp_handler()
271 udph->uh_sport = htons(DHCP_SERVER_PORT); in fils_dhcp_handler()
272 udph->uh_dport = htons(DHCP_CLIENT_PORT); in fils_dhcp_handler()
273 udph->uh_ulen = htons(sizeof(*udph) + (end - pos)); in fils_dhcp_handler()
483 const struct udphdr *udph; in fils_process_hlp_udp() local
486 if (len < sizeof(*iph) + sizeof(*udph)) in fils_process_hlp_udp()
490 sport = ntohs(udph->uh_sport); in fils_process_hlp_udp()
491 dport = ntohs(udph->uh_dport); in fils_process_hlp_udp()
492 ulen = ntohs(udph->uh_ulen); in fils_process_hlp_udp()
[all …]
/freebsd-13.1/tools/tools/netmap/
H A Dpkt_hash.c162 const struct udphdr *udph = NULL; in decode_ip_n_hash() local
173 udph = (const struct udphdr *)((const uint8_t *)iph + (iph->ip_hl<<2)); in decode_ip_n_hash()
176 ntohs(udph->uh_sport) + seed, in decode_ip_n_hash()
177 ntohs(udph->uh_dport) + seed); in decode_ip_n_hash()
233 const struct udphdr *udph = NULL; in decode_ipv6_n_hash() local
244 udph = (const struct udphdr *)(ipv6h + 1); in decode_ipv6_n_hash()
247 ntohs(udph->uh_sport) + seed, in decode_ipv6_n_hash()
248 ntohs(udph->uh_dport) + seed); in decode_ipv6_n_hash()
/freebsd-13.1/sys/dev/netmap/
H A Dnetmap_offloadings.c116 struct nm_udphdr *udph = (struct nm_udphdr *)(pkt + iphlen); in gso_fix_segment() local
119 udph->len = htobe16(len-iphlen); in gso_fix_segment()
121 check = &udph->check; in gso_fix_segment()
122 check_data = (uint8_t *)udph; in gso_fix_segment()
/freebsd-13.1/contrib/wpa/src/common/
H A Ddhcp.h61 struct udphdr udph; member
/freebsd-13.1/sys/net/
H A Dif_vxlan.c2412 struct udphdr *udph; in vxlan_encap_header() local
2420 udph = &hdr->vxlh_udp; in vxlan_encap_header()
2421 udph->uh_sport = srcport; in vxlan_encap_header()
2422 udph->uh_dport = dstport; in vxlan_encap_header()
2423 udph->uh_ulen = htons(len); in vxlan_encap_header()
2424 udph->uh_sum = 0; in vxlan_encap_header()