/linux-6.6.21/net/ipv4/ |
D | ping.c | 201 sk->sk_bound_dev_if); in ping_lookup() 213 sk->sk_bound_dev_if); in ping_lookup() 224 if (sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif && in ping_lookup() 225 sk->sk_bound_dev_if != sdif) in ping_lookup() 331 tb_id = l3mdev_fib_table_by_index(net, sk->sk_bound_dev_if) ? : tb_id; in ping_check_bind_addr() 371 if (!dev && sk->sk_bound_dev_if) { in ping_check_bind_addr() 372 dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if); in ping_check_bind_addr() 387 sk->sk_bound_dev_if = addr->sin6_scope_id; in ping_check_bind_addr() 420 int dif = sk->sk_bound_dev_if; in ping_bind() 436 sk->sk_bound_dev_if = dif; in ping_bind() [all …]
|
D | datagram.c | 38 oif = sk->sk_bound_dev_if; in __ip4_datagram_connect() 122 RT_CONN_FLAGS(sk), sk->sk_bound_dev_if); in ip4_datagram_release_cb()
|
D | inet_hashtables.c | 330 if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in compute_score() 332 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score() 552 int dif = sk->sk_bound_dev_if; in __inet_check_established() 625 const int sdif = sk->sk_bound_dev_if; in inet_ehash_lookup_by_sk() 626 const int dif = sk->sk_bound_dev_if; in inet_ehash_lookup_by_sk() 722 sk2->sk_bound_dev_if == sk->sk_bound_dev_if && in inet_reuseport_add_sock()
|
D | netfilter.c | 47 fl4.flowi4_oif = sk ? sk->sk_bound_dev_if : 0; in ip_route_me_harder()
|
D | udp.c | 154 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || in udp_lib_lport_inuse() 155 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_lib_lport_inuse() 191 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || in udp_lib_lport_inuse2() 192 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_lib_lport_inuse2() 220 (sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_reuseport_add_sock() 398 dev_match = udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if, in compute_score() 402 if (sk->sk_bound_dev_if) in compute_score() 579 !udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in __udp_is_mcast_sock() 1925 sk->sk_bound_dev_if = 0; in __udp_disconnect()
|
D | ip_input.c | 163 (!sk->sk_bound_dev_if || in ip_call_ra_chain() 164 sk->sk_bound_dev_if == dev->ifindex)) { in ip_call_ra_chain()
|
/linux-6.6.21/net/ipv6/ |
D | ping.c | 104 oif = sk->sk_bound_dev_if; in ping_v6_sendmsg() 117 (oif && sk->sk_bound_dev_if && oif != sk->sk_bound_dev_if && in ping_v6_sendmsg() 118 l3mdev_master_ifindex_by_index(sock_net(sk), oif) != sk->sk_bound_dev_if)) in ping_v6_sendmsg()
|
D | netfilter.c | 42 if (sk && sk->sk_bound_dev_if) in ip6_route_me_harder() 43 fl6.flowi6_oif = sk->sk_bound_dev_if; in ip6_route_me_harder() 105 .sk.sk_bound_dev_if = 1, in __nf_ip6_route()
|
D | inet6_connection_sock.c | 69 sk->sk_bound_dev_if); in inet6_csk_addr2sockaddr() 93 fl6->flowi6_oif = sk->sk_bound_dev_if; in inet6_csk_route_socket()
|
D | af_inet6.c | 329 if (sk->sk_bound_dev_if) { in __inet6_bind() 330 dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if); in __inet6_bind() 358 sk->sk_bound_dev_if = addr->sin6_scope_id; in __inet6_bind() 362 if (!sk->sk_bound_dev_if) { in __inet6_bind() 368 if (sk->sk_bound_dev_if) { in __inet6_bind() 369 dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if); in __inet6_bind() 557 sk->sk_bound_dev_if); in inet6_getname() 839 fl6.flowi6_oif = sk->sk_bound_dev_if; in inet6_sk_rebuild_header()
|
D | inet6_hashtables.c | 105 if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in compute_score() 108 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score() 272 const int dif = sk->sk_bound_dev_if; in __inet6_check_established()
|
D | datagram.c | 46 int oif = sk->sk_bound_dev_if; in ip6_datagram_flow_key_init() 227 WRITE_ONCE(sk->sk_bound_dev_if, usin->sin6_scope_id); in __ip6_datagram_connect() 230 if (!sk->sk_bound_dev_if && (addr_type & IPV6_ADDR_MULTICAST)) in __ip6_datagram_connect() 231 WRITE_ONCE(sk->sk_bound_dev_if, np->mcast_oif); in __ip6_datagram_connect() 234 if (!sk->sk_bound_dev_if) { in __ip6_datagram_connect() 808 (READ_ONCE(sk->sk_bound_dev_if) != fl6->flowi6_oif || in ip6_datagram_send_ctl()
|
D | raw.c | 75 !raw_sk_bound_dev_eq(net, sk->sk_bound_dev_if, in raw_v6_match() 248 sk->sk_bound_dev_if = addr->sin6_scope_id; in rawv6_bind() 252 if (!sk->sk_bound_dev_if) in rawv6_bind() 256 if (sk->sk_bound_dev_if) { in rawv6_bind() 259 sk->sk_bound_dev_if); in rawv6_bind() 829 fl6.flowi6_oif = sk->sk_bound_dev_if; in rawv6_sendmsg()
|
D | xfrm6_output.c | 24 fl6.flowi6_oif = sk->sk_bound_dev_if; in xfrm6_local_rxpmtu()
|
D | ipv6_sockglue.c | 693 fl6.flowi6_oif = sk->sk_bound_dev_if; in do_ipv6_setsockopt() 787 if (sk->sk_bound_dev_if) in do_ipv6_setsockopt() 817 if (sk->sk_bound_dev_if && in do_ipv6_setsockopt() 818 sk->sk_bound_dev_if != val && in do_ipv6_setsockopt() 819 (!midx || midx != sk->sk_bound_dev_if)) in do_ipv6_setsockopt()
|
D | tcp_ipv6.c | 204 sk->sk_bound_dev_if = usin->sin6_scope_id; in tcp_v6_connect() 208 if (!sk->sk_bound_dev_if) in tcp_v6_connect() 272 fl6.flowi6_oif = sk->sk_bound_dev_if; in tcp_v6_connect() 599 addr_sk->sk_bound_dev_if); in tcp_v6_md5_lookup() 792 if ((!sk_listener->sk_bound_dev_if || l3_slave) && in tcp_v6_init_req() 1056 oif = sk->sk_bound_dev_if; in tcp_v6_send_reset() 1129 READ_ONCE(req->ts_recent), sk->sk_bound_dev_if, in tcp_v6_reqsk_send_ack() 1304 newsk->sk_bound_dev_if = ireq->ir_iif; in tcp_v6_syn_recv_sock()
|
/linux-6.6.21/net/l2tp/ |
D | l2tp_ip6.c | 67 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in __l2tp_ip6_bind_lookup() 294 bound_dev_if = sk->sk_bound_dev_if; in l2tp_ip6_bind() 337 sk->sk_bound_dev_if = bound_dev_if; in l2tp_ip6_bind() 445 lsa->l2tp_scope_id = READ_ONCE(sk->sk_bound_dev_if); in l2tp_ip6_getname() 560 fl6.flowi6_oif = READ_ONCE(sk->sk_bound_dev_if); in l2tp_ip6_sendmsg()
|
D | l2tp_ip.c | 58 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in __l2tp_ip_bind_lookup() 285 sk->sk_bound_dev_if, addr->l2tp_conn_id)) { in l2tp_ip_bind() 482 sk->sk_bound_dev_if); in l2tp_ip_sendmsg()
|
/linux-6.6.21/net/dccp/ |
D | ipv6.c | 378 ireq->ir_iif = READ_ONCE(sk->sk_bound_dev_if); in dccp_v6_conn_request() 505 newsk->sk_bound_dev_if = ireq->ir_iif; in dccp_v6_request_recv_sock() 870 if (sk->sk_bound_dev_if && in dccp_v6_connect() 871 sk->sk_bound_dev_if != usin->sin6_scope_id) in dccp_v6_connect() 874 sk->sk_bound_dev_if = usin->sin6_scope_id; in dccp_v6_connect() 878 if (!sk->sk_bound_dev_if) in dccp_v6_connect() 921 fl6.flowi6_oif = sk->sk_bound_dev_if; in dccp_v6_connect()
|
/linux-6.6.21/include/net/ |
D | inet_sock.h | 121 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in inet_request_bound_dev_if() 139 sk->sk_bound_dev_if); in inet_sk_bound_l3mdev()
|
/linux-6.6.21/net/sctp/ |
D | endpointola.c | 252 int bound_dev_if = READ_ONCE(ep->base.sk->sk_bound_dev_if); 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()
|
/linux-6.6.21/net/ieee802154/ |
D | socket.c | 220 sk->sk_bound_dev_if = dev->ifindex; in raw_bind() 255 if (!sk->sk_bound_dev_if) in raw_sendmsg() 258 dev = dev_get_by_index(sock_net(sk), sk->sk_bound_dev_if); in raw_sendmsg() 369 if (!sk->sk_bound_dev_if || in ieee802154_raw_deliver() 370 sk->sk_bound_dev_if == dev->ifindex) { in ieee802154_raw_deliver()
|
/linux-6.6.21/net/mptcp/ |
D | sockopt.c | 318 sk->sk_bound_dev_if = ssk->sk_bound_dev_if; in mptcp_setsockopt_sol_socket() 320 sk->sk_bound_dev_if = ssk->sk_bound_dev_if; in mptcp_setsockopt_sol_socket() 1415 ssk->sk_bound_dev_if = sk->sk_bound_dev_if; in sync_socket_options()
|
/linux-6.6.21/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 1361 if (sk->sk_bound_dev_if && dev->ifindex != sk->sk_bound_dev_if) in set_mcast_if() 1395 if (sk->sk_bound_dev_if && dev->ifindex != sk->sk_bound_dev_if) in join_mcast_group() 1413 if (sk->sk_bound_dev_if && dev->ifindex != sk->sk_bound_dev_if) in join_mcast_group6() 1548 sock->sk->sk_bound_dev_if = dev->ifindex; in make_receive_sock()
|
/linux-6.6.21/net/phonet/ |
D | af_phonet.c | 245 if (sk->sk_bound_dev_if) in pn_skb_send() 246 dev = dev_get_by_index(net, sk->sk_bound_dev_if); in pn_skb_send()
|