Lines Matching defs:iph
881 struct iphdr *iph;
883 iph = skb_header_pointer(skb, offset, sizeof(struct iphdr), buf);
885 if (!iph)
888 if (iph->version == 4 && iph->protocol == IPPROTO_IPV6)
889 return skb_header_pointer(skb, offset + iph->ihl * 4,
892 else if (iph->version == 4)
893 return iph;
895 else if (iph->version == 6)
908 const struct iphdr *iph;
918 iph = (struct iphdr *)ipv6h;
919 offset += iph->ihl * 4;
924 if (iph->protocol == IPPROTO_IPV6) {
933 } else if (iph->protocol != IPPROTO_TCP) {
1161 const struct iphdr *iph, *iph_check;
1175 iph = cake_get_iphdr(skb, &_iph);
1203 if (!tcph_check || iph->version != iph_check->version ||
1209 if (iph_check->saddr != iph->saddr ||
1210 iph_check->daddr != iph->daddr)
1216 ipv6h = (struct ipv6hdr *)iph;