Lines Matching defs:iph
730 struct iphdr *iph;
772 iph = ip_hdr(skb);
775 iph->version = 4;
776 iph->ihl = (sizeof(struct iphdr)+4)>>2;
777 iph->tos = 0xc0;
778 iph->frag_off = htons(IP_DF);
779 iph->ttl = 1;
780 iph->daddr = dst;
781 iph->saddr = fl4.saddr;
782 iph->protocol = IPPROTO_IGMP;
784 ((u8 *)&iph[1])[0] = IPOPT_RA;
785 ((u8 *)&iph[1])[1] = 4;
786 ((u8 *)&iph[1])[2] = 0;
787 ((u8 *)&iph[1])[3] = 0;
1499 const struct iphdr *iph;
1501 unsigned int offset = skb_network_offset(skb) + sizeof(*iph);
1506 iph = ip_hdr(skb);
1508 if (iph->version != 4 || ip_hdrlen(skb) < sizeof(*iph))
1511 offset += ip_hdrlen(skb) - sizeof(*iph);
1516 iph = ip_hdr(skb);
1518 if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl)))
1521 len = skb_network_offset(skb) + ntohs(iph->tot_len);