Lines Matching refs:iph
1204 struct iphdr *iph; in inet_gso_segment() local
1228 if (unlikely(!pskb_may_pull(skb, sizeof(*iph)))) in inet_gso_segment()
1231 iph = ip_hdr(skb); in inet_gso_segment()
1232 ihl = iph->ihl * 4; in inet_gso_segment()
1233 if (ihl < sizeof(*iph)) in inet_gso_segment()
1236 id = ntohs(iph->id); in inet_gso_segment()
1237 proto = iph->protocol; in inet_gso_segment()
1268 iph = (struct iphdr *)(skb_mac_header(skb) + nhoff); in inet_gso_segment()
1270 iph->id = htons(id); in inet_gso_segment()
1271 iph->frag_off = htons(offset >> 3); in inet_gso_segment()
1273 iph->frag_off |= htons(IP_MF); in inet_gso_segment()
1276 iph->id = htons(id++); in inet_gso_segment()
1278 iph->tot_len = htons(skb->len - nhoff); in inet_gso_segment()
1279 ip_send_check(iph); in inet_gso_segment()
1282 skb->network_header = (u8 *)iph - skb->head; in inet_gso_segment()
1295 const struct iphdr *iph; in inet_gro_receive() local
1303 hlen = off + sizeof(*iph); in inet_gro_receive()
1304 iph = skb_gro_header_fast(skb, off); in inet_gro_receive()
1306 iph = skb_gro_header_slow(skb, hlen, off); in inet_gro_receive()
1307 if (unlikely(!iph)) in inet_gro_receive()
1311 proto = iph->protocol; in inet_gro_receive()
1318 if (*(u8 *)iph != 0x45) in inet_gro_receive()
1321 if (unlikely(ip_fast_csum((u8 *)iph, 5))) in inet_gro_receive()
1324 id = ntohl(*(__be32 *)&iph->id); in inet_gro_receive()
1325 flush = (u16)((ntohl(*(__be32 *)iph) ^ skb_gro_len(skb)) | (id & ~IP_DF)); in inet_gro_receive()
1340 if ((iph->protocol ^ iph2->protocol) | in inet_gro_receive()
1341 ((__force u32)iph->saddr ^ (__force u32)iph2->saddr) | in inet_gro_receive()
1342 ((__force u32)iph->daddr ^ (__force u32)iph2->daddr)) { in inet_gro_receive()
1349 (iph->ttl ^ iph2->ttl) | in inet_gro_receive()
1350 (iph->tos ^ iph2->tos) | in inet_gro_receive()
1351 ((iph->frag_off ^ iph2->frag_off) & htons(IP_DF)); in inet_gro_receive()
1372 skb_gro_pull(skb, sizeof(*iph)); in inet_gro_receive()
1400 struct iphdr *iph = (struct iphdr *)(skb->data + nhoff); in inet_gro_complete() local
1402 int proto = iph->protocol; in inet_gro_complete()
1408 csum_replace2(&iph->check, iph->tot_len, newlen); in inet_gro_complete()
1409 iph->tot_len = newlen; in inet_gro_complete()
1420 err = ops->callbacks.gro_complete(skb, nhoff + sizeof(*iph)); in inet_gro_complete()