Lines Matching refs:saddr
128 static __always_inline __u16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
134 s += (__u32)saddr; in csum_tcpudp_magic()
149 static __always_inline __u16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
158 sum += (__u32)saddr->in6_u.u6_addr32[i]; in csum_ipv6_magic()
447 tup.ipv4.saddr = hdr->ipv4->saddr; in tcp_lookup()
453 __builtin_memcpy(tup.ipv6.saddr, &hdr->ipv6->saddr, sizeof(tup.ipv6.saddr)); in tcp_lookup()
546 swap(hdr->ipv4->saddr, hdr->ipv4->daddr); in tcpv4_gen_synack()
569 swap(hdr->ipv6->saddr, hdr->ipv6->daddr); in tcpv6_gen_synack()
630 if (csum_tcpudp_magic(hdr->ipv4->saddr, hdr->ipv4->daddr, in syncookie_handle_syn()
643 if (csum_ipv6_magic(&hdr->ipv6->saddr, &hdr->ipv6->daddr, in syncookie_handle_syn()
694 hdr->tcp->check = csum_tcpudp_magic(hdr->ipv4->saddr, in syncookie_handle_syn()
706 hdr->tcp->check = csum_ipv6_magic(&hdr->ipv6->saddr, in syncookie_handle_syn()