/linux/include/net/ |
H A D | inet_sock.h | 122 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in inet_request_bound_dev_if() local 126 if (!bound_dev_if && READ_ONCE(net->ipv4.sysctl_tcp_l3mdev_accept)) in inet_request_bound_dev_if() 130 return bound_dev_if; in inet_request_bound_dev_if() 146 static inline bool inet_bound_dev_eq(bool l3mdev_accept, int bound_dev_if, in inet_bound_dev_eq() argument 149 if (!bound_dev_if) in inet_bound_dev_eq() 151 return bound_dev_if == dif || bound_dev_if == sdif; in inet_bound_dev_eq() 155 int bound_dev_if, in inet_sk_bound_dev_eq() argument 160 bound_dev_if, dif, sdif); in inet_sk_bound_dev_eq() 162 return inet_bound_dev_eq(true, bound_dev_if, di in inet_sk_bound_dev_eq() [all...] |
H A D | raw.h | 88 static inline bool raw_sk_bound_dev_eq(struct net *net, int bound_dev_if, in raw_sk_bound_dev_eq() argument 93 bound_dev_if, dif, sdif); in raw_sk_bound_dev_eq() 95 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif); in raw_sk_bound_dev_eq()
|
H A D | udp.h | 374 static inline bool udp_sk_bound_dev_eq(const struct net *net, int bound_dev_if, in udp_sk_bound_dev_eq() argument 379 bound_dev_if, dif, sdif); in udp_sk_bound_dev_eq() 381 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif); in udp_sk_bound_dev_eq()
|
H A D | sock.h | 2975 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in sk_dev_equal_l3scope() local 2978 if (!bound_dev_if || bound_dev_if == dif) in sk_dev_equal_l3scope() 2982 if (mdif && mdif == bound_dev_if) in sk_dev_equal_l3scope()
|
H A D | ip.h | 275 int bound_dev_if; member
|
/linux/net/sctp/ |
H A D | endpointola.c | 252 int bound_dev_if = READ_ONCE(ep->base.sk->sk_bound_dev_if); in sctp_endpoint_is_match() local 256 sctp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif) && in sctp_endpoint_is_match() 304 int bound_dev_if = READ_ONCE(ep->base.sk->sk_bound_dev_if); in sctp_endpoint_is_peeled_off() local 315 bound_dev_if, bound_dev_if)) in sctp_endpoint_is_peeled_off()
|
H A D | input.c | 984 bool sctp_sk_bound_dev_eq(struct net *net, int bound_dev_if, int dif, int sdif) in sctp_sk_bound_dev_eq() argument 991 return inet_bound_dev_eq(l3mdev_accept, bound_dev_if, dif, sdif); in sctp_sk_bound_dev_eq() 1003 int bound_dev_if; in sctp_addrs_lookup_transport() local 1017 bound_dev_if = READ_ONCE(t->asoc->base.sk->sk_bound_dev_if); in sctp_addrs_lookup_transport() 1018 if (sctp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif) && in sctp_addrs_lookup_transport()
|
/linux/drivers/infiniband/core/ |
H A D | addr.c | 182 header->ifindex = dev_addr->bound_dev_if; in ib_nl_ip_send_msg() 241 dev_addr->bound_dev_if = dev->ifindex; in rdma_copy_src_l2_addr() 280 if (dev_addr->bound_dev_if) { in rdma_translate_ip() 281 dev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if); in rdma_translate_ip() 396 fl4.flowi4_oif = addr->bound_dev_if; in addr4_resolve() 425 fl6.flowi6_oif = addr->bound_dev_if; in addr6_resolve() 536 addr->bound_dev_if = ndev->ifindex; in set_addr_netns_by_gid_rcu() 543 addr->bound_dev_if = 0; in rdma_addr_set_net_defaults()
|
H A D | cma.c | 461 int ifindex_b = id_priv->id.route.addr.dev_addr.bound_dev_if; in compare_netdev_and_ip() 502 node_id_priv->id.route.addr.dev_addr.bound_dev_if, in cma_add_id_to_tree() 560 id_priv->id.route.addr.dev_addr.bound_dev_if, in cma_remove_id_from_tree() 678 int bound_if_index = dev_addr->bound_dev_if; in cma_validate_port() 1799 (!!addr->dev_addr.bound_dev_if == in cma_match_net_dev() 1800 (addr->dev_addr.bound_dev_if == net_dev->ifindex))) in cma_match_net_dev() 2016 if (dev_addr->bound_dev_if) in destroy_mc() 2018 dev_addr->bound_dev_if); in destroy_mc() 3132 if (!addr->dev_addr.bound_dev_if) in cma_iboe_set_path_rec_l2_fields() 3136 addr->dev_addr.bound_dev_if); in cma_iboe_set_path_rec_l2_fields() [all...] |
/linux/net/l2tp/ |
H A D | l2tp_ip.c | 65 int bound_dev_if; in __l2tp_ip_bind_lookup() local 70 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in __l2tp_ip_bind_lookup() 71 if (bound_dev_if && dif && bound_dev_if != dif) in __l2tp_ip_bind_lookup()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sock_create.c | 138 offsetof(struct bpf_sock, bound_dev_if)), 159 offsetof(struct bpf_sock, bound_dev_if)),
|
H A D | sock_fields.c | 69 printf("%s: state:%u bound_dev_if:%u family:%u type:%u protocol:%u mark:%u priority:%u " in print_sk() 73 sk->state, sk->bound_dev_if, sk->family, sk->type, sk->protocol, in print_sk()
|
H A D | ctx_rewrite.c | 127 N(CGROUP_SOCK, struct bpf_sock, bound_dev_if),
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sock_fields.c | 67 dst->bound_dev_if = src->bound_dev_if; in skcpy()
|
/linux/net/netfilter/ |
H A D | nf_conntrack_proto.c | 330 int bound_dev_if; in ipv6_getorigdst() local 338 bound_dev_if = sk->sk_bound_dev_if; in ipv6_getorigdst() 363 sin6.sin6_scope_id = ipv6_iface_scope_id(&sin6.sin6_addr, bound_dev_if); in ipv6_getorigdst()
|
/linux/net/ipv6/ |
H A D | ipv6_sockglue.c | 497 int bound_dev_if, midx; in do_ipv6_setsockopt() local 510 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in do_ipv6_setsockopt() 511 if (bound_dev_if && in do_ipv6_setsockopt() 512 bound_dev_if != val && in do_ipv6_setsockopt() 513 (!midx || midx != bound_dev_if)) in do_ipv6_setsockopt()
|
H A D | udp.c | 134 int bound_dev_if, score; in compute_score() local 161 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in compute_score() 162 dev_match = udp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif); in compute_score() 165 if (bound_dev_if) in compute_score()
|
/linux/include/rdma/ |
H A D | ib_addr.h | 31 * @bound_dev_if: An optional device interface index. 33 * @net: Network namespace containing the bound_dev_if net_dev. 41 int bound_dev_if; member
|
/linux/net/ipv4/ |
H A D | tcp_ao.c | 1639 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in tcp_ao_add_cmd() local 1651 if (!bound_dev_if || bound_dev_if != cmd.ifindex) { in tcp_ao_add_cmd() 1665 if (bound_dev_if && bound_dev_if != cmd.ifindex) in tcp_ao_add_cmd() 1667 cmd.ifindex, bound_dev_if); in tcp_ao_add_cmd()
|
H A D | tcp_ipv4.c | 886 arg.bound_dev_if = sk->sk_bound_dev_if; in tcp_v4_send_reset() 1016 arg.bound_dev_if = oif; in tcp_v4_send_ack()
|
/linux/net/xdp/ |
H A D | xsk.c | 1162 int bound_dev_if; in xsk_bind() local 1176 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in xsk_bind() 1177 if (bound_dev_if && bound_dev_if != sxdp->sxdp_ifindex) in xsk_bind()
|
/linux/include/net/sctp/ |
H A D | sctp.h | 163 bool sctp_sk_bound_dev_eq(struct net *net, int bound_dev_if, int dif, int sdif);
|
/linux/net/core/ |
H A D | sock.c | 738 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in sock_getbindtodevice() local 742 if (bound_dev_if == 0) { in sock_getbindtodevice() 751 ret = netdev_get_name(net, devname, bound_dev_if); in sock_getbindtodevice()
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 6393 __u32 bound_dev_if; member
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 6393 __u32 bound_dev_if; member
|