Home
last modified time | relevance | path

Searched refs:bound_dev_if (Results 1 – 15 of 15) sorted by relevance

/net/l2tp/
A Dl2tp_ip6.c74 int bound_dev_if; in __l2tp_ip6_bind_lookup() local
79 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in __l2tp_ip6_bind_lookup()
80 if (bound_dev_if && dif && bound_dev_if != dif) in __l2tp_ip6_bind_lookup()
291 int bound_dev_if; in l2tp_ip6_bind() local
321 bound_dev_if = sk->sk_bound_dev_if; in l2tp_ip6_bind()
330 bound_dev_if = addr->l2tp_scope_id; in l2tp_ip6_bind()
335 if (!bound_dev_if) in l2tp_ip6_bind()
339 dev = dev_get_by_index_rcu(sock_net(sk), bound_dev_if); in l2tp_ip6_bind()
355 if (__l2tp_ip6_bind_lookup(net, &addr->l2tp_addr, NULL, bound_dev_if, in l2tp_ip6_bind()
364 sk->sk_bound_dev_if = bound_dev_if; in l2tp_ip6_bind()
A Dl2tp_ip.c65 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()
/net/sctp/
A Dendpointola.c252 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()
A Dinput.c984 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()
A Dipv6.c687 int type, res, bound_dev_if; in sctp_v6_available() local
702 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in sctp_v6_available()
703 if (bound_dev_if) { in sctp_v6_available()
705 dev = dev_get_by_index_rcu(net, bound_dev_if); in sctp_v6_available()
/net/sched/
A Dem_meta.c314 int bound_dev_if; in META_COLLECTOR() local
321 bound_dev_if = READ_ONCE(skb->sk->sk_bound_dev_if); in META_COLLECTOR()
322 if (bound_dev_if == 0) { in META_COLLECTOR()
330 bound_dev_if); in META_COLLECTOR()
/net/netfilter/
A Dnf_conntrack_proto.c330 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()
/net/ipv6/
A Dipv6_sockglue.c497 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()
A Dudp.c134 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()
/net/ipv4/
A Dtcp_ao.c1639 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()
A Dip_output.c1630 oif = arg->bound_dev_if; in ip_send_unicast_reply()
1650 sk->sk_bound_dev_if = arg->bound_dev_if; in ip_send_unicast_reply()
A Dtcp_ipv4.c886 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()
/net/xdp/
A Dxsk.c1162 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()
/net/core/
A Dsock.c738 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()
A Dfilter.c8844 case offsetof(struct bpf_sock, bound_dev_if): in __sock_filter_check_attach_type()
10009 case offsetof(struct bpf_sock, bound_dev_if): in bpf_sock_convert_ctx_access()

Completed in 78 milliseconds