/kernel/linux/linux-6.6/include/net/ |
H A D | route.h | 141 struct net *net, __be32 *saddr, 154 __be32 saddr, u8 tos, int oif) in ip_route_output() 160 .saddr = saddr, in ip_route_output() 167 __be32 daddr, __be32 saddr, in ip_route_output_ports() 174 daddr, saddr, dport, sport, sock_net_uid(net, sk)); in ip_route_output_ports() 181 __be32 daddr, __be32 saddr, in ip_route_output_gre() 187 fl4->saddr = saddr; in ip_route_output_gre() 193 int ip_mc_validate_source(struct sk_buff *skb, __be32 daddr, __be32 saddr, 153 ip_route_output(struct net *net, __be32 daddr, __be32 saddr, u8 tos, int oif) ip_route_output() argument 165 ip_route_output_ports(struct net *net, struct flowi4 *fl4, const struct sock *sk, __be32 daddr, __be32 saddr, __be16 dport, __be16 sport, __u8 proto, __u8 tos, int oif) ip_route_output_ports() argument 180 ip_route_output_gre(struct net *net, struct flowi4 *fl4, __be32 daddr, __be32 saddr, __be32 gre_key, __u8 tos, int oif) ip_route_output_gre() argument [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | syncookies.c | 45 static u32 cookie_hash(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport, in cookie_hash() argument 49 return siphash_4u32((__force u32)saddr, (__force u32)daddr, in cookie_hash() 83 static __u32 secure_tcp_syn_cookie(__be32 saddr, __be32 daddr, __be16 sport, in secure_tcp_syn_cookie() argument 89 * HASH(sec1,saddr,sport,daddr,dport,sec1) + sseq + (count * 2^24) in secure_tcp_syn_cookie() 90 * + (HASH(sec2,saddr,sport,daddr,dport,count,sec2) % 2^24). in secure_tcp_syn_cookie() 97 return (cookie_hash(saddr, daddr, sport, dport, 0, 0) + in secure_tcp_syn_cookie() 99 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data) in secure_tcp_syn_cookie() 112 static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, in check_tcp_syn_cookie() argument 118 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie() 126 cookie_hash(saddr, dadd in check_tcp_syn_cookie() [all...] |
H A D | inet_hashtables.c | 348 * @saddr: source address. 359 __be32 saddr, __be16 sport, in inet_lookup_reuseport() 368 net, daddr, hnum, saddr, sport); in inet_lookup_reuseport() 386 const __be32 saddr, __be16 sport, in inet_lhash2_lookup() 398 saddr, sport, daddr, hnum, inet_ehashfn); in inet_lhash2_lookup() 413 __be32 saddr, __be16 sport, in inet_lookup_run_sk_lookup() 420 no_reuseport = bpf_sk_lookup_run_v4(net, protocol, saddr, sport, in inet_lookup_run_sk_lookup() 425 reuse_sk = inet_lookup_reuseport(net, sk, skb, doff, saddr, sport, daddr, hnum, in inet_lookup_run_sk_lookup() 435 const __be32 saddr, __be16 sport, in __inet_lookup_listener() 447 saddr, spor in __inet_lookup_listener() 357 inet_lookup_reuseport(struct net *net, struct sock *sk, struct sk_buff *skb, int doff, __be32 saddr, __be16 sport, __be32 daddr, unsigned short hnum, inet_ehashfn_t *ehashfn) inet_lookup_reuseport() argument 383 inet_lhash2_lookup(struct net *net, struct inet_listen_hashbucket *ilb2, struct sk_buff *skb, int doff, const __be32 saddr, __be16 sport, const __be32 daddr, const unsigned short hnum, const int dif, const int sdif) inet_lhash2_lookup() argument 410 inet_lookup_run_sk_lookup(struct net *net, int protocol, struct sk_buff *skb, int doff, __be32 saddr, __be16 sport, __be32 daddr, u16 hnum, const int dif, inet_ehashfn_t *ehashfn) inet_lookup_run_sk_lookup() argument 432 __inet_lookup_listener(struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const __be32 saddr, __be16 sport, const __be32 daddr, const unsigned short hnum, const int dif, const int sdif) __inet_lookup_listener() argument 497 __inet_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, const __be32 saddr, const __be16 sport, const __be32 daddr, const u16 hnum, const int dif, const int sdif) __inet_lookup_established() argument 551 __be32 saddr = inet->inet_daddr; __inet_check_established() local 883 inet_update_saddr(struct sock *sk, void *saddr, int family) inet_update_saddr() argument 896 __inet_bhash2_update_saddr(struct sock *sk, void *saddr, int family, bool reset) __inet_bhash2_update_saddr() argument 974 inet_bhash2_update_saddr(struct sock *sk, void *saddr, int family) inet_bhash2_update_saddr() argument [all...] |
H A D | icmp.c | 405 __be32 daddr, saddr; in icmp_reply() local 430 daddr = ipc.addr = ip_hdr(skb)->saddr; in icmp_reply() 431 saddr = fib_compute_spec_dst(skb); in icmp_reply() 440 fl4.saddr = saddr; in icmp_reply() 480 __be32 saddr, u8 tos, u32 mark, in icmp_route_lookup() 491 param->replyopts.opt.opt.faddr : iph->saddr); in icmp_route_lookup() 492 fl4->saddr = saddr; in icmp_route_lookup() 525 fl4_dec.saddr) in icmp_route_lookup() 476 icmp_route_lookup(struct net *net, struct flowi4 *fl4, struct sk_buff *skb_in, const struct iphdr *iph, __be32 saddr, u8 tos, u32 mark, int type, int code, struct icmp_bxm *param) icmp_route_lookup() argument 596 __be32 saddr; __icmp_send() local [all...] |
/kernel/linux/linux-5.10/net/xfrm/ |
H A D | xfrm_state.c | 59 const xfrm_address_t *saddr, in xfrm_dst_hash() 63 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); in xfrm_dst_hash() 68 const xfrm_address_t *saddr, in xfrm_src_hash() 71 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); in xfrm_src_hash() 93 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer() 98 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer() 859 sel->saddr.a4 = fl4->saddr; in __xfrm4_init_tempsel() 878 *(struct in6_addr *)&sel->saddr = fl6->saddr; in __xfrm6_init_tempsel() 57 xfrm_dst_hash(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u32 reqid, unsigned short family) xfrm_dst_hash() argument 66 xfrm_src_hash(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) xfrm_src_hash() argument 891 xfrm_init_tempstate(struct xfrm_state *x, const struct flowi *fl, const struct xfrm_tmpl *tmpl, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) xfrm_init_tempstate() argument 954 __xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) __xfrm_state_lookup_byaddr() argument 1046 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct flowi *fl, struct xfrm_tmpl *tmpl, struct xfrm_policy *pol, int *err, unsigned short family, u32 if_id) xfrm_state_find() argument 1190 xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id, xfrm_address_t *daddr, xfrm_address_t *saddr, unsigned short family, u8 mode, u8 proto, u32 reqid) xfrm_stateonly_find() argument 1310 __find_acq_core(struct net *net, const struct xfrm_mark *m, unsigned short family, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create) __find_acq_core() argument 1788 xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) xfrm_state_lookup_byaddr() argument 1802 xfrm_find_acq(struct net *net, const struct xfrm_mark *mark, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create, unsigned short family) xfrm_find_acq() argument [all...] |
/kernel/linux/linux-6.6/net/xfrm/ |
H A D | xfrm_state.c | 60 const xfrm_address_t *saddr, in xfrm_dst_hash() 64 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); in xfrm_dst_hash() 69 const xfrm_address_t *saddr, in xfrm_src_hash() 72 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); in xfrm_src_hash() 119 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer() 124 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer() 907 sel->saddr.a4 = fl4->saddr; in __xfrm4_init_tempsel() 926 *(struct in6_addr *)&sel->saddr = fl6->saddr; in __xfrm6_init_tempsel() 58 xfrm_dst_hash(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u32 reqid, unsigned short family) xfrm_dst_hash() argument 67 xfrm_src_hash(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) xfrm_src_hash() argument 939 xfrm_init_tempstate(struct xfrm_state *x, const struct flowi *fl, const struct xfrm_tmpl *tmpl, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) xfrm_init_tempstate() argument 1045 __xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) __xfrm_state_lookup_byaddr() argument 1137 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct flowi *fl, struct xfrm_tmpl *tmpl, struct xfrm_policy *pol, int *err, unsigned short family, u32 if_id) xfrm_state_find() argument 1362 xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id, xfrm_address_t *daddr, xfrm_address_t *saddr, unsigned short family, u8 mode, u8 proto, u32 reqid) xfrm_stateonly_find() argument 1492 __find_acq_core(struct net *net, const struct xfrm_mark *m, unsigned short family, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create) __find_acq_core() argument 1974 xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) xfrm_state_lookup_byaddr() argument 1988 xfrm_find_acq(struct net *net, const struct xfrm_mark *mark, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create, unsigned short family) xfrm_find_acq() argument [all...] |
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
H A D | checksum.h | 20 extern __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, 23 extern __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, 59 extern __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
|
/kernel/linux/linux-6.6/arch/ia64/include/asm/ |
H A D | checksum.h | 20 extern __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, 23 extern __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, 59 extern __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
|
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/ |
H A D | xt_policy.h | 25 __u8 saddr:1, member 44 union nf_inet_addr saddr; member 51 union xt_policy_addr saddr;
|
/kernel/linux/linux-5.10/include/asm-generic/ |
H A D | checksum.h | 46 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, 52 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument 55 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
|
/kernel/linux/linux-6.6/include/asm-generic/ |
H A D | checksum.h | 46 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, 52 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument 55 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
|
/kernel/linux/linux-6.6/include/uapi/linux/netfilter/ |
H A D | xt_policy.h | 25 __u8 saddr:1, member 44 union nf_inet_addr saddr; member 51 union xt_policy_addr saddr;
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter/ |
H A D | xt_policy.h | 23 __u8 saddr:1, member 40 union nf_inet_addr saddr; member 47 union xt_policy_addr saddr;
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | utils.c | 22 !csum_tcpudp_magic(iph->saddr, iph->daddr, in nf_ip_checksum() 33 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, in nf_ip_checksum() 56 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol, in nf_ip_checksum_partial() 74 if (!csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in nf_ip6_checksum() 85 csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in nf_ip6_checksum() 112 skb->csum = ~csum_unfold(csum_ipv6_magic(&ip6h->saddr, in nf_ip6_checksum_partial() 193 iph->saddr == rt_info->saddr)) in nf_ip_reroute()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_bpf_nf.c | 30 __be32 saddr = 0; variable 145 bpf_tuple.ipv4.saddr = bpf_get_prandom_u32(); /* src IP */ in nf_ct_test() 155 union nf_inet_addr saddr = {}; in nf_ct_test() local 163 saddr.ip = bpf_get_prandom_u32(); in nf_ct_test() 164 bpf_ct_set_nat_info(ct, &saddr, sport, NF_NAT_MANIP_SRC___local); in nf_ct_test() 180 if (tuple->dst.u3.ip == saddr.ip && in nf_ct_test() 205 bpf_tuple.ipv4.saddr = saddr; in nf_ct_test()
|
H A D | test_tcp_check_syncookie_kern.c | 77 tup.ipv4.saddr = ipv4h->saddr; in check_syncookie() 109 memcpy(tup.ipv6.saddr, &ipv6h->saddr, sizeof(tup.ipv6.saddr)); in check_syncookie()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | icmp.c | 411 __be32 daddr, saddr; in icmp_reply() local 436 daddr = ipc.addr = ip_hdr(skb)->saddr; in icmp_reply() 437 saddr = fib_compute_spec_dst(skb); in icmp_reply() 446 fl4.saddr = saddr; in icmp_reply() 486 __be32 saddr, u8 tos, u32 mark, in icmp_route_lookup() 497 param->replyopts.opt.opt.faddr : iph->saddr); in icmp_route_lookup() 498 fl4->saddr = saddr; in icmp_route_lookup() 531 fl4_dec.saddr) in icmp_route_lookup() 482 icmp_route_lookup(struct net *net, struct flowi4 *fl4, struct sk_buff *skb_in, const struct iphdr *iph, __be32 saddr, u8 tos, u32 mark, int type, int code, struct icmp_bxm *param) icmp_route_lookup() argument 602 __be32 saddr; __icmp_send() local [all...] |
/kernel/linux/linux-5.10/net/6lowpan/ |
H A D | iphc.c | 149 (!(hdr->saddr.s6_addr[1] & 0x3f) && \ 150 !hdr->saddr.s6_addr16[1] && \ 151 !hdr->saddr.s6_addr32[1]) 613 const void *daddr, const void *saddr) in lowpan_header_decompress() 668 err = lowpan_iphc_uncompress_ctx_addr(skb, dev, ci, &hdr.saddr, in lowpan_header_decompress() 670 saddr); in lowpan_header_decompress() 675 err = lowpan_iphc_uncompress_addr(skb, dev, &hdr.saddr, in lowpan_header_decompress() 677 saddr); in lowpan_header_decompress() 1132 const void *daddr, const void *saddr) in lowpan_header_compress() 1178 sci = lowpan_iphc_ctx_get_by_addr(dev, &hdr->saddr); in lowpan_header_compress() 612 lowpan_header_decompress(struct sk_buff *skb, const struct net_device *dev, const void *daddr, const void *saddr) lowpan_header_decompress() argument 1131 lowpan_header_compress(struct sk_buff *skb, const struct net_device *dev, const void *daddr, const void *saddr) lowpan_header_compress() argument [all...] |
/kernel/linux/linux-6.6/net/6lowpan/ |
H A D | iphc.c | 149 (!(hdr->saddr.s6_addr[1] & 0x3f) && \ 150 !hdr->saddr.s6_addr16[1] && \ 151 !hdr->saddr.s6_addr32[1]) 613 const void *daddr, const void *saddr) in lowpan_header_decompress() 668 err = lowpan_iphc_uncompress_ctx_addr(skb, dev, ci, &hdr.saddr, in lowpan_header_decompress() 670 saddr); in lowpan_header_decompress() 675 err = lowpan_iphc_uncompress_addr(skb, dev, &hdr.saddr, in lowpan_header_decompress() 677 saddr); in lowpan_header_decompress() 1132 const void *daddr, const void *saddr) in lowpan_header_compress() 1178 sci = lowpan_iphc_ctx_get_by_addr(dev, &hdr->saddr); in lowpan_header_compress() 612 lowpan_header_decompress(struct sk_buff *skb, const struct net_device *dev, const void *daddr, const void *saddr) lowpan_header_decompress() argument 1131 lowpan_header_compress(struct sk_buff *skb, const struct net_device *dev, const void *daddr, const void *saddr) lowpan_header_compress() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_benchmark.c | 32 uint64_t saddr, uint64_t daddr, int n) in amdgpu_benchmark_do_move() 42 r = amdgpu_copy_buffer(ring, saddr, daddr, size, NULL, &fence, in amdgpu_benchmark_do_move() 77 uint64_t saddr, daddr; in amdgpu_benchmark_move() local 106 saddr = amdgpu_bo_gpu_offset(sobj); in amdgpu_benchmark_move() 128 time = amdgpu_benchmark_do_move(adev, size, saddr, daddr, n); in amdgpu_benchmark_move() 31 amdgpu_benchmark_do_move(struct amdgpu_device *adev, unsigned size, uint64_t saddr, uint64_t daddr, int n) amdgpu_benchmark_do_move() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_tcp_check_syncookie_kern.c | 77 tup.ipv4.saddr = ipv4h->saddr; in check_syncookie() 109 memcpy(tup.ipv6.saddr, &ipv6h->saddr, sizeof(tup.ipv6.saddr)); in check_syncookie()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/libcxgb/ |
H A D | libcxgb_cm.c | 58 pr_debug("%s saddr 0x%x daddr 0x%x sport %u dport %u\n", in cxgb_get_4tuple() 59 __func__, ntohl(ip->saddr), ntohl(ip->daddr), in cxgb_get_4tuple() 62 memcpy(peer_ip, &ip->saddr, 4); in cxgb_get_4tuple() 65 pr_debug("%s saddr %pI6 daddr %pI6 sport %u dport %u\n", in cxgb_get_4tuple() 66 __func__, ip6->saddr.s6_addr, ip6->daddr.s6_addr, in cxgb_get_4tuple() 69 memcpy(peer_ip, ip6->saddr.s6_addr, 16); in cxgb_get_4tuple() 133 memcpy(&fl6.saddr, local_ip, 16); in cxgb_find_route6()
|
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
H A D | ebt_arp.c | 41 __be32 saddr, daddr; in ebt_arp_mt() local 46 ah->ar_hln, sizeof(saddr), in ebt_arp_mt() 47 &saddr); in ebt_arp_mt() 51 2*ah->ar_hln+sizeof(saddr), in ebt_arp_mt() 57 info->saddr != (*sap & info->smsk))) in ebt_arp_mt()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/libcxgb/ |
H A D | libcxgb_cm.c | 58 pr_debug("%s saddr 0x%x daddr 0x%x sport %u dport %u\n", in cxgb_get_4tuple() 59 __func__, ntohl(ip->saddr), ntohl(ip->daddr), in cxgb_get_4tuple() 62 memcpy(peer_ip, &ip->saddr, 4); in cxgb_get_4tuple() 65 pr_debug("%s saddr %pI6 daddr %pI6 sport %u dport %u\n", in cxgb_get_4tuple() 66 __func__, ip6->saddr.s6_addr, ip6->daddr.s6_addr, in cxgb_get_4tuple() 69 memcpy(peer_ip, ip6->saddr.s6_addr, 16); in cxgb_get_4tuple() 133 memcpy(&fl6.saddr, local_ip, 16); in cxgb_find_route6()
|
/kernel/linux/linux-6.6/net/bridge/netfilter/ |
H A D | ebt_arp.c | 41 __be32 saddr, daddr; in ebt_arp_mt() local 46 ah->ar_hln, sizeof(saddr), in ebt_arp_mt() 47 &saddr); in ebt_arp_mt() 51 2*ah->ar_hln+sizeof(saddr), in ebt_arp_mt() 57 info->saddr != (*sap & info->smsk))) in ebt_arp_mt()
|