Home
last modified time | relevance | path

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

/freebsd/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/tools/tools/netmap/
H A Dpkt_hash.c161 const struct udphdr *udph = NULL; in decode_ip_n_hash() local
172 udph = (const struct udphdr *)((const uint8_t *)iph + (iph->ip_hl<<2)); in decode_ip_n_hash()
175 ntohs(udph->uh_sport) + seed, in decode_ip_n_hash()
176 ntohs(udph->uh_dport) + seed); in decode_ip_n_hash()
232 const struct udphdr *udph = NULL; in decode_ipv6_n_hash() local
243 udph = (const struct udphdr *)(ipv6h + 1); in decode_ipv6_n_hash()
246 ntohs(udph->uh_sport) + seed, in decode_ipv6_n_hash()
247 ntohs(udph->uh_dport) + seed); in decode_ipv6_n_hash()
/freebsd/sys/dev/netmap/
H A Dnetmap_offloadings.c115 struct nm_udphdr *udph = (struct nm_udphdr *)(pkt + iphlen); in gso_fix_segment() local
118 udph->len = htobe16(len-iphlen); in gso_fix_segment()
120 check = &udph->check; in gso_fix_segment()
121 check_data = (uint8_t *)udph; in gso_fix_segment()
/freebsd/contrib/wpa/src/common/
H A Ddhcp.h61 struct udphdr udph; member
/freebsd/sys/net/
H A Dif_vxlan.c2447 struct udphdr *udph; in vxlan_encap_header() local
2455 udph = &hdr->vxlh_udp; in vxlan_encap_header()
2456 udph->uh_sport = srcport; in vxlan_encap_header()
2457 udph->uh_dport = dstport; in vxlan_encap_header()
2458 udph->uh_ulen = htons(len); in vxlan_encap_header()
2459 udph->uh_sum = 0; in vxlan_encap_header()