Searched refs:udph (Results 1 – 5 of 5) sorted by relevance
162 struct udphdr *udph; in fils_dhcp_handler() local254 sizeof(*iph) + sizeof(*udph) + (end - pos) + 2); in fils_dhcp_handler()264 iph->ip_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos)); in fils_dhcp_handler()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()274 udph->uh_sum = htons(0x0000); /* TODO: calculate checksum */ in fils_dhcp_handler()483 const struct udphdr *udph; in fils_process_hlp_udp() local486 if (len < sizeof(*iph) + sizeof(*udph)) in fils_process_hlp_udp()[all …]
161 const struct udphdr *udph = NULL; in decode_ip_n_hash() local172 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() local243 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()
115 struct nm_udphdr *udph = (struct nm_udphdr *)(pkt + iphlen); in gso_fix_segment() local118 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()
61 struct udphdr udph; member
2454 struct udphdr *udph; in vxlan_encap_header() 2462 udph = &hdr->vxlh_udp; in vxlan_encap_header() 2463 udph->uh_sport = srcport; in vxlan_encap_header() 2464 udph->uh_dport = dstport; in vxlan_encap_header() 2465 udph->uh_ulen = htons(len); in vxlan_encap_header() 2466 udph->uh_sum = 0; in vxlan_encap_header() 2452 struct udphdr *udph; vxlan_encap_header() local