Lines Matching defs:ihl
251 if (ip->version != 4 || ip->ihl < 5)
263 nlen = ip->ihl * 4;
353 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl
358 || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0)
478 if (ip->ihl > 5)
479 memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4);
547 hdrlen = ip->ihl * 4 + thp->doff * 4;
620 if (ip->ihl > 5) {
621 memcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4);
622 cp += (ip->ihl - 5) * 4;
625 put_unaligned(ip_fast_csum(icp, ip->ihl),
647 unsigned ihl;
657 ihl = icp[0] & 0xf;
658 if(ihl < 20 / 4){
666 if (ip_fast_csum(icp, ihl)) {
680 memcpy(&cs->cs_tcp,icp + ihl*4,20);
681 if (ihl > 5)
682 memcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4);
684 memcpy(cs->cs_tcpopt, icp + ihl*4 + sizeof(struct tcphdr), (cs->cs_tcp.doff - 5) * 4);
685 cs->cs_hsize = ihl*2 + cs->cs_tcp.doff*2;