Home
last modified time | relevance | path

Searched refs:oif (Results 1 – 25 of 54) sorted by relevance

123

/linux/net/netfilter/
H A Dxt_TEE.c24 int oif; member
40 int oif = info->priv ? info->priv->oif : 0; in tee_tg4() local
42 nf_dup_ipv4(xt_net(par), skb, xt_hooknum(par), &info->gw.in, oif); in tee_tg4()
52 int oif = info->priv ? info->priv->oif : 0; in tee_tg6() local
54 nf_dup_ipv6(xt_net(par), skb, xt_hooknum(par), &info->gw.in6, oif); in tee_tg6()
72 if (!strcmp(dev->name, priv->tginfo->oif)) in tee_netdev_event()
73 priv->oif = dev->ifindex; in tee_netdev_event()
76 if (dev->ifindex == priv->oif) in tee_netdev_event()
77 priv->oif = -1; in tee_netdev_event()
80 if (!strcmp(dev->name, priv->tginfo->oif)) in tee_netdev_event()
[all …]
/linux/net/ipv4/
H A Ddatagram.c26 int oif; in __ip4_datagram_connect() local
38 oif = sk->sk_bound_dev_if; in __ip4_datagram_connect()
41 if (!oif || netif_index_is_l3_master(sock_net(sk), oif)) in __ip4_datagram_connect()
42 oif = READ_ONCE(inet->mc_index); in __ip4_datagram_connect()
45 } else if (!oif) { in __ip4_datagram_connect()
46 oif = READ_ONCE(inet->uc_index); in __ip4_datagram_connect()
49 rt = ip_route_connect(fl4, usin->sin_addr.s_addr, saddr, oif, in __ip4_datagram_connect()
H A Draw.c596 if (!ipc.oif || netif_index_is_l3_master(sock_net(sk), ipc.oif)) in raw_sendmsg()
597 ipc.oif = READ_ONCE(inet->mc_index); in raw_sendmsg()
600 } else if (!ipc.oif) { in raw_sendmsg()
601 ipc.oif = uc_index; in raw_sendmsg()
609 if (ipc.oif != uc_index && in raw_sendmsg()
610 ipc.oif == l3mdev_master_ifindex_by_index(sock_net(sk), in raw_sendmsg()
612 ipc.oif = uc_index; in raw_sendmsg()
616 flowi4_init_output(&fl4, ipc.oif, ipc.sockc.mark, in raw_sendmsg()
H A Dudp_tunnel_core.c227 struct net *net, int oif, in udp_tunnel_dst_lookup() argument
247 fl4.flowi4_oif = oif; in udp_tunnel_dst_lookup()
/linux/net/ipv6/netfilter/
H A Dnf_dup_ipv6.c20 const struct in6_addr *gw, int oif) in nf_dup_ipv6_route() argument
27 if (oif != -1) in nf_dup_ipv6_route()
28 fl6.flowi6_oif = oif; in nf_dup_ipv6_route()
48 const struct in6_addr *gw, int oif) in nf_dup_ipv6() argument
66 if (nf_dup_ipv6_route(net, skb, gw, oif)) { in nf_dup_ipv6()
/linux/sound/soc/uniphier/
H A Daio-pxs2.c49 .oif = { 0, 0, },
63 .oif = { 1, 1, },
77 .oif = { 2, 2, },
90 .oif = { 6, 4, },
103 .oif = { 6, 4, },
116 .oif = { 7, 5, },
129 .oif = { 7, 5, },
H A Daio-ld11.c75 .oif = { 0, 0, },
89 .oif = { 0, 0, },
103 .oif = { 2, 2, },
116 .oif = { 3, 3, },
129 .oif = { 7, 5, },
144 .oif = { 8, 6, },
160 .oif = { 1, 1, },
174 .oif = { 1, 1, },
/linux/fs/btrfs/
H A Daccessors.c57 const unsigned long oif = get_eb_offset_in_folio(eb, \
59 char *kaddr = folio_address(eb->folios[idx]) + oif; \
60 const int part = eb->folio_size - oif; \
87 const unsigned long oif = get_eb_offset_in_folio(eb, \
89 char *kaddr = folio_address(eb->folios[idx]) + oif; \
90 const int part = eb->folio_size - oif; \
/linux/include/net/
H A Droute.h188 int oif, __u8 scope) in ip_route_output() argument
191 .flowi4_oif = oif, in ip_route_output()
205 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() argument
207 flowi4_init_output(fl4, oif, sk ? READ_ONCE(sk->sk_mark) : 0, tos, in ip_route_output_ports()
246 void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, int oif,
249 void ipv4_redirect(struct sk_buff *skb, struct net *net, int oif, u8 protocol);
322 __be32 src, int oif, u8 protocol, in ip_route_connect_init() argument
334 flowi4_init_output(fl4, oif, READ_ONCE(sk->sk_mark), ip_sock_rt_tos(sk), in ip_route_connect_init()
340 __be32 src, int oif, u8 protocol, in ip_route_connect() argument
347 ip_route_connect_init(fl4, dst, src, oif, protocol, sport, dport, sk); in ip_route_connect()
[all …]
H A Dip6_route.h172 const struct in6_addr *saddr, int oif,
206 void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu, int oif,
209 void ip6_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark,
211 void ip6_redirect_no_header(struct sk_buff *skb, struct net *net, int oif);
H A Dip_tunnels.h361 struct net *net, int oif, in ip_tunnel_init_flow() argument
367 if (oif) { in ip_tunnel_init_flow()
368 fl4->flowi4_l3mdev = l3mdev_master_upper_ifindex_by_index(net, oif); in ip_tunnel_init_flow()
370 fl4->flowi4_oif = fl4->flowi4_l3mdev ? 0 : oif; in ip_tunnel_init_flow()
/linux/tools/testing/selftests/net/netfilter/
H A Dnft_fib.sh46 fib saddr . iif oif missing counter log prefix "$netns nft_rpfilter: " drop
59 fib saddr . iif oif missing counter log prefix "$netns nft_rpfilter: " drop
72 fib saddr . iif oif gt 0 accept
94 fib daddr . oif type unicast counter
96 fib daddr . oif type local counter
169 ip daddr 1.1.1.1 fib saddr . iif oif missing counter drop
170 ip6 daddr 1c3::c01d fib saddr . iif oif missing counter drop
347 typeof meta iif . ip daddr . fib daddr oif
353 typeof meta iif . ip daddr . fib daddr . iif oif
359 typeof meta iif . ip6 daddr . fib daddr oif
[all …]
H A Dconntrack_vrf.sh4 # The vrf driver calls the netfilter hooks again, with oif/iif
102 oif veth0 counter ct zone set 1 counter return
103 oif tvrf counter ct zone set 2 counter return
146 oif tvrf ct state untracked counter
151 oif tvrf ct state untracked counter
155 # NB: masquerade should always be combined with 'oif(name) bla',
192 meta oif veth0 ip saddr 172.30.30.0/30 counter masquerade random
H A Dnft_fib_nexthop.sh77 iif "veth0" ip6 daddr dead:dead::/64 fib daddr . iif oif eq "veth0" counter name nf_ok
78 iif "veth0" ip6 daddr dead:dead::/64 fib daddr . iif oif missing counter name nf_bad
H A Drpath.sh90 fib saddr . iif oif exists counter
92 fib saddr . iif oif exists counter
/linux/net/ipv6/
H A Dfib6_rules.c68 int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, in fib6_lookup() argument
76 .lookup_data = &oif, in fib6_lookup()
86 err = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, oif, in fib6_lookup()
90 oif, fl6, res, flags); in fib6_lookup()
172 int err, *oif; in fib6_rule_action_alt() local
192 oif = (int *)arg->lookup_data; in fib6_rule_action_alt()
193 err = fib6_table_lookup(net, table, *oif, flp6, res, flags); in fib6_rule_action_alt()
H A Droute.c107 static int rt6_score_route(const struct fib6_nh *nh, u32 fib6_flags, int oif,
439 struct flowi6 *fl6, int oif, bool have_oif_match, in fib6_select_path() argument
473 if (rt6_score_route(first->fib6_nh, first->fib6_flags, oif, in fib6_select_path()
490 if (rt6_score_route(nh, sibling->fib6_flags, oif, strict) < 0) in fib6_select_path()
506 const struct in6_addr *saddr, int oif, int flags) in __rt6_device_match() argument
514 if (oif) { in __rt6_device_match()
515 if (dev->ifindex == oif) in __rt6_device_match()
529 int oif; member
539 return __rt6_device_match(arg->net, nh, arg->saddr, arg->oif, in __rt6_nh_dev_match()
547 int oif, int flags) in rt6_nh_dev_match() argument
[all …]
H A Dip6_udp_tunnel.c139 int oif, in udp_tunnel6_dst_lookup() argument
158 fl6.flowi6_oif = oif; in udp_tunnel6_dst_lookup()
H A Ddatagram.c46 int oif = sk->sk_bound_dev_if; in ip6_datagram_flow_key_init() local
58 if (!oif) in ip6_datagram_flow_key_init()
59 oif = np->sticky_pktinfo.ipi6_ifindex; in ip6_datagram_flow_key_init()
61 if (!oif) { in ip6_datagram_flow_key_init()
63 oif = READ_ONCE(np->mcast_oif); in ip6_datagram_flow_key_init()
65 oif = READ_ONCE(np->ucast_oif); in ip6_datagram_flow_key_init()
68 fl6->flowi6_oif = oif; in ip6_datagram_flow_key_init()
H A Dseg6_local.c194 int oif; member
273 u32 tbl_id, bool local_delivery, int oif) in seg6_lookup_any_nexthop() argument
285 fl6.flowi6_oif = oif; in seg6_lookup_any_nexthop()
295 if (!tbl_id && !oif) { in seg6_lookup_any_nexthop()
304 rt = ip6_pol_route(net, table, oif, &fl6, skb, flags); in seg6_lookup_any_nexthop()
424 seg6_lookup_any_nexthop(skb, &slwt->nh6, 0, false, slwt->oif); in input_action_end_x_finish()
872 odev = dev_get_by_index_rcu(net, slwt->oif); in input_action_end_dx2()
1871 slwt->oif = nla_get_u32(attrs[SEG6_LOCAL_OIF]); in parse_nla_oif()
1878 if (nla_put_u32(skb, SEG6_LOCAL_OIF, slwt->oif)) in put_nla_oif()
1886 if (a->oif != b->oif) in cmp_nla_oif()
/linux/tools/testing/selftests/net/forwarding/
H A Drouter_broadcast.sh167 local oif=$1
175 ip vrf exec $(master_name_get $oif) \
176 $PING -I $oif $dip -c 10 -i 0.1 -w $PING_TIMEOUT -b 2>&1 \
/linux/include/uapi/linux/netfilter/
H A Dxt_TEE.h9 char oif[16]; member
/linux/include/net/netfilter/ipv6/
H A Dnf_dup_ipv6.h8 const struct in6_addr *gw, int oif);
/linux/include/net/netfilter/ipv4/
H A Dnf_dup_ipv4.h9 const struct in_addr *gw, int oif);
/linux/net/core/
H A Dlwt_bpf.c185 int oif = l3mdev ? l3mdev->ifindex : 0; in bpf_lwt_xmit_reroute() local
202 oif = sk->sk_bound_dev_if; in bpf_lwt_xmit_reroute()
213 fl4.flowi4_oif = oif; in bpf_lwt_xmit_reroute()
232 fl6.flowi6_oif = oif; in bpf_lwt_xmit_reroute()

123