Home
last modified time | relevance | path

Searched refs:oif (Results 1 – 25 of 58) 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 …]
H A Dnf_dup_netdev.c43 void nf_fwd_netdev_egress(const struct nft_pktinfo *pkt, int oif) in nf_fwd_netdev_egress() argument
47 dev = dev_get_by_index_rcu(nft_net(pkt), oif); in nf_fwd_netdev_egress()
57 void nf_dup_netdev_egress(const struct nft_pktinfo *pkt, int oif) in nf_dup_netdev_egress() argument
62 dev = dev_get_by_index_rcu(nft_net(pkt), oif); in nf_dup_netdev_egress()
74 enum flow_action_id id, int oif) in nft_fwd_dup_netdev_offload() argument
80 dev = dev_get_by_index(ctx->net, oif); in nft_fwd_dup_netdev_offload()
H A Dnft_dup_netdev.c25 int oif = regs->data[priv->sreg_dev]; in nft_dup_netdev_eval() local
27 nf_dup_netdev_egress(pkt, oif); in nft_dup_netdev_eval()
66 int oif = ctx->regs[priv->sreg_dev].data.data[0]; in nft_dup_netdev_offload() local
68 return nft_fwd_dup_netdev_offload(ctx, flow, FLOW_ACTION_MIRRED, oif); in nft_dup_netdev_offload()
H A Dnft_fwd_netdev.c29 int oif = regs->data[priv->sreg_dev]; in nft_fwd_netdev_eval() local
36 nf_fwd_netdev_egress(pkt, oif); in nft_fwd_netdev_eval()
78 int oif = ctx->regs[priv->sreg_dev].data.data[0]; in nft_fwd_netdev_offload() local
80 return nft_fwd_dup_netdev_offload(ctx, flow, FLOW_ACTION_REDIRECT, oif); in nft_fwd_netdev_offload()
100 int oif = regs->data[priv->sreg_dev]; in nft_fwd_neigh_eval() local
144 dev = dev_get_by_index_rcu(nft_net(pkt), oif); in nft_fwd_neigh_eval()
/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()
/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()
H A Dnft_fib_ipv6.c161 const struct net_device *oif = NULL; in nft_fib6_eval() local
174 oif = nft_in(pkt); in nft_fib6_eval()
176 oif = nft_out(pkt); in nft_fib6_eval()
184 lookup_flags = nft_fib6_flowi_init(&fl6, priv, pkt, oif, iph); in nft_fib6_eval()
205 if (oif && oif != rt->rt6i_idev->dev && in nft_fib6_eval()
206 l3mdev_master_ifindex_rcu(rt->rt6i_idev->dev) != oif->ifindex) in nft_fib6_eval()
H A Dnft_dup_ipv6.c26 int oif = priv->sreg_dev ? regs->data[priv->sreg_dev] : -1; in nft_dup_ipv6_eval() local
28 nf_dup_ipv6(nft_net(pkt), pkt->skb, nft_hook(pkt), gw, oif); in nft_dup_ipv6_eval()
/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/net/ipv4/netfilter/
H A Dnf_dup_ipv4.c25 const struct in_addr *gw, int oif) in nf_dup_ipv4_route() argument
32 if (oif != -1) in nf_dup_ipv4_route()
33 fl4.flowi4_oif = oif; in nf_dup_ipv4_route()
52 const struct in_addr *gw, int oif) in nf_dup_ipv4() argument
88 if (nf_dup_ipv4_route(net, skb, gw, oif)) { in nf_dup_ipv4()
H A Dnft_fib_ipv4.c71 const struct net_device *oif; in nft_fib4_eval() local
82 oif = nft_out(pkt); in nft_fib4_eval()
84 oif = nft_in(pkt); in nft_fib4_eval()
86 oif = NULL; in nft_fib4_eval()
139 if (!oif) { in nft_fib4_eval()
142 if (!fib_info_nh_uses_dev(res.fi, oif)) in nft_fib4_eval()
144 found = oif; in nft_fib4_eval()
H A Dnft_dup_ipv4.c28 int oif = priv->sreg_dev ? regs->data[priv->sreg_dev] : -1; in nft_dup_ipv4_eval() local
30 nf_dup_ipv4(nft_net(pkt), pkt->skb, nft_hook(pkt), &gw, oif); in nft_dup_ipv4_eval()
/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);
320 __be32 src, int oif, u8 protocol, in ip_route_connect_init() argument
329 flowi4_init_output(fl4, oif, READ_ONCE(sk->sk_mark), ip_sock_rt_tos(sk), in ip_route_connect_init()
335 __be32 src, int oif, u8 protocol, in ip_route_connect() argument
342 ip_route_connect_init(fl4, dst, src, oif, protocol, sport, dport, sk); in ip_route_connect()
[all …]
H A Dflow.h93 static inline void flowi4_init_output(struct flowi4 *fl4, int oif, in flowi4_init_output() argument
100 fl4->flowi4_oif = oif; in flowi4_init_output()
119 static inline void flowi4_update_output(struct flowi4 *fl4, int oif, in flowi4_update_output() argument
122 fl4->flowi4_oif = oif; in flowi4_update_output()
H A Dipv6_stubs.h35 int (*fib6_lookup)(struct net *net, int oif, struct flowi6 *fl6,
38 int oif, struct flowi6 *fl6,
41 struct flowi6 *fl6, int oif, bool oif_match,
H A Dip6_route.h155 const struct in6_addr *saddr, int oif,
189 void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu, int oif,
192 void ip6_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark,
194 void ip6_redirect_no_header(struct sk_buff *skb, struct net *net, int oif);
/linux/include/net/netfilter/
H A Dnf_dup_netdev.h7 void nf_dup_netdev_egress(const struct nft_pktinfo *pkt, int oif);
8 void nf_fwd_netdev_egress(const struct nft_pktinfo *pkt, int oif);
15 enum flow_action_id id, int oif);
/linux/tools/testing/selftests/net/netfilter/
H A Dconntrack_vrf.sh113 oif veth0 counter ct zone set 1 counter return
114 oif tvrf counter ct zone set 2 counter return
157 oif tvrf ct state untracked counter
162 oif tvrf ct state untracked counter
203 meta oif veth0 ip saddr 172.30.30.0/30 counter masquerade random
231 meta iifname veth0 ip daddr $DUMMYNET.2 fib daddr oif dummy0 counter name fibcount notrack
H A Dnft_fib.sh42 fib saddr . iif oif missing counter log prefix "$netns nft_rpfilter: " drop
55 fib saddr . iif oif gt 0 accept
69 ip daddr 1.1.1.1 fib saddr . iif oif missing counter drop
70 ip6 daddr 1c3::c01d fib saddr . iif oif missing counter drop
/linux/include/trace/events/
H A Dfib.h23 __field( int, oif )
45 __entry->oif = flp->flowi4_oif;
94 __entry->tb_id, __entry->oif, __entry->iif, __entry->proto,
/linux/net/ipv6/
H A Daddrconf_core.c152 int oif, struct flowi6 *fl6, in eafnosupport_fib6_table_lookup() argument
159 eafnosupport_fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, in eafnosupport_fib6_lookup() argument
167 struct flowi6 *fl6, int oif, bool have_oif_match, in eafnosupport_fib6_select_path() argument
H A Droute.c107 static int rt6_score_route(const struct fib6_nh *nh, u32 fib6_flags, int oif,
416 struct flowi6 *fl6, int oif, bool have_oif_match, in fib6_select_path() argument
454 if (rt6_score_route(nh, sibling->fib6_flags, oif, strict) < 0) in fib6_select_path()
470 const struct in6_addr *saddr, int oif, int flags) in __rt6_device_match() argument
478 if (oif) { in __rt6_device_match()
479 if (dev->ifindex == oif) in __rt6_device_match()
493 int oif; member
503 return __rt6_device_match(arg->net, nh, arg->saddr, arg->oif, in __rt6_nh_dev_match()
511 int oif, int flags) in rt6_nh_dev_match() argument
516 .oif = oif, in rt6_nh_dev_match()
[all …]
/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

123