Home
last modified time | relevance | path

Searched refs:iph (Results 1 – 11 of 11) sorted by relevance

/external/iproute2/ip/
Diptunnel.c59 p->iph.version = 4; in parse_args()
60 p->iph.ihl = 5; in parse_args()
64 p->iph.frag_off = htons(IP_DF); in parse_args()
71 if (p->iph.protocol && p->iph.protocol != IPPROTO_IPIP) { in parse_args()
75 p->iph.protocol = IPPROTO_IPIP; in parse_args()
78 if (p->iph.protocol && p->iph.protocol != IPPROTO_GRE) { in parse_args()
82 p->iph.protocol = IPPROTO_GRE; in parse_args()
85 if (p->iph.protocol && p->iph.protocol != IPPROTO_IPV6) { in parse_args()
89 p->iph.protocol = IPPROTO_IPV6; in parse_args()
91 if (p->iph.protocol && p->iph.protocol != IPPROTO_IPV6) { in parse_args()
[all …]
/external/iputils/Modules/
Dpg3.c245 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/
Ddhcp.c172 struct iphdr iph; member
661 if (bytes < (int) (sizeof(packet.iph) + sizeof(packet.udph))) { in read_raw()
665 if (bytes < ntohs(packet.iph.tot_len)) { in read_raw()
670 bytes = ntohs(packet.iph.tot_len); in read_raw()
672 if (packet.iph.protocol != IPPROTO_UDP || packet.iph.version != IPVERSION in read_raw()
673 || packet.iph.ihl != (sizeof(packet.iph) >> 2) in read_raw()
675 || ntohs(packet.udph.len) != (uint16_t)(bytes - sizeof(packet.iph))) { in read_raw()
680 check = packet.iph.check; in read_raw()
681 packet.iph.check = 0; in read_raw()
682 if (check != dhcp_checksum(&packet.iph, sizeof(packet.iph))) { in read_raw()
[all …]
Dip.c2352 printf("%s: %s/ip", ptnl->name, ptnl->iph.protocol == IPPROTO_IPIP ? "ip" : in display_tunnel()
2353 (ptnl->iph.protocol == IPPROTO_GRE ? "gre" : in display_tunnel()
2354 (ptnl->iph.protocol == IPPROTO_IPV6 ? "ipv6" : "unknown"))); in display_tunnel()
2355 printf(" remote %s local %s ", ptnl->iph.daddr ? in display_tunnel()
2356 inet_ntop(AF_INET, &ptnl->iph.daddr, rmt_addr, sizeof(rmt_addr)) : "any", in display_tunnel()
2357 ptnl->iph.saddr ? inet_ntop(AF_INET, &ptnl->iph.saddr, lcl_addr, in display_tunnel()
2369 if (ptnl->iph.ttl) printf(" ttl %d ", ptnl->iph.ttl); in display_tunnel()
2372 if (ptnl->iph.tos) { in display_tunnel()
2374 if (ptnl->iph.tos & 1) printf(" inherit"); in display_tunnel()
2375 if (ptnl->iph.tos & ~1) printf("%c%s ", ptnl->iph.tos & 1 ? '/' : ' ', in display_tunnel()
[all …]
Ddhcpd.c105 struct iphdr iph; member
672 packet.iph.protocol = IPPROTO_UDP; in send_packet()
673 packet.iph.saddr = gconfig.server_nip; in send_packet()
674 …packet.iph.daddr = (broadcast || (gstate.rcvd_pkt.ciaddr == 0))?INADDR_BROADCAST:gstate.rcvd_pkt.c… in send_packet()
678 packet.iph.tot_len = packet.udph.len; in send_packet()
680 packet.iph.tot_len = htons(sizeof(dhcp_raw_t) - padding); in send_packet()
681 packet.iph.ihl = sizeof(packet.iph) >> 2; in send_packet()
682 packet.iph.version = IPVERSION; in send_packet()
683 packet.iph.ttl = IPDEFTTL; in send_packet()
684 packet.iph.check = dhcp_checksum(&packet.iph, sizeof(packet.iph)); in send_packet()
/external/valgrind/coregrind/m_ume/
Delf.c392 ESZ(Phdr) *iph = &interp->p[j]; in VG_()
395 if (iph->p_type != PT_LOAD || iph->p_memsz == 0) in VG_()
399 interp_addr = iph->p_vaddr; in VG_()
405 end = (iph->p_vaddr - interp_addr) + iph->p_memsz; in VG_()
/external/openssh/openbsd-compat/
Dport-tun.c210 struct ip *iph; in sys_tun_infilter() local
224 iph = (struct ip *)(ptr + sizeof(u_int32_t)); in sys_tun_infilter()
225 switch (iph->ip_v) { in sys_tun_infilter()
/external/wpa_supplicant_8/src/ap/
Ddhcp_snoop.c22 struct iphdr iph; member
73 tot_len = ntohs(b->iph.tot_len); in handle_dhcp()
/external/iproute2/include/linux/
Dif_tunnel.h37 struct iphdr iph; member
/external/kernel-headers/original/uapi/linux/
Dif_tunnel.h37 struct iphdr iph; member
/external/iputils/
Dping.c856 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()