Searched refs:iph (Results 1 – 11 of 11) sorted by relevance
/external/iproute2/ip/ |
D | iptunnel.c | 52 if (p->iph.protocol && p->iph.protocol != proto) { in set_tunnel_proto() 57 p->iph.protocol = proto; in set_tunnel_proto() 69 p->iph.version = 4; in parse_args() 70 p->iph.ihl = 5; in parse_args() 74 p->iph.frag_off = htons(IP_DF); in parse_args() 127 p->iph.frag_off = 0; in parse_args() 129 p->iph.frag_off = htons(IP_DF); in parse_args() 133 p->iph.daddr = get_addr32(*argv); in parse_args() 135 p->iph.daddr = htonl(INADDR_ANY); in parse_args() 139 p->iph.saddr = get_addr32(*argv); in parse_args() [all …]
|
/external/iputils/Modules/ |
D | pg3.c | 245 struct iphdr *iph; in fill_packet() local 257 iph = (struct iphdr*)skb_put(skb, sizeof( struct iphdr)); in fill_packet() 272 iph->ihl=5; in fill_packet() 273 iph->version=4; in fill_packet() 274 iph->ttl=3; in fill_packet() 275 iph->tos=0; in fill_packet() 276 iph->protocol = IPPROTO_UDP; /* UDP */ in fill_packet() 277 iph->saddr = saddr; in fill_packet() 278 iph->daddr = in_aton(pg_dst); in fill_packet() 279 iph->frag_off = 0; in fill_packet() [all …]
|
/external/toybox/toys/pending/ |
D | dhcp.c | 169 struct iphdr iph; member 659 if (bytes < (int) (sizeof(packet.iph) + sizeof(packet.udph))) { in read_raw() 663 if (bytes < ntohs(packet.iph.tot_len)) { in read_raw() 668 bytes = ntohs(packet.iph.tot_len); in read_raw() 670 if (packet.iph.protocol != IPPROTO_UDP || packet.iph.version != IPVERSION in read_raw() 671 || packet.iph.ihl != (sizeof(packet.iph) >> 2) in read_raw() 673 || ntohs(packet.udph.len) != (uint16_t)(bytes - sizeof(packet.iph))) { in read_raw() 678 check = packet.iph.check; in read_raw() 679 packet.iph.check = 0; in read_raw() 680 if (check != dhcp_checksum(&packet.iph, sizeof(packet.iph))) { in read_raw() [all …]
|
D | ip.c | 2348 printf("%s: %s/ip", ptnl->name, ptnl->iph.protocol == IPPROTO_IPIP ? "ip" : in display_tunnel() 2349 (ptnl->iph.protocol == IPPROTO_GRE ? "gre" : in display_tunnel() 2350 (ptnl->iph.protocol == IPPROTO_IPV6 ? "ipv6" : "unknown"))); in display_tunnel() 2351 printf(" remote %s local %s ", ptnl->iph.daddr ? in display_tunnel() 2352 inet_ntop(AF_INET, &ptnl->iph.daddr, rmt_addr, sizeof(rmt_addr)) : "any", in display_tunnel() 2353 ptnl->iph.saddr ? inet_ntop(AF_INET, &ptnl->iph.saddr, lcl_addr, in display_tunnel() 2365 if (ptnl->iph.ttl) printf(" ttl %d ", ptnl->iph.ttl); in display_tunnel() 2368 if (ptnl->iph.tos) { in display_tunnel() 2370 if (ptnl->iph.tos & 1) printf(" inherit"); in display_tunnel() 2371 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
|
/external/valgrind/coregrind/m_ume/ |
D | elf.c | 420 ESZ(Phdr) *iph = &interp->p[j]; in VG_() 424 if (iph->p_type == PT_SUNWDTRACE) { in VG_() 425 if (iph->p_memsz < PT_SUNWDTRACE_SIZE || in VG_() 426 (iph->p_flags & (PF_R | PF_W | PF_X)) in VG_() 434 thrptr_addr = iph->p_vaddr; in VG_() 438 if (iph->p_type != PT_LOAD || iph->p_memsz == 0) in VG_() 442 interp_addr = iph->p_vaddr; in VG_() 448 end = (iph->p_vaddr - interp_addr) + iph->p_memsz; in VG_()
|
/external/wpa_supplicant_8/src/ap/ |
D | dhcp_snoop.c | 22 struct iphdr iph; member 73 tot_len = ntohs(b->iph.tot_len); in handle_dhcp()
|
/external/kernel-headers/original/uapi/linux/ |
D | if_tunnel.h | 37 struct iphdr iph; member
|
/external/iproute2/include/linux/ |
D | if_tunnel.h | 37 struct iphdr iph; member
|
/external/iputils/ |
D | ping.c | 856 struct iphdr * iph = (struct iphdr *)(&icp[1]); in parse_reply() local 857 struct icmphdr *icp1 = (struct icmphdr*)((unsigned char *)iph + iph->ihl*4); in parse_reply() 860 cc < 8+iph->ihl*4+8) in parse_reply() 863 iph->daddr != whereto.sin_addr.s_addr || in parse_reply()
|