Lines Matching refs:iph
1209 struct iphdr *iph; in inet_gso_segment() local
1233 if (unlikely(!pskb_may_pull(skb, sizeof(*iph)))) in inet_gso_segment()
1236 iph = ip_hdr(skb); in inet_gso_segment()
1237 ihl = iph->ihl * 4; in inet_gso_segment()
1238 if (ihl < sizeof(*iph)) in inet_gso_segment()
1241 id = ntohs(iph->id); in inet_gso_segment()
1242 proto = iph->protocol; in inet_gso_segment()
1273 iph = (struct iphdr *)(skb_mac_header(skb) + nhoff); in inet_gso_segment()
1275 iph->id = htons(id); in inet_gso_segment()
1276 iph->frag_off = htons(offset >> 3); in inet_gso_segment()
1278 iph->frag_off |= htons(IP_MF); in inet_gso_segment()
1281 iph->id = htons(id++); in inet_gso_segment()
1283 iph->tot_len = htons(skb->len - nhoff); in inet_gso_segment()
1284 ip_send_check(iph); in inet_gso_segment()
1287 skb->network_header = (u8 *)iph - skb->head; in inet_gso_segment()
1300 const struct iphdr *iph; in inet_gro_receive() local
1308 hlen = off + sizeof(*iph); in inet_gro_receive()
1309 iph = skb_gro_header_fast(skb, off); in inet_gro_receive()
1311 iph = skb_gro_header_slow(skb, hlen, off); in inet_gro_receive()
1312 if (unlikely(!iph)) in inet_gro_receive()
1316 proto = iph->protocol; in inet_gro_receive()
1323 if (*(u8 *)iph != 0x45) in inet_gro_receive()
1326 if (unlikely(ip_fast_csum((u8 *)iph, 5))) in inet_gro_receive()
1329 id = ntohl(*(__be32 *)&iph->id); in inet_gro_receive()
1330 flush = (u16)((ntohl(*(__be32 *)iph) ^ skb_gro_len(skb)) | (id & ~IP_DF)); in inet_gro_receive()
1345 if ((iph->protocol ^ iph2->protocol) | in inet_gro_receive()
1346 ((__force u32)iph->saddr ^ (__force u32)iph2->saddr) | in inet_gro_receive()
1347 ((__force u32)iph->daddr ^ (__force u32)iph2->daddr)) { in inet_gro_receive()
1354 (iph->ttl ^ iph2->ttl) | in inet_gro_receive()
1355 (iph->tos ^ iph2->tos) | in inet_gro_receive()
1356 ((iph->frag_off ^ iph2->frag_off) & htons(IP_DF)); in inet_gro_receive()
1377 skb_gro_pull(skb, sizeof(*iph)); in inet_gro_receive()
1405 struct iphdr *iph = (struct iphdr *)(skb->data + nhoff); in inet_gro_complete() local
1407 int proto = iph->protocol; in inet_gro_complete()
1413 csum_replace2(&iph->check, iph->tot_len, newlen); in inet_gro_complete()
1414 iph->tot_len = newlen; in inet_gro_complete()
1425 err = ops->callbacks.gro_complete(skb, nhoff + sizeof(*iph)); in inet_gro_complete()