Lines Matching defs:iph
880 struct iphdr *iph;
882 iph = skb_header_pointer(skb, offset, sizeof(struct iphdr), buf);
884 if (!iph)
887 if (iph->version == 4 && iph->protocol == IPPROTO_IPV6)
888 return skb_header_pointer(skb, offset + iph->ihl * 4,
891 else if (iph->version == 4)
892 return iph;
894 else if (iph->version == 6)
907 const struct iphdr *iph;
917 iph = (struct iphdr *)ipv6h;
918 offset += iph->ihl * 4;
923 if (iph->protocol == IPPROTO_IPV6) {
932 } else if (iph->protocol != IPPROTO_TCP) {
1160 const struct iphdr *iph, *iph_check;
1174 iph = cake_get_iphdr(skb, &_iph);
1202 if (!tcph_check || iph->version != iph_check->version ||
1208 if (iph_check->saddr != iph->saddr ||
1209 iph_check->daddr != iph->daddr)
1215 ipv6h = (struct ipv6hdr *)iph;