Searched refs:ihl (Results 76 - 100 of 150) sorted by relevance

123456

/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter/
H A Dip_nat_h323.c145 struct tcphdr *tcph = (void *)iph + iph->ihl*4;
147 u_int32_t tcplen = (*pskb)->len - iph->ihl*4;
236 struct tcphdr *tcph = (void *)iph + iph->ihl*4;
238 u_int32_t tcplen = (*pskb)->len - iph->ihl*4;
H A Dip_nat_pptp.c148 struct tcphdr *tcph = (void *) iph + iph->ihl*4;
227 struct tcphdr *tcph = (void *) iph + iph->ihl*4;
369 struct tcphdr *tcph = (void *) iph + iph->ihl*4;
370 unsigned int datalen = (*pskb)->len - iph->ihl*4 - tcph->doff*4;
H A Dip_nat_proto_icmp.c50 struct icmphdr *hdr = (struct icmphdr *)((u_int32_t *)iph + iph->ihl);
H A Dipt_NETMAP.c78 struct udphdr *udph = (struct udphdr *)((u_int32_t *)iph + iph->ihl);
H A Diptable_filter.c108 || (*pskb)->nh.iph->ihl * 4 < sizeof(struct iphdr)) {
H A Dip_conntrack_irc.c105 struct tcphdr *tcph = (void *) iph + iph->ihl * 4;
109 u_int32_t tcplen = len - iph->ihl * 4;
H A Dip_conntrack_mms.c145 struct tcphdr *tcph = (void *)iph + iph->ihl * 4;
147 unsigned int tcplen = len - iph->ihl * 4;
H A Dipfwadm_core.c293 for (opti = 0; opti < (ip->ihl - sizeof(struct iphdr) / 4); opti++)
315 struct tcphdr *tcp=(struct tcphdr *)((__u32 *)ip+ip->ihl);
316 struct udphdr *udp=(struct udphdr *)((__u32 *)ip+ip->ihl);
317 struct icmphdr *icmp=(struct icmphdr *)((__u32 *)ip+ip->ihl);
370 if(ip->protocol==IPPROTO_TCP && (ip->ihl<<2)+16 > ntohs(ip->tot_len))
379 else if((ntohs(ip->tot_len)<8+(ip->ihl<<2))&&(ip->protocol==IPPROTO_TCP || ip->protocol==IPPROTO_UDP))
1038 } else if ( ip->ihl != sizeof(struct iphdr) / sizeof(int)) {
1040 printk("ip_fw_ctl: ip->ihl=%d, want %d\n",ip->ihl,
H A Dip_conntrack_tftp.c37 struct udphdr *udph = (void *)iph + iph->ihl * 4;
H A Dip_nat_proto_tcp.c81 struct tcphdr *hdr = (struct tcphdr *)((u_int32_t *)iph + iph->ihl);
H A Dip_nat_proto_udp.c80 struct udphdr *hdr = (struct udphdr *)((u_int32_t *)iph + iph->ihl);
H A Dipt_ECN.c62 struct tcphdr *tcph = (void *) iph + iph->ihl * 4;
H A Diptable_mangle.c146 || (*pskb)->nh.iph->ihl * 4 < sizeof(struct iphdr)) {
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/netfilter.noQoS/
H A Dip_nat_h323.c145 struct tcphdr *tcph = (void *)iph + iph->ihl*4;
147 u_int32_t tcplen = (*pskb)->len - iph->ihl*4;
236 struct tcphdr *tcph = (void *)iph + iph->ihl*4;
238 u_int32_t tcplen = (*pskb)->len - iph->ihl*4;
H A Dip_nat_proto_icmp.c50 struct icmphdr *hdr = (struct icmphdr *)((u_int32_t *)iph + iph->ihl);
H A Diptable_filter.c108 || (*pskb)->nh.iph->ihl * 4 < sizeof(struct iphdr)) {
H A Dip_conntrack_irc.c105 struct tcphdr *tcph = (void *) iph + iph->ihl * 4;
109 u_int32_t tcplen = len - iph->ihl * 4;
H A Dip_conntrack_mms.c145 struct tcphdr *tcph = (void *)iph + iph->ihl * 4;
147 unsigned int tcplen = len - iph->ihl * 4;
H A Dipfwadm_core.c293 for (opti = 0; opti < (ip->ihl - sizeof(struct iphdr) / 4); opti++)
315 struct tcphdr *tcp=(struct tcphdr *)((__u32 *)ip+ip->ihl);
316 struct udphdr *udp=(struct udphdr *)((__u32 *)ip+ip->ihl);
317 struct icmphdr *icmp=(struct icmphdr *)((__u32 *)ip+ip->ihl);
370 if(ip->protocol==IPPROTO_TCP && (ip->ihl<<2)+16 > ntohs(ip->tot_len))
379 else if((ntohs(ip->tot_len)<8+(ip->ihl<<2))&&(ip->protocol==IPPROTO_TCP || ip->protocol==IPPROTO_UDP))
1038 } else if ( ip->ihl != sizeof(struct iphdr) / sizeof(int)) {
1040 printk("ip_fw_ctl: ip->ihl=%d, want %d\n",ip->ihl,
H A Dip_conntrack_tftp.c37 struct udphdr *udph = (void *)iph + iph->ihl * 4;
H A Dip_nat_proto_tcp.c81 struct tcphdr *hdr = (struct tcphdr *)((u_int32_t *)iph + iph->ihl);
H A Dip_nat_proto_udp.c80 struct udphdr *hdr = (struct udphdr *)((u_int32_t *)iph + iph->ihl);
H A Dipt_ECN.c62 struct tcphdr *tcph = (void *) iph + iph->ihl * 4;
H A Diptable_mangle.c146 || (*pskb)->nh.iph->ihl * 4 < sizeof(struct iphdr)) {
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/
H A Dip_gre.c335 u16 *p = (u16*)(skb->data+(iph->ihl<<2));
336 int grehlen = (iph->ihl<<2) + 4;
404 u16 *p = (u16*)(dp+(iph->ihl<<2));
411 int grehlen = (iph->ihl<<2) + 4;
437 if (skb->h.icmph->un.gateway < (iph->ihl<<2))
840 iph->ihl = sizeof(struct iphdr) >> 2;
939 p.iph.ihl != 5 || (p.iph.frag_off&htons(~IP_DF)) ||
1250 iph->ihl = 5;

Completed in 126 milliseconds

123456