/linux-master/include/net/ |
H A D | raw.h | 88 static inline bool raw_sk_bound_dev_eq(struct net *net, int bound_dev_if, argument 93 bound_dev_if, dif, sdif); 95 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif);
|
H A D | inet_sock.h | 121 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); local 125 if (!bound_dev_if && READ_ONCE(net->ipv4.sysctl_tcp_l3mdev_accept)) 129 return bound_dev_if; 145 static inline bool inet_bound_dev_eq(bool l3mdev_accept, int bound_dev_if, argument 148 if (!bound_dev_if) 150 return bound_dev_if == dif || bound_dev_if == sdif; 153 static inline bool inet_sk_bound_dev_eq(struct net *net, int bound_dev_if, argument 158 bound_dev_if, dif, sdif); 160 return inet_bound_dev_eq(true, bound_dev_if, di [all...] |
H A D | udp.h | 248 static inline bool udp_sk_bound_dev_eq(struct net *net, int bound_dev_if, argument 253 bound_dev_if, dif, sdif); 255 return inet_bound_dev_eq(true, bound_dev_if, dif, sdif);
|
H A D | sock.h | 2920 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); local 2923 if (!bound_dev_if || bound_dev_if == dif) 2927 if (mdif && mdif == bound_dev_if)
|
H A D | ip.h | 276 int bound_dev_if; member in struct:ip_reply_arg
|
/linux-master/net/l2tp/ |
H A D | l2tp_ip6.c | 62 int bound_dev_if; local 67 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); 68 if (bound_dev_if && dif && bound_dev_if != dif) 266 int bound_dev_if; local 294 bound_dev_if = sk->sk_bound_dev_if; 303 bound_dev_if = addr->l2tp_scope_id; 308 if (!bound_dev_if) 312 dev = dev_get_by_index_rcu(sock_net(sk), bound_dev_if); 328 if (__l2tp_ip6_bind_lookup(net, &addr->l2tp_addr, NULL, bound_dev_if, [all...] |
H A D | l2tp_ip.c | 53 int bound_dev_if; local 58 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); 59 if (bound_dev_if && dif && bound_dev_if != dif)
|
/linux-master/net/sctp/ |
H A D | endpointola.c | 252 int bound_dev_if = READ_ONCE(ep->base.sk->sk_bound_dev_if); local 256 sctp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif) && 304 int bound_dev_if = READ_ONCE(ep->base.sk->sk_bound_dev_if); local 315 bound_dev_if, bound_dev_if))
|
H A D | input.c | 981 bool sctp_sk_bound_dev_eq(struct net *net, int bound_dev_if, int dif, int sdif) argument 988 return inet_bound_dev_eq(l3mdev_accept, bound_dev_if, dif, sdif); 1000 int bound_dev_if; local 1014 bound_dev_if = READ_ONCE(t->asoc->base.sk->sk_bound_dev_if); 1015 if (sctp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif) &&
|
/linux-master/samples/bpf/ |
H A D | test_cgrp2_sock.c | 44 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, bound_dev_if)), 45 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, bound_dev_if)),
|
/linux-master/drivers/infiniband/core/ |
H A D | addr.c | 182 header->ifindex = dev_addr->bound_dev_if; 241 dev_addr->bound_dev_if = dev->ifindex; 280 if (dev_addr->bound_dev_if) { 281 dev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if); 402 fl4.flowi4_oif = addr->bound_dev_if; 431 fl6.flowi6_oif = addr->bound_dev_if; 542 addr->bound_dev_if = ndev->ifindex; 549 addr->bound_dev_if = 0;
|
H A D | cma.c | 473 int ifindex_b = id_priv->id.route.addr.dev_addr.bound_dev_if; 514 node_id_priv->id.route.addr.dev_addr.bound_dev_if, 572 id_priv->id.route.addr.dev_addr.bound_dev_if, 690 int bound_if_index = dev_addr->bound_dev_if; 1778 (!!addr->dev_addr.bound_dev_if == 1779 (addr->dev_addr.bound_dev_if == net_dev->ifindex))) 1995 if (dev_addr->bound_dev_if) 1997 dev_addr->bound_dev_if); 3111 if (!addr->dev_addr.bound_dev_if) 3115 addr->dev_addr.bound_dev_if); [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_sock_fields.c | 64 dst->bound_dev_if = src->bound_dev_if;
|
/linux-master/net/netfilter/ |
H A D | nf_conntrack_proto.c | 333 int bound_dev_if; local 341 bound_dev_if = sk->sk_bound_dev_if; 366 sin6.sin6_scope_id = ipv6_iface_scope_id(&sin6.sin6_addr, bound_dev_if);
|
/linux-master/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 in struct:rdma_dev_addr
|
/linux-master/net/sched/ |
H A D | em_meta.c | 308 /* No error if bound_dev_if is 0, legal userspace check */ 314 int bound_dev_if; local 321 bound_dev_if = READ_ONCE(skb->sk->sk_bound_dev_if); 322 if (bound_dev_if == 0) { 330 bound_dev_if);
|
/linux-master/net/ipv6/ |
H A D | ipv6_sockglue.c | 519 int bound_dev_if, midx; local 532 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); 533 if (bound_dev_if && 534 bound_dev_if != val && 535 (!midx || midx != bound_dev_if))
|
H A D | udp.c | 122 int bound_dev_if, score; local 149 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); 150 dev_match = udp_sk_bound_dev_eq(net, bound_dev_if, dif, sdif); 153 if (bound_dev_if)
|
/linux-master/net/ipv4/ |
H A D | tcp_ao.c | 1611 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); local 1623 if (!bound_dev_if || bound_dev_if != cmd.ifindex) { 1637 if (bound_dev_if && bound_dev_if != cmd.ifindex) 1639 cmd.ifindex, bound_dev_if);
|
H A D | ip_output.c | 1615 oif = arg->bound_dev_if; 1635 sk->sk_bound_dev_if = arg->bound_dev_if;
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
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 " 73 sk->state, sk->bound_dev_if, sk->family, sk->type, sk->protocol,
|
H A D | ctx_rewrite.c | 124 N(CGROUP_SOCK, struct bpf_sock, bound_dev_if),
|
/linux-master/net/xdp/ |
H A D | xsk.c | 1167 int bound_dev_if; local 1181 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); 1182 if (bound_dev_if && bound_dev_if != sxdp->sxdp_ifindex)
|
/linux-master/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-master/include/uapi/linux/ |
H A D | bpf.h | 6319 __u32 bound_dev_if; member in struct:bpf_sock
|