/Linux-v4.19/net/core/ |
D | secure_seq.c | 55 const __be32 *saddr, const __be32 *daddr) in secure_tcpv6_ts_off() argument 58 struct in6_addr saddr; in secure_tcpv6_ts_off() member 61 .saddr = *(struct in6_addr *)saddr, in secure_tcpv6_ts_off() 74 u32 secure_tcpv6_seq(const __be32 *saddr, const __be32 *daddr, in secure_tcpv6_seq() argument 78 struct in6_addr saddr; in secure_tcpv6_seq() member 83 .saddr = *(struct in6_addr *)saddr, in secure_tcpv6_seq() 97 u32 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr, in secure_ipv6_port_ephemeral() argument 101 struct in6_addr saddr; in secure_ipv6_port_ephemeral() member 105 .saddr = *(struct in6_addr *)saddr, in secure_ipv6_port_ephemeral() 117 u32 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr) in secure_tcp_ts_off() argument [all …]
|
D | dst_cache.c | 76 struct rtable *dst_cache_get_ip4(struct dst_cache *dst_cache, __be32 *saddr) in dst_cache_get_ip4() argument 89 *saddr = idst->in_saddr.s_addr; in dst_cache_get_ip4() 95 __be32 saddr) in dst_cache_set_ip4() argument 104 idst->in_saddr.s_addr = saddr; in dst_cache_set_ip4() 110 const struct in6_addr *saddr) in dst_cache_set_ip6() argument 120 idst->in6_saddr = *saddr; in dst_cache_set_ip6() 125 struct in6_addr *saddr) in dst_cache_get_ip6() argument 138 *saddr = idst->in6_saddr; in dst_cache_get_ip6()
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_hash.h | 20 const xfrm_address_t *saddr) in __xfrm4_daddr_saddr_hash() argument 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() argument 30 saddr->a6[2] ^ saddr->a6[3]); in __xfrm6_daddr_saddr_hash() 46 const xfrm_address_t *saddr, in __xfrm4_dpref_spref_hash() argument 51 ntohl(saddr->a4) & __bits2mask32(sbits), in __xfrm4_dpref_spref_hash() 77 const xfrm_address_t *saddr, in __xfrm6_dpref_spref_hash() argument 82 __xfrm6_pref_hash(saddr, sbits); in __xfrm6_dpref_spref_hash() 86 const xfrm_address_t *saddr, in __xfrm_dst_hash() argument 93 h ^= __xfrm4_daddr_saddr_hash(daddr, saddr); in __xfrm_dst_hash() [all …]
|
/Linux-v4.19/include/net/ |
D | ip6_checksum.h | 38 __sum16 csum_ipv6_magic(const struct in6_addr *saddr, 45 return ~csum_unfold(csum_ipv6_magic(&ipv6_hdr(skb)->saddr, in ip6_compute_pseudo() 54 return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr, in ip6_gro_compute_pseudo() 59 const struct in6_addr *saddr, in tcp_v6_check() argument 63 return csum_ipv6_magic(saddr, daddr, len, IPPROTO_TCP, base); in tcp_v6_check() 67 const struct in6_addr *saddr, in __tcp_v6_send_check() argument 73 th->check = ~tcp_v6_check(skb->len, saddr, daddr, 0); in __tcp_v6_send_check() 77 th->check = tcp_v6_check(skb->len, saddr, daddr, in __tcp_v6_send_check() 88 __tcp_v6_send_check(skb, &np->saddr, &sk->sk_v6_daddr); in tcp_v6_send_check() 93 const struct in6_addr *saddr, in udp_v6_check() argument [all …]
|
D | secure_seq.h | 7 u32 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport); 8 u32 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,
|
/Linux-v4.19/net/ipv6/ |
D | ip6_checksum.c | 8 __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() 100 const struct in6_addr *saddr, in udp6_set_csum() argument [all …]
|
D | xfrm6_tunnel.c | 87 …ic struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in __xfrm6_tunnel_spi_lookup() argument 93 &xfrm6_tn->spi_byaddr[xfrm6_tunnel_spi_hash_byaddr(saddr)], in __xfrm6_tunnel_spi_lookup() 95 if (xfrm6_addr_equal(&x6spi->addr, saddr)) in __xfrm6_tunnel_spi_lookup() 102 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in xfrm6_tunnel_spi_lookup() argument 108 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); in xfrm6_tunnel_spi_lookup() 130 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in __xfrm6_tunnel_alloc_spi() argument 161 memcpy(&x6spi->addr, saddr, sizeof(x6spi->addr)); in __xfrm6_tunnel_alloc_spi() 167 index = xfrm6_tunnel_spi_hash_byaddr(saddr); in __xfrm6_tunnel_alloc_spi() 173 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_alloc_spi() argument 179 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); in xfrm6_tunnel_alloc_spi() [all …]
|
D | xfrm6_state.c | 32 *(struct in6_addr *)&sel->saddr = fl6->saddr; in __xfrm6_init_tempsel() 46 const xfrm_address_t *daddr, const xfrm_address_t *saddr) in xfrm6_init_temprop() argument 51 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm6_init_temprop() 52 if (ipv6_addr_any((struct in6_addr *)&x->props.saddr)) in xfrm6_init_temprop() 53 memcpy(&x->props.saddr, saddr, sizeof(x->props.saddr)); in xfrm6_init_temprop()
|
D | syncookies.c | 45 static u32 cookie_hash(const struct in6_addr *saddr, in cookie_hash() argument 50 struct in6_addr saddr; in cookie_hash() member 56 .saddr = *saddr, in cookie_hash() 68 static __u32 secure_tcp_syn_cookie(const struct in6_addr *saddr, in secure_tcp_syn_cookie() argument 74 return (cookie_hash(saddr, daddr, sport, dport, 0, 0) + in secure_tcp_syn_cookie() 76 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data) in secure_tcp_syn_cookie() 80 static __u32 check_tcp_syn_cookie(__u32 cookie, const struct in6_addr *saddr, in check_tcp_syn_cookie() argument 86 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie() 93 cookie_hash(saddr, daddr, sport, dport, count - diff, 1)) in check_tcp_syn_cookie() 109 return secure_tcp_syn_cookie(&iph->saddr, &iph->daddr, th->source, in __cookie_v6_init_sequence() [all …]
|
D | inet6_hashtables.c | 55 const struct in6_addr *saddr, in __inet6_lookup_established() argument 67 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in __inet6_lookup_established() 76 if (!INET6_MATCH(sk, net, saddr, daddr, ports, dif, sdif)) in __inet6_lookup_established() 81 if (unlikely(!INET6_MATCH(sk, net, saddr, daddr, ports, dif, sdif))) { in __inet6_lookup_established() 131 const struct in6_addr *saddr, in inet6_lhash2_lookup() argument 148 saddr, sport); in inet6_lhash2_lookup() 165 const struct in6_addr *saddr, in inet6_lookup_listener() argument 191 saddr, sport, daddr, hnum, in inet6_lookup_listener() 204 saddr, sport, daddr, hnum, in inet6_lookup_listener() 214 saddr, sport); in inet6_lookup_listener() [all …]
|
D | icmp.c | 270 icmp6h->icmp6_cksum = csum_ipv6_magic(&fl6->saddr, in icmpv6_push_pending_frames() 283 icmp6h->icmp6_cksum = csum_ipv6_magic(&fl6->saddr, in icmpv6_push_pending_frames() 325 tmp = iph->saddr; in mip6_addr_swap() 326 iph->saddr = hao->addr; in mip6_addr_swap() 429 const struct in6_addr *saddr = NULL; in icmp6_send() local 454 saddr = &hdr->daddr; in icmp6_send() 467 saddr = NULL; in icmp6_send() 470 addr_type = ipv6_addr_type(&hdr->saddr); in icmp6_send() 491 &hdr->saddr, &hdr->daddr); in icmp6_send() 500 &hdr->saddr, &hdr->daddr); in icmp6_send() [all …]
|
/Linux-v4.19/include/trace/events/ |
D | tcp.h | 15 #define TP_STORE_V4MAPPED(__entry, saddr, daddr) \ argument 20 ipv6_addr_set_v4mapped(saddr, pin6); \ 26 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \ argument 36 TP_STORE_V4MAPPED(__entry, saddr, daddr); \ 40 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \ argument 41 TP_STORE_V4MAPPED(__entry, saddr, daddr) 61 __array(__u8, saddr, 4) 77 p32 = (__be32 *) __entry->saddr; 88 __entry->sport, __entry->dport, __entry->saddr, __entry->daddr, 125 __array(__u8, saddr, 4) [all …]
|
/Linux-v4.19/arch/arm/include/asm/ |
D | checksum.h | 88 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument 102 : "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold() 115 : "r" (sum), "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold() 125 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument 128 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic() 144 __csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __be32 len, 148 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument 151 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len), in csum_ipv6_magic()
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | psock_lib.h | 91 struct sockaddr_in saddr, daddr; in pair_udp_open() local 100 memset(&saddr, 0, sizeof(saddr)); in pair_udp_open() 101 saddr.sin_family = AF_INET; in pair_udp_open() 102 saddr.sin_port = htons(port); in pair_udp_open() 103 saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open() 115 if (bind(fds[0], (void *) &saddr, sizeof(saddr))) { in pair_udp_open()
|
/Linux-v4.19/net/ipv6/netfilter/ |
D | nft_chain_route_ipv6.c | 31 struct in6_addr saddr, daddr; in nf_route_table_hook() local 40 memcpy(&saddr, &ipv6_hdr(skb)->saddr, sizeof(saddr)); in nf_route_table_hook() 50 (memcmp(&ipv6_hdr(skb)->saddr, &saddr, sizeof(saddr)) || in nf_route_table_hook()
|
D | nf_socket_ipv6.c | 74 *laddr = &inside_iph->saddr; in extract_icmp6_fields() 85 const struct in6_addr *saddr, const struct in6_addr *daddr, in nf_socket_get_sock_v6() argument 92 saddr, sport, daddr, dport, in nf_socket_get_sock_v6() 95 return udp6_lib_lookup(net, saddr, sport, daddr, dport, in nf_socket_get_sock_v6() 106 const struct in6_addr *daddr = NULL, *saddr = NULL; in nf_sk_lookup_slow_v6() local 127 saddr = &iph->saddr; in nf_sk_lookup_slow_v6() 139 if (extract_icmp6_fields(skb, thoff, &tproto, &saddr, &daddr, in nf_sk_lookup_slow_v6() 146 return nf_socket_get_sock_v6(net, data_skb, doff, tproto, saddr, daddr, in nf_sk_lookup_slow_v6()
|
/Linux-v4.19/arch/m68k/include/asm/ |
D | checksum.h | 82 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument 90 : "=&d" (sum), "=d" (saddr) in csum_tcpudp_nofold() 91 : "g" (daddr), "1" (saddr), "d" (len + proto), in csum_tcpudp_nofold() 102 csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_magic() argument 105 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic() 120 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument 143 : "a" (saddr), "a" (daddr), "d" (len + proto), in csum_ipv6_magic()
|
/Linux-v4.19/net/ipv4/ |
D | xfrm4_state.c | 31 sel->saddr.a4 = fl4->saddr; in __xfrm4_init_tempsel() 45 const xfrm_address_t *daddr, const xfrm_address_t *saddr) in xfrm4_init_temprop() argument 50 x->props.saddr = tmpl->saddr; in xfrm4_init_temprop() 51 if (x->props.saddr.a4 == 0) in xfrm4_init_temprop() 52 x->props.saddr.a4 = saddr->a4; in xfrm4_init_temprop()
|
D | netfilter.c | 25 __be32 saddr = iph->saddr; in ip_route_me_harder() local 32 addr_type = inet_addr_type_dev_table(net, dev, saddr); in ip_route_me_harder() 36 saddr = 0; in ip_route_me_harder() 42 fl4.saddr = saddr; in ip_route_me_harder() 93 iph->saddr == rt_info->saddr)) in nf_ip_reroute()
|
/Linux-v4.19/arch/parisc/include/asm/ |
D | checksum.h | 88 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument 98 : "r" (daddr), "r"(saddr), "r"(proto+len), "0"(sum)); in csum_tcpudp_nofold() 106 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument 110 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic() 124 static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument 182 : "=r" (sum), "=r" (saddr), "=r" (daddr), "=r" (len) in csum_ipv6_magic() 183 : "0" (sum), "1" (saddr), "2" (daddr), "3" (len), "r" (proto) in csum_ipv6_magic()
|
/Linux-v4.19/net/ieee802154/6lowpan/ |
D | tx.c | 23 struct ieee802154_addr saddr; member 43 const void *saddr, unsigned int len) in lowpan_header_create() argument 58 info->saddr.pan_id = wpan_dev->pan_id; in lowpan_header_create() 59 info->daddr.pan_id = info->saddr.pan_id; in lowpan_header_create() 89 if (!saddr) { in lowpan_header_create() 91 info->saddr.mode = IEEE802154_ADDR_SHORT; in lowpan_header_create() 92 info->saddr.short_addr = wpan_dev->short_addr; in lowpan_header_create() 94 info->saddr.mode = IEEE802154_ADDR_LONG; in lowpan_header_create() 95 info->saddr.extended_addr = wpan_dev->extended_addr; in lowpan_header_create() 98 info->saddr.mode = IEEE802154_ADDR_LONG; in lowpan_header_create() [all …]
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | checksum_64.h | 99 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument 108 : "=r" (sum), "=r" (saddr) in csum_tcpudp_nofold() 109 : "r" (daddr), "r" (proto + len), "0" (sum), "1" (saddr) in csum_tcpudp_nofold() 118 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument 122 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic() 127 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument 152 : "r" (saddr), "r" (daddr), "r"(htonl(len)), in csum_ipv6_magic()
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | nf_socket_ipv4.c | 69 *laddr = inside_iph->saddr; in extract_icmp4_fields() 80 const __be32 saddr, const __be32 daddr, in nf_socket_get_sock_v4() argument 87 saddr, sport, daddr, dport, in nf_socket_get_sock_v4() 90 return udp4_lib_lookup(net, saddr, sport, daddr, dport, in nf_socket_get_sock_v4() 99 __be32 uninitialized_var(daddr), uninitialized_var(saddr); in nf_sk_lookup_slow_v4() 121 saddr = iph->saddr; in nf_sk_lookup_slow_v4() 131 if (extract_icmp4_fields(skb, &protocol, &saddr, &daddr, in nf_sk_lookup_slow_v4() 158 return nf_socket_get_sock_v4(net, data_skb, doff, protocol, saddr, in nf_sk_lookup_slow_v4()
|
/Linux-v4.19/include/net/netfilter/ |
D | nf_queue.h | 47 if ((__force u32)iph->saddr < (__force u32)iph->daddr) in hash_v4() 48 return jhash_3words((__force u32)iph->saddr, in hash_v4() 52 (__force u32)iph->saddr, iph->protocol, initval); in hash_v4() 59 if ((__force u32)ip6h->saddr.s6_addr32[3] < in hash_v6() 61 a = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6() 64 b = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6() 68 if ((__force u32)ip6h->saddr.s6_addr32[1] < in hash_v6() 70 c = (__force u32) ip6h->saddr.s6_addr32[1]; in hash_v6()
|
/Linux-v4.19/drivers/infiniband/sw/rxe/ |
D | rxe_net.c | 122 struct in_addr *saddr, in rxe_find_route4() argument 130 memcpy(&fl.saddr, saddr, sizeof(*saddr)); in rxe_find_route4() 145 struct in6_addr *saddr, in rxe_find_route6() argument 153 memcpy(&fl6.saddr, saddr, sizeof(*saddr)); in rxe_find_route6() 177 struct in6_addr *saddr, in rxe_find_route6() argument 207 struct in_addr *saddr; in rxe_find_route() local 210 saddr = &av->sgid_addr._sockaddr_in.sin_addr; in rxe_find_route() 212 dst = rxe_find_route4(ndev, saddr, daddr); in rxe_find_route() 327 __be32 saddr, __be32 daddr, __u8 proto, in prepare_ipv4_hdr() argument 349 iph->saddr = saddr; in prepare_ipv4_hdr() [all …]
|