Searched refs:ihl (Results 101 - 125 of 150) sorted by relevance

123456

/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter/
H A Dip_conntrack_core.c144 else if (iph->ihl * 4 + 8 > len)
153 ret = protocol->pkt_to_tuple((u_int32_t *)iph + iph->ihl,
154 len - 4*iph->ihl,
522 hdr = (struct icmphdr *)((u_int32_t *)iph + iph->ihl);
524 datalen = skb->len - iph->ihl*4 - sizeof(*hdr);
526 if (skb->len < iph->ihl * 4 + sizeof(*hdr) + sizeof(*iph)) {
553 if (inner->ihl * 4 + 8 > datalen
556 inner->protocol, inner->ihl, 8,
H A Dip_conntrack_ftp.c222 struct tcphdr *tcph = (void *)iph + iph->ihl * 4;
224 unsigned int tcplen = len - iph->ihl * 4;
H A Dipchains_core.c431 for (opti = 0; opti < (ip->ihl - sizeof(struct iphdr) / 4); opti++)
582 struct tcphdr *tcp=(struct tcphdr *)((__u32 *)ip+ip->ihl);
583 struct udphdr *udp=(struct udphdr *)((__u32 *)ip+ip->ihl);
584 struct icmphdr *icmp=(struct icmphdr *)((__u32 *)ip+ip->ihl);
643 if (ntohs(ip->tot_len) < (ip->ihl<<2)+size_req) {
1328 if (ip->ihl != sizeof(struct iphdr) / sizeof(int)) {
1329 duprintf("ip_fw_ctl: ip->ihl=%d, want %d\n",
1330 ip->ihl,
1689 if (((struct iphdr *)phdr)->ihl * 4 < sizeof(struct iphdr)
H A Dip_nat_proto_gre.c123 struct gre_hdr *greh = (struct gre_hdr *)((u_int32_t *)iph+iph->ihl);
H A Dip_nat_tftp.c56 struct udphdr *udph = (void *)iph + iph->ihl * 4;
H A Dip_conntrack_pptp.c507 struct tcphdr *tcph = (void *) iph + iph->ihl * 4;
508 u_int32_t tcplen = len - iph->ihl * 4;
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter.noQoS/
H A Dip_conntrack_core.c133 else if (iph->ihl * 4 + 8 > len)
142 ret = protocol->pkt_to_tuple((u_int32_t *)iph + iph->ihl,
143 len - 4*iph->ihl,
508 hdr = (struct icmphdr *)((u_int32_t *)iph + iph->ihl);
510 datalen = skb->len - iph->ihl*4 - sizeof(*hdr);
512 if (skb->len < iph->ihl * 4 + sizeof(*hdr) + sizeof(*iph)) {
539 if (inner->ihl * 4 + 8 > datalen
542 inner->protocol, inner->ihl, 8,
H A Dip_conntrack_ftp.c222 struct tcphdr *tcph = (void *)iph + iph->ihl * 4;
224 unsigned int tcplen = len - iph->ihl * 4;
H A Dip_conntrack_pptp.c422 struct tcphdr *tcph = (void *) iph + iph->ihl * 4;
423 u_int32_t tcplen = len - iph->ihl * 4;
H A Dip_nat_pptp.c336 struct tcphdr *tcph = (void *) iph + iph->ihl*4;
337 unsigned int datalen = (*pskb)->len - iph->ihl*4 - tcph->doff*4;
H A Dipchains_core.c431 for (opti = 0; opti < (ip->ihl - sizeof(struct iphdr) / 4); opti++)
582 struct tcphdr *tcp=(struct tcphdr *)((__u32 *)ip+ip->ihl);
583 struct udphdr *udp=(struct udphdr *)((__u32 *)ip+ip->ihl);
584 struct icmphdr *icmp=(struct icmphdr *)((__u32 *)ip+ip->ihl);
643 if (ntohs(ip->tot_len) < (ip->ihl<<2)+size_req) {
1328 if (ip->ihl != sizeof(struct iphdr) / sizeof(int)) {
1329 duprintf("ip_fw_ctl: ip->ihl=%d, want %d\n",
1330 ip->ihl,
1689 if (((struct iphdr *)phdr)->ihl * 4 < sizeof(struct iphdr)
H A Dip_nat_proto_gre.c111 struct gre_hdr *greh = (struct gre_hdr *)((u_int32_t *)iph+iph->ihl);
H A Dip_nat_tftp.c56 struct udphdr *udph = (void *)iph + iph->ihl * 4;
H A Dip_conntrack_standalone.c221 || (*pskb)->nh.iph->ihl * 4 < sizeof(struct iphdr)) {
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/
H A Dicmp.c444 skb_in->nh.raw + (iph->ihl<<2)
567 if (iph->ihl<5) {
637 if (!pskb_may_pull(skb, iph->ihl*4+8))
H A Dipmr.c135 p.iph.ihl = 5;
530 int ihl = pkt->nh.iph->ihl<<2; local
548 Duplicate old header, fix ihl, length etc.
558 skb->nh.iph->ihl = sizeof(struct iphdr) >> 2;
568 skb->nh.iph = (struct iphdr *)skb_put(skb, ihl);
569 memcpy(skb->data,pkt->data,ihl);
1092 iph->ihl = 5;
1566 skb->nh.iph->ihl = sizeof(struct iphdr)>>2;
H A Dipconfig.c672 h->ihl = 5;
678 h->check = ip_fast_csum((unsigned char *) h, h->ihl);
816 h->ihl != 5 ||
818 ip_fast_csum((char *) h, h->ihl) != 0 ||
H A Dipip.c350 int hlen = iph->ihl<<2;
637 iph->ihl = sizeof(struct iphdr)>>2;
706 p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF)))
872 iph->ihl = 5;
H A Draw.c218 u8 *payload = skb->data + (iph->ihl << 2);
300 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
/asus-wl-520gu-7.0.1.45/src/router/busybox/
H A Dping.c231 pkt = (struct icmp *) (packet + (iphdr->ihl << 2)); /* skip ip hdr */
363 hlen = iphdr->ihl << 2;
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/core/
H A Dprofile.c229 whitehole_iph.ihl = 5;
H A Dnetfilter.c187 struct tcphdr *tcp=(struct tcphdr *)((__u32 *)ip+ip->ihl);
200 for (opti = 0; opti < (ip->ihl - sizeof(struct iphdr) / 4); opti++)
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv6/
H A Dsit.c292 int hlen = iph->ihl<<2;
589 iph->ihl = sizeof(struct iphdr)>>2;
662 p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF)))
829 iph->ihl = 5;
/asus-wl-520gu-7.0.1.45/src/router/udhcpd/
H A Dclientpacket.c217 packet.ip.ihl != sizeof(packet.ip) >> 2 || packet.udp.dest != htons(CLIENT_PORT) ||
H A Dpacket.c155 packet.ip.ihl = sizeof(packet.ip) >> 2;

Completed in 102 milliseconds

123456