Searched refs:ihl (Results 1 - 11 of 11) sorted by relevance

/external/android-clat/
H A Dipv4.c73 if(header->ihl < 5) {
74 logmsg_dbg(ANDROID_LOG_ERROR, "ip_packet/ip header length set to less than 5: %x", header->ihl);
78 if((size_t) header->ihl * 4 > len) { // ip header length larger than entire packet
79 logmsg_dbg(ANDROID_LOG_ERROR, "ip_packet/ip header length set too large: %x", header->ihl);
93 next_header = packet + header->ihl*4;
94 len_left = len - header->ihl * 4;
H A Ddump.c47 printf("header_len = %x\n",header->ihl);
H A Dtranslate.c128 ip->ihl = 5;
H A Dclatd_test.cpp211 EXPECT_EQ(5, ip->ihl) << msg << ": Unsupported IP header length\n";
/external/kernel-headers/original/uapi/linux/
H A Dip.h87 __u8 ihl:4, member in struct:iphdr
91 ihl:4;
/external/iputils/
H A Dping.c799 hlen = ip->ihl*4;
800 if (cc < hlen + 8 || ip->ihl < 5) {
857 struct icmphdr *icp1 = (struct icmphdr*)((unsigned char *)iph + iph->ihl*4);
860 cc < 8+iph->ihl*4+8)
1291 hlen = ip->ihl << 2;
1296 ip->version, ip->ihl, ip->tos, ip->tot_len, ip->id);
H A Dclockdiff.c226 icp = (struct icmphdr *)(packet + (ip->ihl << 2));
406 icp = (struct icmphdr *)(packet + (ip->ihl << 2));
H A Drdisc.c728 hlen = ip->ihl << 2;
/external/iputils/Modules/
H A Dpg3.c272 iph->ihl=5;
283 iph->check = ip_fast_csum((void *)iph, iph->ihl);
/external/iproute2/ip/
H A Diptunnel.c60 p->iph.ihl = 5;
/external/ipsec-tools/src/racoon/
H A Disakmp.c253 extralen += sizeof(*udp) + ip->ihl;

Completed in 509 milliseconds