Home
last modified time | relevance | path

Searched refs:saddr (Results 1 - 25 of 1309) sorted by relevance

12345678910>>...53

/kernel/linux/linux-5.10/net/xfrm/
H A Dxfrm_hash.h20 const xfrm_address_t *saddr) in __xfrm4_daddr_saddr_hash()
22 u32 sum = (__force u32)daddr->a4 + (__force u32)saddr->a4; in __xfrm4_daddr_saddr_hash()
27 const xfrm_address_t *saddr) in __xfrm6_daddr_saddr_hash()
29 return __xfrm6_addr_hash(daddr) ^ __xfrm6_addr_hash(saddr); in __xfrm6_daddr_saddr_hash()
45 const xfrm_address_t *saddr, in __xfrm4_dpref_spref_hash()
50 ntohl(saddr->a4) & __bits2mask32(sbits), in __xfrm4_dpref_spref_hash()
76 const xfrm_address_t *saddr, in __xfrm6_dpref_spref_hash()
81 __xfrm6_pref_hash(saddr, sbits); in __xfrm6_dpref_spref_hash()
85 const xfrm_address_t *saddr, in __xfrm_dst_hash()
92 h ^= __xfrm4_daddr_saddr_hash(daddr, saddr); in __xfrm_dst_hash()
19 __xfrm4_daddr_saddr_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr) __xfrm4_daddr_saddr_hash() argument
26 __xfrm6_daddr_saddr_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr) __xfrm6_daddr_saddr_hash() argument
44 __xfrm4_dpref_spref_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, __u8 dbits, __u8 sbits) __xfrm4_dpref_spref_hash() argument
75 __xfrm6_dpref_spref_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, __u8 dbits, __u8 sbits) __xfrm6_dpref_spref_hash() argument
84 __xfrm_dst_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, u32 reqid, unsigned short family, unsigned int hmask) __xfrm_dst_hash() argument
101 __xfrm_src_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask) __xfrm_src_hash() argument
144 const xfrm_address_t *saddr = &sel->saddr; __sel_hash() local
168 __addr_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask, u8 dbits, u8 sbits) __addr_hash() argument
[all...]
/kernel/linux/linux-6.6/net/xfrm/
H A Dxfrm_hash.h20 const xfrm_address_t *saddr) in __xfrm4_daddr_saddr_hash()
22 u32 sum = (__force u32)daddr->a4 + (__force u32)saddr->a4; in __xfrm4_daddr_saddr_hash()
27 const xfrm_address_t *saddr) in __xfrm6_daddr_saddr_hash()
29 return __xfrm6_addr_hash(daddr) ^ __xfrm6_addr_hash(saddr); in __xfrm6_daddr_saddr_hash()
45 const xfrm_address_t *saddr, in __xfrm4_dpref_spref_hash()
50 ntohl(saddr->a4) & __bits2mask32(sbits), in __xfrm4_dpref_spref_hash()
76 const xfrm_address_t *saddr, in __xfrm6_dpref_spref_hash()
81 __xfrm6_pref_hash(saddr, sbits); in __xfrm6_dpref_spref_hash()
85 const xfrm_address_t *saddr, in __xfrm_dst_hash()
92 h ^= __xfrm4_daddr_saddr_hash(daddr, saddr); in __xfrm_dst_hash()
19 __xfrm4_daddr_saddr_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr) __xfrm4_daddr_saddr_hash() argument
26 __xfrm6_daddr_saddr_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr) __xfrm6_daddr_saddr_hash() argument
44 __xfrm4_dpref_spref_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, __u8 dbits, __u8 sbits) __xfrm4_dpref_spref_hash() argument
75 __xfrm6_dpref_spref_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, __u8 dbits, __u8 sbits) __xfrm6_dpref_spref_hash() argument
84 __xfrm_dst_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, u32 reqid, unsigned short family, unsigned int hmask) __xfrm_dst_hash() argument
101 __xfrm_src_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask) __xfrm_src_hash() argument
151 const xfrm_address_t *saddr = &sel->saddr; __sel_hash() local
175 __addr_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask, u8 dbits, u8 sbits) __addr_hash() argument
[all...]
/kernel/linux/linux-5.10/net/core/
H A Dsecure_seq.c57 const __be32 *saddr, const __be32 *daddr) in secure_tcpv6_ts_off()
60 struct in6_addr saddr; in secure_tcpv6_ts_off() member
63 .saddr = *(struct in6_addr *)saddr, in secure_tcpv6_ts_off()
76 u32 secure_tcpv6_seq(const __be32 *saddr, const __be32 *daddr, in secure_tcpv6_seq() argument
80 struct in6_addr saddr; in secure_tcpv6_seq() member
85 .saddr = *(struct in6_addr *)saddr, in secure_tcpv6_seq()
99 u64 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr, in secure_ipv6_port_ephemeral() argument
103 struct in6_addr saddr; in secure_ipv6_port_ephemeral() member
56 secure_tcpv6_ts_off(const struct net *net, const __be32 *saddr, const __be32 *daddr) secure_tcpv6_ts_off() argument
121 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr) secure_tcp_ts_off() argument
136 secure_tcp_seq(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport) secure_tcp_seq() argument
149 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport) secure_ipv4_port_ephemeral() argument
161 secure_dccp_sequence_number(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport) secure_dccp_sequence_number() argument
176 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr, __be16 sport, __be16 dport) secure_dccpv6_sequence_number() argument
180 struct in6_addr saddr; secure_dccpv6_sequence_number() member
[all...]
/kernel/linux/linux-6.6/net/core/
H A Dsecure_seq.c57 const __be32 *saddr, const __be32 *daddr) in secure_tcpv6_ts_off()
60 struct in6_addr saddr; in secure_tcpv6_ts_off() member
63 .saddr = *(struct in6_addr *)saddr, in secure_tcpv6_ts_off()
76 u32 secure_tcpv6_seq(const __be32 *saddr, const __be32 *daddr, in secure_tcpv6_seq() argument
80 struct in6_addr saddr; in secure_tcpv6_seq() member
85 .saddr = *(struct in6_addr *)saddr, in secure_tcpv6_seq()
99 u64 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr, in secure_ipv6_port_ephemeral() argument
103 struct in6_addr saddr; in secure_ipv6_port_ephemeral() member
56 secure_tcpv6_ts_off(const struct net *net, const __be32 *saddr, const __be32 *daddr) secure_tcpv6_ts_off() argument
121 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr) secure_tcp_ts_off() argument
136 secure_tcp_seq(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport) secure_tcp_seq() argument
149 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport) secure_ipv4_port_ephemeral() argument
161 secure_dccp_sequence_number(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport) secure_dccp_sequence_number() argument
176 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr, __be16 sport, __be16 dport) secure_dccpv6_sequence_number() argument
180 struct in6_addr saddr; secure_dccpv6_sequence_number() member
[all...]
/kernel/linux/linux-6.6/include/net/
H A Dip6_checksum.h34 __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
41 return ~csum_unfold(csum_ipv6_magic(&ipv6_hdr(skb)->saddr, in ip6_compute_pseudo()
47 const struct in6_addr *saddr, in tcp_v6_check()
51 return csum_ipv6_magic(saddr, daddr, len, IPPROTO_TCP, base); in tcp_v6_check()
55 const struct in6_addr *saddr, in __tcp_v6_send_check()
60 th->check = ~tcp_v6_check(skb->len, saddr, daddr, 0); in __tcp_v6_send_check()
71 th->check = ~tcp_v6_check(0, &ipv6h->saddr, &ipv6h->daddr, 0); in tcp_v6_gso_csum_prep()
75 const struct in6_addr *saddr, in udp_v6_check()
79 return csum_ipv6_magic(saddr, daddr, len, IPPROTO_UDP, base); in udp_v6_check()
83 const struct in6_addr *saddr,
46 tcp_v6_check(int len, const struct in6_addr *saddr, const struct in6_addr *daddr, __wsum base) tcp_v6_check() argument
54 __tcp_v6_send_check(struct sk_buff *skb, const struct in6_addr *saddr, const struct in6_addr *daddr) __tcp_v6_send_check() argument
74 udp_v6_check(int len, const struct in6_addr *saddr, const struct in6_addr *daddr, __wsum base) udp_v6_check() argument
[all...]
H A Dsecure_seq.h9 u64 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport);
10 u64 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr,
12 u32 secure_tcp_seq(__be32 saddr, __be32 daddr,
14 u32 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr);
15 u32 secure_tcpv6_seq(const __be32 *saddr, const __be32 *daddr,
18 const __be32 *saddr, const __be32 *daddr);
19 u64 secure_dccp_sequence_number(__be32 saddr, __be32 daddr,
21 u64 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr,
H A Dinet6_hashtables.h45 const struct in6_addr *saddr,
61 const struct in6_addr *saddr,
70 const struct in6_addr *saddr,
79 const struct in6_addr *saddr,
88 const struct in6_addr *saddr, in __inet6_lookup()
95 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup()
102 return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __inet6_lookup()
108 const struct in6_addr *saddr, const __be16 sport, in inet6_steal_sock()
133 saddr, sport, daddr, ntohs(dport), in inet6_steal_sock()
157 sk = inet6_steal_sock(net, skb, doff, &ip6h->saddr, spor in __inet6_lookup_skb()
85 __inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const u16 hnum, const int dif, const int sdif, bool *refcounted) __inet6_lookup() argument
107 inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const __be16 dport, bool *refcounted, inet6_ehashfn_t *ehashfn) inet6_steal_sock() argument
178 inet6_match(struct net *net, const struct sock *sk, const struct in6_addr *saddr, const struct in6_addr *daddr, const __portpair ports, const int dif, const int sdif) inet6_match() argument
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dsecure_seq.h7 u64 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport);
8 u64 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr,
10 u32 secure_tcp_seq(__be32 saddr, __be32 daddr,
12 u32 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr);
13 u32 secure_tcpv6_seq(const __be32 *saddr, const __be32 *daddr,
16 const __be32 *saddr, const __be32 *daddr);
17 u64 secure_dccp_sequence_number(__be32 saddr, __be32 daddr,
19 u64 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr,
H A Dip6_checksum.h34 __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
41 return ~csum_unfold(csum_ipv6_magic(&ipv6_hdr(skb)->saddr, in ip6_compute_pseudo()
50 return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr, in ip6_gro_compute_pseudo()
55 const struct in6_addr *saddr, in tcp_v6_check()
59 return csum_ipv6_magic(saddr, daddr, len, IPPROTO_TCP, base); in tcp_v6_check()
63 const struct in6_addr *saddr, in __tcp_v6_send_check()
69 th->check = ~tcp_v6_check(skb->len, saddr, daddr, 0); in __tcp_v6_send_check()
73 th->check = tcp_v6_check(skb->len, saddr, daddr, in __tcp_v6_send_check()
85 th->check = ~tcp_v6_check(0, &ipv6h->saddr, &ipv6h->daddr, 0); in tcp_v6_gso_csum_prep()
89 const struct in6_addr *saddr, in udp_v6_check()
54 tcp_v6_check(int len, const struct in6_addr *saddr, const struct in6_addr *daddr, __wsum base) tcp_v6_check() argument
62 __tcp_v6_send_check(struct sk_buff *skb, const struct in6_addr *saddr, const struct in6_addr *daddr) __tcp_v6_send_check() argument
88 udp_v6_check(int len, const struct in6_addr *saddr, const struct in6_addr *daddr, __wsum base) udp_v6_check() argument
[all...]
H A Dinet6_hashtables.h45 const struct in6_addr *saddr,
54 const struct in6_addr *saddr,
63 const struct in6_addr *saddr, in __inet6_lookup()
70 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup()
77 return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __inet6_lookup()
94 doff, &ipv6_hdr(skb)->saddr, sport, in __inet6_lookup_skb()
101 const struct in6_addr *saddr, const __be16 sport,
108 const struct in6_addr *saddr, in inet6_match()
116 !ipv6_addr_equal(&sk->sk_v6_daddr, saddr) || in inet6_match()
60 __inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const u16 hnum, const int dif, const int sdif, bool *refcounted) __inet6_lookup() argument
107 inet6_match(struct net *net, const struct sock *sk, const struct in6_addr *saddr, const struct in6_addr *daddr, const __portpair ports, const int dif, const int sdif) inet6_match() argument
/kernel/linux/linux-5.10/net/ipv6/
H A Dip6_checksum.c8 __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
18 sum += (__force u32)saddr->s6_addr32[0]; in csum_ipv6_magic()
19 carry = (sum < (__force u32)saddr->s6_addr32[0]); in csum_ipv6_magic()
22 sum += (__force u32)saddr->s6_addr32[1]; in csum_ipv6_magic()
23 carry = (sum < (__force u32)saddr->s6_addr32[1]); in csum_ipv6_magic()
26 sum += (__force u32)saddr->s6_addr32[2]; in csum_ipv6_magic()
27 carry = (sum < (__force u32)saddr->s6_addr32[2]); in csum_ipv6_magic()
30 sum += (__force u32)saddr->s6_addr32[3]; in csum_ipv6_magic()
31 carry = (sum < (__force u32)saddr->s6_addr32[3]); in csum_ipv6_magic()
116 const struct in6_addr *saddr, in udp6_set_csum()
115 udp6_set_csum(bool nocheck, struct sk_buff *skb, const struct in6_addr *saddr, const struct in6_addr *daddr, int len) udp6_set_csum() argument
[all...]
H A Dxfrm6_tunnel.c74 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in __xfrm6_tunnel_spi_lookup() argument
80 &xfrm6_tn->spi_byaddr[xfrm6_tunnel_spi_hash_byaddr(saddr)], in __xfrm6_tunnel_spi_lookup()
82 if (xfrm6_addr_equal(&x6spi->addr, saddr)) in __xfrm6_tunnel_spi_lookup()
89 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in xfrm6_tunnel_spi_lookup() argument
95 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); in xfrm6_tunnel_spi_lookup()
117 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in __xfrm6_tunnel_alloc_spi() argument
151 memcpy(&x6spi->addr, saddr, sizeof(x6spi->addr)); in __xfrm6_tunnel_alloc_spi()
157 index = xfrm6_tunnel_spi_hash_byaddr(saddr); in __xfrm6_tunnel_alloc_spi()
163 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_alloc_spi() argument
169 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); in xfrm6_tunnel_alloc_spi()
187 xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr) xfrm6_tunnel_free_spi() argument
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Dip6_checksum.c8 __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
18 sum += (__force u32)saddr->s6_addr32[0]; in csum_ipv6_magic()
19 carry = (sum < (__force u32)saddr->s6_addr32[0]); in csum_ipv6_magic()
22 sum += (__force u32)saddr->s6_addr32[1]; in csum_ipv6_magic()
23 carry = (sum < (__force u32)saddr->s6_addr32[1]); in csum_ipv6_magic()
26 sum += (__force u32)saddr->s6_addr32[2]; in csum_ipv6_magic()
27 carry = (sum < (__force u32)saddr->s6_addr32[2]); in csum_ipv6_magic()
30 sum += (__force u32)saddr->s6_addr32[3]; in csum_ipv6_magic()
31 carry = (sum < (__force u32)saddr->s6_addr32[3]); in csum_ipv6_magic()
116 const struct in6_addr *saddr, in udp6_set_csum()
115 udp6_set_csum(bool nocheck, struct sk_buff *skb, const struct in6_addr *saddr, const struct in6_addr *daddr, int len) udp6_set_csum() argument
[all...]
H A Dxfrm6_tunnel.c74 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in __xfrm6_tunnel_spi_lookup() argument
80 &xfrm6_tn->spi_byaddr[xfrm6_tunnel_spi_hash_byaddr(saddr)], in __xfrm6_tunnel_spi_lookup()
82 if (xfrm6_addr_equal(&x6spi->addr, saddr)) in __xfrm6_tunnel_spi_lookup()
89 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in xfrm6_tunnel_spi_lookup() argument
95 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); in xfrm6_tunnel_spi_lookup()
117 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in __xfrm6_tunnel_alloc_spi() argument
151 memcpy(&x6spi->addr, saddr, sizeof(x6spi->addr)); in __xfrm6_tunnel_alloc_spi()
157 index = xfrm6_tunnel_spi_hash_byaddr(saddr); in __xfrm6_tunnel_alloc_spi()
163 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_alloc_spi() argument
169 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); in xfrm6_tunnel_alloc_spi()
187 xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr) xfrm6_tunnel_free_spi() argument
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A Dtcp.h15 #define TP_STORE_V4MAPPED(__entry, saddr, daddr) \
20 ipv6_addr_set_v4mapped(saddr, pin6); \
26 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \
36 TP_STORE_V4MAPPED(__entry, saddr, daddr); \
40 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \
41 TP_STORE_V4MAPPED(__entry, saddr, daddr)
63 __array(__u8, saddr, 4)
81 p32 = (__be32 *) __entry->saddr;
91 TP_printk("family=%s sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c state=%s",
93 __entry->sport, __entry->dport, __entry->saddr, __entr
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnft_chain_route.c22 __be32 saddr, daddr; in nf_route_table_hook4() local
33 saddr = iph->saddr; in nf_route_table_hook4()
41 if (iph->saddr != saddr || in nf_route_table_hook4()
69 struct in6_addr saddr, daddr; in nf_route_table_hook6() local
80 memcpy(&saddr, &ipv6_hdr(skb)->saddr, sizeof(saddr)); in nf_route_table_hook6()
90 (memcmp(&ipv6_hdr(skb)->saddr, in nf_route_table_hook6()
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dnft_chain_route.c22 __be32 saddr, daddr; in nf_route_table_hook4() local
33 saddr = iph->saddr; in nf_route_table_hook4()
41 if (iph->saddr != saddr || in nf_route_table_hook4()
69 struct in6_addr saddr, daddr; in nf_route_table_hook6() local
80 memcpy(&saddr, &ipv6_hdr(skb)->saddr, sizeof(saddr)); in nf_route_table_hook6()
90 (memcmp(&ipv6_hdr(skb)->saddr, in nf_route_table_hook6()
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Dtcp.h15 #define TP_STORE_V4MAPPED(__entry, saddr, daddr) \
20 ipv6_addr_set_v4mapped(saddr, pin6); \
26 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \
36 TP_STORE_V4MAPPED(__entry, saddr, daddr); \
40 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \
41 TP_STORE_V4MAPPED(__entry, saddr, daddr)
62 __array(__u8, saddr, 4)
79 p32 = (__be32 *) __entry->saddr;
89 TP_printk("sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c state=%s",
90 __entry->sport, __entry->dport, __entry->saddr, __entr
[all...]
/kernel/linux/linux-5.10/drivers/net/wireguard/selftest/
H A Dratelimiter.c56 hdr4->saddr = htonl(ntohl(hdr4->saddr) + i + 1); in timings_test()
64 hdr4->saddr = htonl(ntohl(hdr4->saddr) - i - 1); in timings_test()
67 hdr6->saddr.in6_u.u6_addr32[2] = htonl(i); in timings_test()
68 hdr6->saddr.in6_u.u6_addr32[3] = htonl(i); in timings_test()
77 hdr6->saddr.in6_u.u6_addr32[0] = in timings_test()
78 htonl(ntohl(hdr6->saddr.in6_u.u6_addr32[0]) + i + 1); in timings_test()
86 hdr6->saddr.in6_u.u6_addr32[0] = in timings_test()
87 htonl(ntohl(hdr6->saddr in timings_test()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireguard/selftest/
H A Dratelimiter.c56 hdr4->saddr = htonl(ntohl(hdr4->saddr) + i + 1); in timings_test()
64 hdr4->saddr = htonl(ntohl(hdr4->saddr) - i - 1); in timings_test()
67 hdr6->saddr.in6_u.u6_addr32[2] = htonl(i); in timings_test()
68 hdr6->saddr.in6_u.u6_addr32[3] = htonl(i); in timings_test()
77 hdr6->saddr.in6_u.u6_addr32[0] = in timings_test()
78 htonl(ntohl(hdr6->saddr.in6_u.u6_addr32[0]) + i + 1); in timings_test()
86 hdr6->saddr.in6_u.u6_addr32[0] = in timings_test()
87 htonl(ntohl(hdr6->saddr in timings_test()
[all...]
/kernel/linux/linux-5.10/arch/arm/include/asm/
H A Dchecksum.h99 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
113 : "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
126 : "r" (sum), "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
136 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
139 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
155 __csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __be32 len,
159 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument
162 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len), in csum_ipv6_magic()
/kernel/linux/linux-6.6/arch/arm/include/asm/
H A Dchecksum.h100 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
114 : "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
127 : "r" (sum), "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
137 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
140 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
156 __csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __be32 len,
160 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument
163 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len), in csum_ipv6_magic()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
H A Dninet_hashtables.c69 __u32 secure_tcp_nip_sequence_number(const __be32 *saddr, const __be32 *daddr, in secure_tcp_nip_sequence_number() argument
73 struct nip_addr saddr; in secure_tcp_nip_sequence_number() member
78 .saddr = *(struct nip_addr *)saddr, in secure_tcp_nip_sequence_number()
92 u64 secure_newip_port_ephemeral(const __be32 *saddr, const __be32 *daddr, in secure_newip_port_ephemeral() argument
96 struct nip_addr saddr; in secure_newip_port_ephemeral() member
100 .saddr = *(struct nip_addr *)saddr, in secure_newip_port_ephemeral()
111 const struct nip_addr *saddr, in nip_portaddr_hash()
114 u32 v = (__force u32)saddr in nip_portaddr_hash()
110 nip_portaddr_hash(const struct net *net, const struct nip_addr *saddr, unsigned int port) nip_portaddr_hash() argument
304 __ninet_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, const struct nip_addr *saddr, const __be16 sport, const struct nip_addr *daddr, const u16 hnum, const int dif) __ninet_lookup_established() argument
372 ninet_lhash2_lookup(struct net *net, struct inet_listen_hashbucket *ilb2, struct sk_buff *skb, int doff, const struct nip_addr *saddr, __be16 sport, const struct nip_addr *daddr, const unsigned short hnum, const int dif, const int sdif) ninet_lhash2_lookup() argument
412 ninet_lookup_listener(struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct nip_addr *saddr, const __be16 sport, const struct nip_addr *daddr, const unsigned short hnum, const int dif, const int sdif) ninet_lookup_listener() argument
453 struct nip_addr *saddr = &sk->SK_NIP_DADDR; __ninet_check_established() local
[all...]
/kernel/linux/linux-5.10/arch/s390/include/asm/
H A Dchecksum.h78 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
83 csum += (__force __u32)saddr; in csum_tcpudp_nofold()
95 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
98 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
110 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
116 sum += (__force __u32)saddr->s6_addr32[0]; in csum_ipv6_magic()
117 sum += (__force __u32)saddr->s6_addr32[1]; in csum_ipv6_magic()
118 sum += (__force __u32)saddr->s6_addr32[2]; in csum_ipv6_magic()
119 sum += (__force __u32)saddr->s6_addr32[3]; in csum_ipv6_magic()
/kernel/linux/linux-6.6/arch/s390/include/asm/
H A Dchecksum.h81 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
86 csum += (__force __u32)saddr; in csum_tcpudp_nofold()
98 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
101 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
113 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
119 sum += (__force __u32)saddr->s6_addr32[0]; in csum_ipv6_magic()
120 sum += (__force __u32)saddr->s6_addr32[1]; in csum_ipv6_magic()
121 sum += (__force __u32)saddr->s6_addr32[2]; in csum_ipv6_magic()
122 sum += (__force __u32)saddr->s6_addr32[3]; in csum_ipv6_magic()

Completed in 8 milliseconds

12345678910>>...53