Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/net/ipv4/
Dping.c206 sk->sk_bound_dev_if); in ping_lookup()
218 sk->sk_bound_dev_if); in ping_lookup()
229 if (sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif && in ping_lookup()
230 sk->sk_bound_dev_if != sdif) in ping_lookup()
325 tb_id = l3mdev_fib_table_by_index(net, sk->sk_bound_dev_if) ? : tb_id; in ping_check_bind_addr()
366 if (!dev && sk->sk_bound_dev_if) { in ping_check_bind_addr()
367 dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if); in ping_check_bind_addr()
382 sk->sk_bound_dev_if = addr->sin6_scope_id; in ping_check_bind_addr()
415 int dif = sk->sk_bound_dev_if; in ping_bind()
431 sk->sk_bound_dev_if = dif; in ping_bind()
[all …]
Ddatagram.c39 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.c252 if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in compute_score()
254 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score()
456 int dif = sk->sk_bound_dev_if; in __inet_check_established()
529 const int sdif = sk->sk_bound_dev_if; in inet_ehash_lookup_by_sk()
530 const int dif = sk->sk_bound_dev_if; in inet_ehash_lookup_by_sk()
626 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.c145 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || in udp_lib_lport_inuse()
146 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_lib_lport_inuse()
182 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || in udp_lib_lport_inuse2()
183 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_lib_lport_inuse2()
211 (sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_reuseport_add_sock()
389 dev_match = udp_sk_bound_dev_eq(net, sk->sk_bound_dev_if, in compute_score()
393 if (sk->sk_bound_dev_if) in compute_score()
587 !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()
/kernel/linux/common_modules/newip/third_party/linux-5.10/include/net/
Dninet_hashtables.h103 (!(__sk)->sk_bound_dev_if || \
104 ((__sk)->sk_bound_dev_if == (__dif))) && \
/kernel/linux/linux-5.10/net/ipv6/
Dnetfilter.c33 .flowi6_oif = sk && sk->sk_bound_dev_if ? sk->sk_bound_dev_if : in ip6_route_me_harder()
100 .sk.sk_bound_dev_if = 1, in __nf_ip6_route()
Dping.c91 oif = sk->sk_bound_dev_if; in ping_v6_sendmsg()
104 (oif && sk->sk_bound_dev_if && oif != sk->sk_bound_dev_if)) in ping_v6_sendmsg()
Daf_inet6.c325 if (sk->sk_bound_dev_if) { in __inet6_bind()
326 dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if); in __inet6_bind()
357 sk->sk_bound_dev_if = addr->sin6_scope_id; in __inet6_bind()
361 if (!sk->sk_bound_dev_if) { in __inet6_bind()
367 if (sk->sk_bound_dev_if) { in __inet6_bind()
368 dev = dev_get_by_index_rcu(net, sk->sk_bound_dev_if); in __inet6_bind()
545 sk->sk_bound_dev_if); in inet6_getname()
827 fl6.flowi6_oif = sk->sk_bound_dev_if; in inet6_sk_rebuild_header()
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()
Dinet6_hashtables.c106 if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in compute_score()
109 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score()
254 const int dif = sk->sk_bound_dev_if; in __inet6_check_established()
Ddatagram.c50 fl6->flowi6_oif = sk->sk_bound_dev_if; in ip6_datagram_flow_key_init()
221 sk->sk_bound_dev_if = usin->sin6_scope_id; in __ip6_datagram_connect()
224 if (!sk->sk_bound_dev_if && (addr_type & IPV6_ADDR_MULTICAST)) in __ip6_datagram_connect()
225 sk->sk_bound_dev_if = np->mcast_oif; in __ip6_datagram_connect()
228 if (!sk->sk_bound_dev_if) { in __ip6_datagram_connect()
801 (sk->sk_bound_dev_if != fl6->flowi6_oif || in ip6_datagram_send_ctl()
Draw.c85 if (!raw_sk_bound_dev_eq(net, sk->sk_bound_dev_if, in __raw_v6_lookup()
280 sk->sk_bound_dev_if = addr->sin6_scope_id; in rawv6_bind()
284 if (!sk->sk_bound_dev_if) in rawv6_bind()
288 if (sk->sk_bound_dev_if) { in rawv6_bind()
291 sk->sk_bound_dev_if); in rawv6_bind()
869 fl6.flowi6_oif = sk->sk_bound_dev_if; in rawv6_sendmsg()
Dxfrm6_output.c31 fl6.flowi6_oif = sk->sk_bound_dev_if; in xfrm6_local_rxpmtu()
Dipv6_sockglue.c700 fl6.flowi6_oif = sk->sk_bound_dev_if; in do_ipv6_setsockopt()
793 if (sk->sk_bound_dev_if) in do_ipv6_setsockopt()
823 if (sk->sk_bound_dev_if && in do_ipv6_setsockopt()
824 sk->sk_bound_dev_if != val && in do_ipv6_setsockopt()
825 (!midx || midx != sk->sk_bound_dev_if)) in do_ipv6_setsockopt()
/kernel/linux/linux-5.10/net/l2tp/
Dl2tp_ip6.c69 if (sk->sk_bound_dev_if && dif && sk->sk_bound_dev_if != dif) in __l2tp_ip6_bind_lookup()
297 bound_dev_if = sk->sk_bound_dev_if; in l2tp_ip6_bind()
340 sk->sk_bound_dev_if = bound_dev_if; in l2tp_ip6_bind()
448 lsa->l2tp_scope_id = sk->sk_bound_dev_if; in l2tp_ip6_getname()
564 fl6.flowi6_oif = sk->sk_bound_dev_if; in l2tp_ip6_sendmsg()
Dl2tp_ip.c57 if (sk->sk_bound_dev_if && dif && sk->sk_bound_dev_if != dif) in __l2tp_ip_bind_lookup()
283 sk->sk_bound_dev_if, addr->l2tp_conn_id)) { in l2tp_ip_bind()
480 sk->sk_bound_dev_if); in l2tp_ip_sendmsg()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dudp.c185 if (sk->sk_bound_dev_if) { in nip_udp_compute_score()
186 bool dev_match = dif == sk->sk_bound_dev_if || sdif == sk->sk_bound_dev_if; in nip_udp_compute_score()
451 fln.FLOWIN_OIF = sk->sk_bound_dev_if; in nip_udp_output()
Dninet_hashtables.c361 if (!inet_sk_bound_dev_eq(net, sk->sk_bound_dev_if, dif, sdif)) in nip_tcp_compute_score()
470 saddr, daddr, ports, sk->sk_bound_dev_if))) { in __ninet_check_established()
/kernel/linux/linux-5.10/net/dccp/
Dipv6.c367 ireq->ir_iif = sk->sk_bound_dev_if; in dccp_v6_conn_request()
370 if (!sk->sk_bound_dev_if && in dccp_v6_conn_request()
494 newsk->sk_bound_dev_if = ireq->ir_iif; in dccp_v6_request_recv_sock()
861 if (sk->sk_bound_dev_if && in dccp_v6_connect()
862 sk->sk_bound_dev_if != usin->sin6_scope_id) in dccp_v6_connect()
865 sk->sk_bound_dev_if = usin->sin6_scope_id; in dccp_v6_connect()
869 if (!sk->sk_bound_dev_if) in dccp_v6_connect()
912 fl6.flowi6_oif = sk->sk_bound_dev_if; in dccp_v6_connect()
/kernel/linux/linux-5.10/include/net/
Dinet_sock.h120 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()
Dinet6_hashtables.h121 return inet_sk_bound_dev_eq(net, READ_ONCE(sk->sk_bound_dev_if), dif, in inet6_match()
/kernel/linux/linux-5.10/net/ieee802154/
Dsocket.c221 sk->sk_bound_dev_if = dev->ifindex; in raw_bind()
256 if (!sk->sk_bound_dev_if) in raw_sendmsg()
259 dev = dev_get_by_index(sock_net(sk), sk->sk_bound_dev_if); in raw_sendmsg()
370 if (!sk->sk_bound_dev_if || in ieee802154_raw_deliver()
371 sk->sk_bound_dev_if == dev->ifindex) { in ieee802154_raw_deliver()
/kernel/linux/linux-5.10/net/netfilter/ipvs/
Dip_vs_sync.c1363 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()

123