Searched refs:iph2 (Results 1 – 6 of 6) sorted by relevance
/linux/net/ipv6/ |
H A D | tcpv6_offload.c | 115 struct ipv6hdr *iph2; in __tcpv6_gso_segment_list_csum() local 121 iph2 = ipv6_hdr(seg->next); in __tcpv6_gso_segment_list_csum() 124 ipv6_addr_equal(&iph->saddr, &iph2->saddr) && in __tcpv6_gso_segment_list_csum() 125 ipv6_addr_equal(&iph->daddr, &iph2->daddr)) in __tcpv6_gso_segment_list_csum() 130 iph2 = ipv6_hdr(seg); in __tcpv6_gso_segment_list_csum() 132 iph2->saddr = iph->saddr; in __tcpv6_gso_segment_list_csum() 133 iph2->daddr = iph->daddr; in __tcpv6_gso_segment_list_csum()
|
H A D | ip6_offload.c | 265 const struct ipv6hdr *iph2; in ipv6_gro_receive() local 271 iph2 = (struct ipv6hdr *)(p->data + off); in ipv6_gro_receive() 272 first_word = *(__be32 *)iph ^ *(__be32 *)iph2; in ipv6_gro_receive() 277 * (nlen != (sizeof(*iph2) + ipv6_exthdrs_len(iph2, &ops))) in ipv6_gro_receive() 281 !ipv6_addr_equal(&iph->saddr, &iph2->saddr) || in ipv6_gro_receive() 282 !ipv6_addr_equal(&iph->daddr, &iph2->daddr) || in ipv6_gro_receive() 283 iph->nexthdr != iph2->nexthdr) { in ipv6_gro_receive() 289 if (memcmp(iph + 1, iph2 + 1, in ipv6_gro_receive()
|
/linux/include/net/ |
H A D | gro.h | 447 static inline int inet_gro_flush(const struct iphdr *iph, const struct iphdr *iph2, in inet_gro_flush() argument 451 const u32 id2 = ntohl(*(__be32 *)&iph2->id); in inet_gro_flush() 458 flush = (iph->ttl ^ iph2->ttl) | (iph->tos ^ iph2->tos) | (df ^ (id2 & IP_DF)); in inet_gro_flush() 473 static inline int ipv6_gro_flush(const struct ipv6hdr *iph, const struct ipv6hdr *iph2) in ipv6_gro_flush() argument 476 __be32 first_word = *(__be32 *)iph ^ *(__be32 *)iph2; in ipv6_gro_flush() 480 (__force __be32)(iph->hop_limit ^ iph2->hop_limit)); in ipv6_gro_flush()
|
/linux/net/ipv4/ |
H A D | tcp_offload.c | 61 struct iphdr *iph2; in __tcpv4_gso_segment_list_csum() local 67 iph2 = ip_hdr(seg->next); in __tcpv4_gso_segment_list_csum() 70 iph->daddr == iph2->daddr && iph->saddr == iph2->saddr) in __tcpv4_gso_segment_list_csum() 75 iph2 = ip_hdr(seg); in __tcpv4_gso_segment_list_csum() 78 &iph2->saddr, iph->saddr, in __tcpv4_gso_segment_list_csum() 81 &iph2->daddr, iph->daddr, in __tcpv4_gso_segment_list_csum()
|
H A D | udp_offload.c | 223 struct iphdr *iph, *iph2; in __udpv4_gso_segment_list_csum() local 237 iph2 = ip_hdr(seg); in __udpv4_gso_segment_list_csum() 240 &iph2->saddr, &iph->saddr, in __udpv4_gso_segment_list_csum() 243 &iph2->daddr, &iph->daddr, in __udpv4_gso_segment_list_csum()
|
/linux/tools/testing/selftests/net/ |
H A D | gro.c | 637 struct iphdr *iph2; in send_flush_id_case() local 641 iph2 = (struct iphdr *)(buf2 + ETH_HLEN); in send_flush_id_case() 653 iph2->frag_off |= htons(IP_DF); in send_flush_id_case() 654 iph2->id = htons(9); in send_flush_id_case() 661 iph2->frag_off |= htons(IP_DF); in send_flush_id_case() 662 iph2->id = htons(8); in send_flush_id_case() 669 iph2->frag_off &= ~htons(IP_DF); in send_flush_id_case() 670 iph2->id = htons(9); in send_flush_id_case() 677 iph2->frag_off &= ~htons(IP_DF); in send_flush_id_case() 678 iph2->id = htons(8); in send_flush_id_case() [all …]
|