/linux-6.1.9/net/ipv4/ |
D | ping.c | 211 sk->sk_bound_dev_if); in ping_lookup() 223 sk->sk_bound_dev_if); in ping_lookup() 234 if (sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif && in ping_lookup() 235 sk->sk_bound_dev_if != sdif) in ping_lookup() 341 tb_id = l3mdev_fib_table_by_index(net, sk->sk_bound_dev_if) ? : tb_id; in ping_check_bind_addr() 381 if (!dev && sk->sk_bound_dev_if) { in ping_check_bind_addr() 382 dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if); in ping_check_bind_addr() 397 sk->sk_bound_dev_if = addr->sin6_scope_id; in ping_check_bind_addr() 430 int dif = sk->sk_bound_dev_if; in ping_bind() 446 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 | 323 if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in compute_score() 325 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score() 526 int dif = sk->sk_bound_dev_if; in __inet_check_established() 599 const int sdif = sk->sk_bound_dev_if; in inet_ehash_lookup_by_sk() 600 const int dif = sk->sk_bound_dev_if; in inet_ehash_lookup_by_sk() 709 sk2->sk_bound_dev_if == sk->sk_bound_dev_if && in inet_reuseport_add_sock()
|
D | udp.c | 147 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || in udp_lib_lport_inuse() 148 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_lib_lport_inuse() 184 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || in udp_lib_lport_inuse2() 185 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_lib_lport_inuse2() 213 (sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_reuseport_add_sock() 391 dev_match = udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if, in compute_score() 395 if (sk->sk_bound_dev_if) in compute_score() 588 !udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in __udp_is_mcast_sock() 1972 sk->sk_bound_dev_if = 0; in __udp_disconnect()
|
D | netfilter.c | 47 fl4.flowi4_oif = sk ? sk->sk_bound_dev_if : 0; in ip_route_me_harder()
|
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.1.9/net/ipv6/ |
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 | ping.c | 109 oif = sk->sk_bound_dev_if; in ping_v6_sendmsg() 122 (oif && sk->sk_bound_dev_if && oif != sk->sk_bound_dev_if)) in ping_v6_sendmsg()
|
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 | 334 if (sk->sk_bound_dev_if) { in __inet6_bind() 335 dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if); in __inet6_bind() 363 sk->sk_bound_dev_if = addr->sin6_scope_id; in __inet6_bind() 367 if (!sk->sk_bound_dev_if) { in __inet6_bind() 373 if (sk->sk_bound_dev_if) { in __inet6_bind() 374 dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if); in __inet6_bind() 563 sk->sk_bound_dev_if); in inet6_getname() 847 fl6.flowi6_oif = sk->sk_bound_dev_if; in inet6_sk_rebuild_header()
|
D | inet6_hashtables.c | 104 if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in compute_score() 107 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score() 251 const int dif = sk->sk_bound_dev_if; in __inet6_check_established()
|
D | datagram.c | 45 int oif = sk->sk_bound_dev_if; in ip6_datagram_flow_key_init() 226 WRITE_ONCE(sk->sk_bound_dev_if, usin->sin6_scope_id); in __ip6_datagram_connect() 229 if (!sk->sk_bound_dev_if && (addr_type & IPV6_ADDR_MULTICAST)) in __ip6_datagram_connect() 230 WRITE_ONCE(sk->sk_bound_dev_if, np->mcast_oif); in __ip6_datagram_connect() 233 if (!sk->sk_bound_dev_if) { in __ip6_datagram_connect() 806 (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() 251 sk->sk_bound_dev_if = addr->sin6_scope_id; in rawv6_bind() 255 if (!sk->sk_bound_dev_if) in rawv6_bind() 259 if (sk->sk_bound_dev_if) { in rawv6_bind() 262 sk->sk_bound_dev_if); in rawv6_bind() 835 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 | 705 fl6.flowi6_oif = sk->sk_bound_dev_if; in do_ipv6_setsockopt() 798 if (sk->sk_bound_dev_if) in do_ipv6_setsockopt() 828 if (sk->sk_bound_dev_if && in do_ipv6_setsockopt() 829 sk->sk_bound_dev_if != val && in do_ipv6_setsockopt() 830 (!midx || midx != sk->sk_bound_dev_if)) in do_ipv6_setsockopt()
|
D | tcp_ipv6.c | 208 sk->sk_bound_dev_if = usin->sin6_scope_id; in tcp_v6_connect() 212 if (!sk->sk_bound_dev_if) in tcp_v6_connect() 275 fl6.flowi6_oif = sk->sk_bound_dev_if; in tcp_v6_connect() 601 addr_sk->sk_bound_dev_if); in tcp_v6_md5_lookup() 795 if ((!sk_listener->sk_bound_dev_if || l3_slave) && in tcp_v6_init_req() 1059 oif = sk->sk_bound_dev_if; in tcp_v6_send_reset() 1132 req->ts_recent, sk->sk_bound_dev_if, in tcp_v6_reqsk_send_ack() 1306 newsk->sk_bound_dev_if = ireq->ir_iif; in tcp_v6_syn_recv_sock()
|
/linux-6.1.9/net/l2tp/ |
D | l2tp_ip6.c | 70 bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in __l2tp_ip6_bind_lookup() 299 bound_dev_if = sk->sk_bound_dev_if; in l2tp_ip6_bind() 342 sk->sk_bound_dev_if = bound_dev_if; in l2tp_ip6_bind() 450 lsa->l2tp_scope_id = READ_ONCE(sk->sk_bound_dev_if); in l2tp_ip6_getname() 566 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.1.9/net/dccp/ |
D | ipv6.c | 377 ireq->ir_iif = READ_ONCE(sk->sk_bound_dev_if); in dccp_v6_conn_request() 504 newsk->sk_bound_dev_if = ireq->ir_iif; in dccp_v6_request_recv_sock() 871 if (sk->sk_bound_dev_if && in dccp_v6_connect() 872 sk->sk_bound_dev_if != usin->sin6_scope_id) in dccp_v6_connect() 875 sk->sk_bound_dev_if = usin->sin6_scope_id; in dccp_v6_connect() 879 if (!sk->sk_bound_dev_if) in dccp_v6_connect() 922 fl6.flowi6_oif = sk->sk_bound_dev_if; in dccp_v6_connect()
|
/linux-6.1.9/include/net/ |
D | inet_sock.h | 120 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); in inet_request_bound_dev_if() 138 sk->sk_bound_dev_if); in inet_sk_bound_l3mdev()
|
D | inet6_hashtables.h | 121 return inet_sk_bound_dev_eq(net, READ_ONCE(sk->sk_bound_dev_if), dif, in inet6_match()
|
/linux-6.1.9/net/mptcp/ |
D | sockopt.c | 316 sk->sk_bound_dev_if = ssock->sk->sk_bound_dev_if; in mptcp_setsockopt_sol_socket() 318 sk->sk_bound_dev_if = ssock->sk->sk_bound_dev_if; in mptcp_setsockopt_sol_socket() 1259 ssk->sk_bound_dev_if = sk->sk_bound_dev_if; in sync_socket_options()
|
/linux-6.1.9/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.1.9/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 1363 if (sk->sk_bound_dev_if && dev->ifindex != sk->sk_bound_dev_if) in set_mcast_if() 1397 if (sk->sk_bound_dev_if && dev->ifindex != sk->sk_bound_dev_if) in join_mcast_group() 1415 if (sk->sk_bound_dev_if && dev->ifindex != sk->sk_bound_dev_if) in join_mcast_group6() 1550 sock->sk->sk_bound_dev_if = dev->ifindex; in make_receive_sock()
|
/linux-6.1.9/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()
|