/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | fils_hlp.c | 161 struct ip *iph; in fils_dhcp_handler() local 254 sizeof(*iph) + sizeof(*udph) + (end - pos) + 2); in fils_dhcp_handler() 261 iph = wpabuf_put(resp, sizeof(*iph)); in fils_dhcp_handler() 262 iph->ip_v = 4; in fils_dhcp_handler() 263 iph->ip_hl = sizeof(*iph) / 4; in fils_dhcp_handler() 264 iph->ip_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos)); in fils_dhcp_handler() 265 iph->ip_ttl = 1; in fils_dhcp_handler() 266 iph->ip_p = 17; /* UDP */ in fils_dhcp_handler() 267 iph->ip_src.s_addr = hapd->conf->dhcp_server.u.v4.s_addr; in fils_dhcp_handler() 268 iph->ip_dst.s_addr = dhcp->client_ip; in fils_dhcp_handler() [all …]
|
D | dhcp_snoop.c | 49 ip_len = ntohs(b->iph.ip_len); in handle_dhcp()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | fils_hlp.c | 161 struct iphdr *iph; in fils_dhcp_handler() local 254 sizeof(*iph) + sizeof(*udph) + (end - pos) + 2); in fils_dhcp_handler() 261 iph = wpabuf_put(resp, sizeof(*iph)); in fils_dhcp_handler() 262 iph->version = 4; in fils_dhcp_handler() 263 iph->ihl = sizeof(*iph) / 4; in fils_dhcp_handler() 264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos)); in fils_dhcp_handler() 265 iph->ttl = 1; in fils_dhcp_handler() 266 iph->protocol = 17; /* UDP */ in fils_dhcp_handler() 267 iph->saddr = hapd->conf->dhcp_server.u.v4.s_addr; in fils_dhcp_handler() 268 iph->daddr = dhcp->client_ip; in fils_dhcp_handler() [all …]
|
D | dhcp_snoop.c | 49 tot_len = ntohs(b->iph.tot_len); in handle_dhcp()
|
/third_party/toybox/toys/pending/ |
D | dhcp.c | 169 struct iphdr iph; member 660 if (bytes < (int) (sizeof(packet.iph) + sizeof(packet.udph))) { in read_raw() 664 if (bytes < ntohs(packet.iph.tot_len)) { in read_raw() 669 bytes = ntohs(packet.iph.tot_len); in read_raw() 671 if (packet.iph.protocol != IPPROTO_UDP || packet.iph.version != IPVERSION in read_raw() 672 || packet.iph.ihl != (sizeof(packet.iph) >> 2) in read_raw() 674 || ntohs(packet.udph.len) != (uint16_t)(bytes - sizeof(packet.iph))) { in read_raw() 679 if (dhcp_checksum(&packet.iph, sizeof(packet.iph)) != 0) { in read_raw() 687 memset(&packet.iph, 0, ((size_t) &((struct iphdr *)0)->protocol)); in read_raw() 688 packet.iph.check = 0; in read_raw() [all …]
|
D | ip.c | 2454 printf("%s: %s/ip", ptnl->name, ptnl->iph.protocol == IPPROTO_IPIP ? "ip" : in display_tunnel() 2455 (ptnl->iph.protocol == IPPROTO_GRE ? "gre" : in display_tunnel() 2456 (ptnl->iph.protocol == IPPROTO_IPV6 ? "ipv6" : "unknown"))); in display_tunnel() 2457 printf(" remote %s local %s ", ptnl->iph.daddr ? in display_tunnel() 2458 inet_ntop(AF_INET, &ptnl->iph.daddr, rmt_addr, sizeof(rmt_addr)) : "any", in display_tunnel() 2459 ptnl->iph.saddr ? inet_ntop(AF_INET, &ptnl->iph.saddr, lcl_addr, in display_tunnel() 2471 if (ptnl->iph.ttl) printf(" ttl %d ", ptnl->iph.ttl); in display_tunnel() 2474 if (ptnl->iph.tos) { in display_tunnel() 2476 if (ptnl->iph.tos & 1) printf(" inherit"); in display_tunnel() 2477 if (ptnl->iph.tos & ~1) printf("%c%s ", ptnl->iph.tos & 1 ? '/' : ' ', in display_tunnel() [all …]
|
D | dhcpd.c | 163 struct iphdr iph; member 169 struct ip6_hdr iph; member 881 memcpy(&packet.iph.ip6_src, &gconfig.server_nip6, sizeof(uint32_t)*4); in send_packet6() 882 memcpy(&packet.iph.ip6_dst, &gstate.client_nip6, sizeof(uint32_t)*4); in send_packet6() 887 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_plen = htons(ntohs(packet.udph.len) + 0x11); in send_packet6() 889 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_flow = htonl(0x60000000); in send_packet6() 890 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_plen = packet.udph.len; in send_packet6() 891 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_nxt = IPPROTO_UDP; in send_packet6() 892 packet.iph.ip6_ctlun.ip6_un1.ip6_un1_hlim = 0x64; in send_packet6() 932 packet.iph.protocol = IPPROTO_UDP; in send_packet() [all …]
|
D | dhcp6.c | 113 struct ip6_hdr iph; member
|
/third_party/libbpf/src/ |
D | bpf_helper_defs.h | 2498 static long (*bpf_tcp_check_syncookie)(void *sk, void *iph, __u32 iph_len, struct tcphdr *th, __u32… 2736 static __s64 (*bpf_tcp_gen_syncookie)(void *sk, void *iph, __u32 iph_len, struct tcphdr *th, __u32 … 4547 static __s64 (*bpf_tcp_raw_gen_syncookie_ipv4)(struct iphdr *iph, struct tcphdr *th, __u32 th_len) … 4573 static __s64 (*bpf_tcp_raw_gen_syncookie_ipv6)(struct ipv6hdr *iph, struct tcphdr *th, __u32 th_len… 4592 static long (*bpf_tcp_raw_check_syncookie_ipv4)(struct iphdr *iph, struct tcphdr *th) = (void *) 20… 4613 static long (*bpf_tcp_raw_check_syncookie_ipv6)(struct ipv6hdr *iph, struct tcphdr *th) = (void *) …
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | dhcp.h | 42 struct iphdr iph; member
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | dhcp.h | 42 struct ip iph; member
|
/third_party/mesa3d/src/imgui/ |
D | imstb_truetype.h | 3702 float ipw = 1.0f / pw, iph = 1.0f / ph; in stbtt_GetBakedQuad() local 3713 q->t0 = b->y0 * iph; in stbtt_GetBakedQuad() 3715 q->t1 = b->y1 * iph; in stbtt_GetBakedQuad() 4195 float ipw = 1.0f / pw, iph = 1.0f / ph; in stbtt_GetPackedQuad() local 4213 q->t0 = b->y0 * iph; in stbtt_GetPackedQuad() 4215 q->t1 = b->y1 * iph; in stbtt_GetPackedQuad()
|
/third_party/skia/third_party/externals/imgui/ |
D | imstb_truetype.h | 3702 float ipw = 1.0f / pw, iph = 1.0f / ph; in stbtt_GetBakedQuad() local 3713 q->t0 = b->y0 * iph; in stbtt_GetBakedQuad() 3715 q->t1 = b->y1 * iph; in stbtt_GetBakedQuad() 4195 float ipw = 1.0f / pw, iph = 1.0f / ph; in stbtt_GetPackedQuad() local 4213 q->t0 = b->y0 * iph; in stbtt_GetPackedQuad() 4215 q->t1 = b->y1 * iph; in stbtt_GetPackedQuad()
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/ |
D | sctputil.c | 8073 struct ip *iph; local 8086 iph = mtod(m, struct ip *); 8087 uhdr = (struct udphdr *)((caddr_t)iph + off); 8128 iph = mtod(m, struct ip *); 8129 switch (iph->ip_v) { 8132 iph->ip_len = htons(ntohs(iph->ip_len) - sizeof(struct udphdr));
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0a1.rst | 2185 .. nonce: iph-CM
|
/third_party/libbpf/.github/actions/build-selftests/ |
D | vmlinux.h | 70603 struct iphdr iph; member 85403 struct iphdr *iph; member
|