Home
last modified time | relevance | path

Searched refs:sk_bound_dev_if (Results 1 – 25 of 70) sorted by relevance

123

/linux-6.6.21/net/ipv4/
Dping.c201 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 …]
Ddatagram.c38 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()
Dinet_hashtables.c330 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()
Dnetfilter.c47 fl4.flowi4_oif = sk ? sk->sk_bound_dev_if : 0; in ip_route_me_harder()
Dudp.c154 (!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()
Dip_input.c163 (!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/
Dping.c104 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()
Dnetfilter.c42 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()
Dinet6_connection_sock.c69 sk->sk_bound_dev_if); in inet6_csk_addr2sockaddr()
93 fl6->flowi6_oif = sk->sk_bound_dev_if; in inet6_csk_route_socket()
Daf_inet6.c329 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()
Dinet6_hashtables.c105 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()
Ddatagram.c46 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()
Draw.c75 !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()
Dxfrm6_output.c24 fl6.flowi6_oif = sk->sk_bound_dev_if; in xfrm6_local_rxpmtu()
Dipv6_sockglue.c693 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()
Dtcp_ipv6.c204 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/
Dl2tp_ip6.c67 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()
Dl2tp_ip.c58 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/
Dipv6.c378 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/
Dinet_sock.h121 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/
Dendpointola.c252 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/
Dsocket.c220 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/
Dsockopt.c318 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/
Dip_vs_sync.c1361 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/
Daf_phonet.c245 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()

123