Lines Matching defs:iph
1374 struct iphdr *iph;
1382 if (unlikely(!pskb_may_pull(skb, sizeof(*iph))))
1385 iph = ip_hdr(skb);
1386 ihl = iph->ihl * 4;
1387 if (ihl < sizeof(*iph))
1390 id = ntohs(iph->id);
1391 proto = iph->protocol;
1393 /* Warning: after this point, iph might be no longer valid */
1430 iph = (struct iphdr *)(skb_mac_header(skb) + nhoff);
1432 iph->frag_off = htons(offset >> 3);
1434 iph->frag_off |= htons(IP_MF);
1439 iph->id = htons(id);
1446 skb->head - (unsigned char *)iph;
1451 iph->id = htons(id++);
1454 iph->tot_len = htons(tot_len);
1455 ip_send_check(iph);
1458 skb->network_header = (u8 *)iph - skb->head;
1479 const struct iphdr *iph;
1488 hlen = off + sizeof(*iph);
1489 iph = skb_gro_header(skb, hlen, off);
1490 if (unlikely(!iph))
1493 proto = iph->protocol;
1499 if (*(u8 *)iph != 0x45)
1502 if (ip_is_fragment(iph))
1505 if (unlikely(ip_fast_csum((u8 *)iph, 5)))
1509 id = ntohl(*(__be32 *)&iph->id);
1510 flush = (u16)((ntohl(*(__be32 *)iph) ^ skb_gro_len(skb)) | (id & ~IP_DF));
1526 if ((iph->protocol ^ iph2->protocol) |
1527 ((__force u32)iph->saddr ^ (__force u32)iph2->saddr) |
1528 ((__force u32)iph->daddr ^ (__force u32)iph2->daddr)) {
1535 (iph->ttl ^ iph2->ttl) |
1536 (iph->tos ^ iph2->tos) |
1537 ((iph->frag_off ^ iph2->frag_off) & htons(IP_DF));
1554 !(iph->frag_off & htons(IP_DF))) {
1568 NAPI_GRO_CB(skb)->is_atomic = !!(iph->frag_off & htons(IP_DF));
1578 skb_gro_pull(skb, sizeof(*iph));
1645 struct iphdr *iph = (struct iphdr *)(skb->data + nhoff);
1647 __be16 totlen = iph->tot_len;
1648 int proto = iph->protocol;
1656 iph_set_totlen(iph, skb->len - nhoff);
1657 csum_replace2(&iph->check, totlen, iph->tot_len);
1663 /* Only need to add sizeof(*iph) to get to the next hdr below
1669 skb, nhoff + sizeof(*iph));