Home
last modified time | relevance | path

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

/linux-4.4.14/net/netfilter/
Dxt_TEE.c25 int oif; member
34 int oif = info->priv ? info->priv->oif : 0; in tee_tg4() local
36 nf_dup_ipv4(par->net, skb, par->hooknum, &info->gw.in, oif); in tee_tg4()
46 int oif = info->priv ? info->priv->oif : 0; in tee_tg6() local
48 nf_dup_ipv6(par->net, skb, par->hooknum, &info->gw.in6, oif); in tee_tg6()
63 if (!strcmp(dev->name, priv->tginfo->oif)) in tee_netdev_event()
64 priv->oif = dev->ifindex; in tee_netdev_event()
67 if (dev->ifindex == priv->oif) in tee_netdev_event()
68 priv->oif = -1; in tee_netdev_event()
71 if (!strcmp(dev->name, priv->tginfo->oif)) in tee_netdev_event()
[all …]
/linux-4.4.14/include/trace/events/
Dfib.h20 __field( int, oif )
33 __entry->oif = flp->flowi4_oif;
47 __entry->tb_id, __entry->oif, __entry->iif,
60 __field( int, oif )
68 __entry->oif = nh->nh_oif;
73 __get_str(name), __entry->oif, __entry->src)
84 __field( int, oif )
95 __entry->oif = flp->flowi4_oif;
107 __get_str(name), __entry->oif, __entry->iif, __entry->tos,
/linux-4.4.14/include/net/
Droute.h137 __be32 saddr, u8 tos, int oif) in ip_route_output() argument
140 .flowi4_oif = oif, in ip_route_output()
152 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() argument
154 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos, in ip_route_output_ports()
165 __be32 gre_key, __u8 tos, int oif) in ip_route_output_gre() argument
168 fl4->flowi4_oif = oif; in ip_route_output_gre()
194 void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, int oif,
197 void ipv4_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark,
260 u32 tos, int oif, u8 protocol, in ip_route_connect_init() argument
269 flowi4_init_output(fl4, oif, sk->sk_mark, tos, RT_SCOPE_UNIVERSE, in ip_route_connect_init()
[all …]
Dip6_route.h94 const struct in6_addr *saddr, int oif, int flags);
118 void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu, int oif,
121 void ip6_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark);
122 void ip6_redirect_no_header(struct sk_buff *skb, struct net *net, int oif,
Dl3mdev.h65 int oif; in l3mdev_fib_oif() local
68 oif = l3mdev_fib_oif_rcu(dev); in l3mdev_fib_oif()
71 return oif; in l3mdev_fib_oif()
Dflow.h93 static inline void flowi4_init_output(struct flowi4 *fl4, int oif, in flowi4_init_output() argument
99 fl4->flowi4_oif = oif; in flowi4_init_output()
115 static inline void flowi4_update_output(struct flowi4 *fl4, int oif, __u8 tos, in flowi4_update_output() argument
118 fl4->flowi4_oif = oif; in flowi4_update_output()
Dip_fib.h302 u8 tos, int oif, struct net_device *dev,
Dip.h60 int oif; member
Dxfrm.h289 int tos, int oif,
292 int (*get_saddr)(struct net *net, int oif,
/linux-4.4.14/net/ipv6/netfilter/
Dnf_dup_ipv6.c23 const struct in6_addr *gw, int oif) in nf_dup_ipv6_route() argument
30 if (oif != -1) in nf_dup_ipv6_route()
31 fl6.flowi6_oif = oif; in nf_dup_ipv6_route()
50 const struct in6_addr *gw, int oif) in nf_dup_ipv6() argument
69 if (nf_dup_ipv6_route(net, skb, gw, oif)) { in nf_dup_ipv6()
Dnft_dup_ipv6.c29 int oif = regs->data[priv->sreg_dev]; in nft_dup_ipv6_eval() local
31 nf_dup_ipv6(pkt->net, pkt->skb, pkt->hook, gw, oif); in nft_dup_ipv6_eval()
/linux-4.4.14/net/ipv4/netfilter/
Dnf_dup_ipv4.c27 const struct in_addr *gw, int oif) in nf_dup_ipv4_route() argument
34 if (oif != -1) in nf_dup_ipv4_route()
35 fl4.flowi4_oif = oif; in nf_dup_ipv4_route()
54 const struct in_addr *gw, int oif) in nf_dup_ipv4() argument
93 if (nf_dup_ipv4_route(net, skb, gw, oif)) { in nf_dup_ipv4()
Dnft_dup_ipv4.c31 int oif = regs->data[priv->sreg_dev]; in nft_dup_ipv4_eval() local
33 nf_dup_ipv4(pkt->net, pkt->skb, pkt->hook, &gw, oif); in nft_dup_ipv4_eval()
/linux-4.4.14/net/ipv4/
Ddatagram.c30 int oif; in __ip4_datagram_connect() local
42 oif = sk->sk_bound_dev_if; in __ip4_datagram_connect()
45 if (!oif) in __ip4_datagram_connect()
46 oif = inet->mc_index; in __ip4_datagram_connect()
52 RT_CONN_FLAGS(sk), oif, in __ip4_datagram_connect()
Dxfrm4_policy.c23 int tos, int oif, in __xfrm4_dst_lookup() argument
32 fl4->flowi4_oif = oif; in __xfrm4_dst_lookup()
45 static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, int oif, in xfrm4_dst_lookup() argument
51 return __xfrm4_dst_lookup(net, &fl4, tos, oif, saddr, daddr); in xfrm4_dst_lookup()
54 static int xfrm4_get_saddr(struct net *net, int oif, in xfrm4_get_saddr() argument
60 dst = __xfrm4_dst_lookup(net, &fl4, 0, oif, NULL, daddr); in xfrm4_get_saddr()
112 int oif = 0; in _decode_session4() local
115 oif = l3mdev_fib_oif(skb_dst(skb)->dev); in _decode_session4()
119 fl4->flowi4_oif = reverse ? skb->skb_iif : oif; in _decode_session4()
Draw.c546 ipc.oif = sk->sk_bound_dev_if; in raw_sendmsg()
592 if (!ipc.oif) in raw_sendmsg()
593 ipc.oif = inet->mc_index; in raw_sendmsg()
596 } else if (!ipc.oif) in raw_sendmsg()
597 ipc.oif = inet->uc_index; in raw_sendmsg()
599 flowi4_init_output(&fl4, ipc.oif, sk->sk_mark, tos, in raw_sendmsg()
606 if (!saddr && ipc.oif) { in raw_sendmsg()
607 err = l3mdev_get_saddr(net, ipc.oif, &fl4); in raw_sendmsg()
Dping.c740 ipc.oif = sk->sk_bound_dev_if; in ping_v4_sendmsg()
785 if (!ipc.oif) in ping_v4_sendmsg()
786 ipc.oif = inet->mc_index; in ping_v4_sendmsg()
789 } else if (!ipc.oif) in ping_v4_sendmsg()
790 ipc.oif = inet->uc_index; in ping_v4_sendmsg()
792 flowi4_init_output(&fl4, ipc.oif, sk->sk_mark, tos, in ping_v4_sendmsg()
Dfib_frontend.c323 u8 tos, int oif, struct net_device *dev, in __fib_validate_source() argument
335 fl4.flowi4_iif = oif ? : LOOPBACK_IFINDEX; in __fib_validate_source()
356 (dev->ifindex != oif || !IN_DEV_TX_REDIRECTS(idev))) in __fib_validate_source()
408 u8 tos, int oif, struct net_device *dev, in fib_validate_source() argument
415 (dev->ifindex != oif || !IN_DEV_TX_REDIRECTS(idev))) { in fib_validate_source()
419 return __fib_validate_source(skb, src, dst, tos, oif, dev, r, idev, itag); in fib_validate_source()
Droute.c506 int oif, u8 tos, in __build_flow_key() argument
512 oif = sk->sk_bound_dev_if; in __build_flow_key()
517 flowi4_init_output(fl4, oif, mark, tos, in __build_flow_key()
527 int oif = skb->dev->ifindex; in build_skb_flow_key() local
532 __build_flow_key(fl4, sk, iph, oif, tos, prot, mark, 0); in build_skb_flow_key()
790 int oif = skb->dev->ifindex; in ip_do_redirect() local
797 __build_flow_key(&fl4, sk, iph, oif, tos, prot, mark, 0); in ip_do_redirect()
1006 int oif, u32 mark, u8 protocol, int flow_flags) in ipv4_update_pmtu() argument
1015 __build_flow_key(&fl4, NULL, iph, oif, in ipv4_update_pmtu()
1097 int oif, u32 mark, u8 protocol, int flow_flags) in ipv4_redirect() argument
[all …]
Dudp.c962 ipc.oif = sk->sk_bound_dev_if; in udp_sendmsg()
1008 if (!ipc.oif) in udp_sendmsg()
1009 ipc.oif = inet->mc_index; in udp_sendmsg()
1013 } else if (!ipc.oif) in udp_sendmsg()
1014 ipc.oif = inet->uc_index; in udp_sendmsg()
1025 flowi4_init_output(fl4, ipc.oif, sk->sk_mark, tos, in udp_sendmsg()
1030 if (!saddr && ipc.oif) { in udp_sendmsg()
1031 err = l3mdev_get_saddr(net, ipc.oif, fl4); in udp_sendmsg()
Dip_output.c1552 int oif; in ip_send_unicast_reply() local
1570 oif = arg->bound_dev_if; in ip_send_unicast_reply()
1571 if (!oif && netif_index_is_l3_master(net, skb->skb_iif)) in ip_send_unicast_reply()
1572 oif = skb->skb_iif; in ip_send_unicast_reply()
1574 flowi4_init_output(&fl4, oif, in ip_send_unicast_reply()
Dfib_semantics.c598 int oif, const struct fib_nh *nh, in fib_encap_match() argument
608 if (oif) in fib_encap_match()
609 dev = __dev_get_by_index(net, oif); in fib_encap_match()
Dip_tunnel.c351 __be32 key, __u8 tos, int oif) in init_tunnel_flow() argument
354 fl4->flowi4_oif = oif; in init_tunnel_flow()
Dip_sockglue.c242 ipc->oif = src_info->ipi6_ifindex; in ip_cmsg_send()
265 ipc->oif = info->ipi_ifindex; in ip_cmsg_send()
Dtcp_ipv4.c713 u32 win, u32 tsval, u32 tsecr, int oif, in tcp_v4_send_ack() argument
772 if (oif) in tcp_v4_send_ack()
773 arg.bound_dev_if = oif; in tcp_v4_send_ack()
/linux-4.4.14/net/ipv6/
Dxfrm6_policy.c30 static struct dst_entry *xfrm6_dst_lookup(struct net *net, int tos, int oif, in xfrm6_dst_lookup() argument
39 fl6.flowi6_oif = oif; in xfrm6_dst_lookup()
56 static int xfrm6_get_saddr(struct net *net, int oif, in xfrm6_get_saddr() argument
62 dst = xfrm6_dst_lookup(net, 0, oif, NULL, daddr); in xfrm6_get_saddr()
128 int oif = 0; in _decode_session6() local
137 oif = l3mdev_fib_oif(skb_dst(skb)->dev); in _decode_session6()
141 fl6->flowi6_oif = reverse ? skb->skb_iif : oif; in _decode_session6()
Droute.c99 static int rt6_score_route(struct rt6_info *rt, int oif, int strict);
437 struct flowi6 *fl6, int oif, in rt6_multipath_select() argument
452 if (rt6_score_route(sibling, oif, strict) < 0) in rt6_multipath_select()
468 int oif, in rt6_device_match() argument
474 if (!oif && ipv6_addr_any(saddr)) in rt6_device_match()
480 if (oif) { in rt6_device_match()
481 if (dev->ifindex == oif) in rt6_device_match()
485 sprt->rt6i_idev->dev->ifindex != oif) { in rt6_device_match()
489 local->rt6i_idev->dev->ifindex == oif) in rt6_device_match()
501 if (oif) { in rt6_device_match()
[all …]
Dtcp_ipv6.c738 int oif, struct tcp_md5sig_key *key, int rst, in tcp_v6_send_response() argument
809 if (rt6_need_strict(&fl6.daddr) && !oif) in tcp_v6_send_response()
812 fl6.flowi6_oif = oif; in tcp_v6_send_response()
847 int oif; in tcp_v6_send_reset() local
894 oif = sk ? sk->sk_bound_dev_if : 0; in tcp_v6_send_reset()
895 tcp_v6_send_response(sk, skb, seq, ack_seq, 0, 0, 0, oif, key, 1, 0, 0); in tcp_v6_send_reset()
907 u32 ack, u32 win, u32 tsval, u32 tsecr, int oif, in tcp_v6_send_ack() argument
911 tcp_v6_send_response(sk, skb, seq, ack, win, tsval, tsecr, oif, key, 0, in tcp_v6_send_ack()
Dndisc.c446 int oif = l3mdev_fib_oif(skb->dev); in ndisc_send_skb() local
448 icmpv6_flow_init(sk, &fl6, type, saddr, daddr, oif); in ndisc_send_skb()
449 if (oif != skb->dev->ifindex) in ndisc_send_skb()
1499 int oif = l3mdev_fib_oif(dev); in ndisc_send_redirect() local
1516 &saddr_buf, &ipv6_hdr(skb)->saddr, oif); in ndisc_send_redirect()
1518 if (oif != skb->dev->ifindex) in ndisc_send_redirect()
Dicmp.c825 int oif) in icmpv6_flow_init() argument
833 fl6->flowi6_oif = oif; in icmpv6_flow_init()
/linux-4.4.14/Documentation/networking/
Dvrf.txt63 iif or oif is the VRF device. e.g.,
64 ip ru add oif vrf-blue table 10
109 $ ip ru add oif NAME table 10
111 $ ip -6 ru add oif NAME table 10
118 $ ip ru add pref 200 oif vrf-blue table 10
120 $ ip -6 ru add pref 200 oif vrf-blue table 10
278 A test route lookup can be done for a VRF by adding the oif option to ip:
279 $ ip [-6] route get oif VRF-NAME ADDRESS
282 $ ip route get 10.2.1.40 oif vrf-red
286 $ ip -6 route get 2002:1::32 oif vrf-red
[all …]
/linux-4.4.14/include/uapi/linux/netfilter/
Dxt_TEE.h6 char oif[16]; member
/linux-4.4.14/include/net/netfilter/ipv6/
Dnf_dup_ipv6.h5 const struct in6_addr *gw, int oif);
/linux-4.4.14/include/net/netfilter/ipv4/
Dnf_dup_ipv4.h5 const struct in_addr *gw, int oif);
/linux-4.4.14/fs/ocfs2/
Dioctl.c242 struct ocfs2_info_fs_features oif; in ocfs2_info_handle_fs_features() local
245 if (o2info_from_user(oif, req)) in ocfs2_info_handle_fs_features()
248 oif.if_compat_features = osb->s_feature_compat; in ocfs2_info_handle_fs_features()
249 oif.if_incompat_features = osb->s_feature_incompat; in ocfs2_info_handle_fs_features()
250 oif.if_ro_compat_features = osb->s_feature_ro_compat; in ocfs2_info_handle_fs_features()
252 o2info_set_request_filled(&oif.if_req); in ocfs2_info_handle_fs_features()
254 if (o2info_to_user(oif, req)) in ocfs2_info_handle_fs_features()
/linux-4.4.14/include/linux/
Dicmpv6.h44 int oif);
/linux-4.4.14/net/mpls/
Daf_mpls.c499 struct mpls_nh *nh, int oif) in find_outdev() argument
503 if (!oif) { in find_outdev()
515 dev = dev_get_by_index(net, oif); in find_outdev()
531 struct mpls_nh *nh, int oif) in mpls_nh_assign_dev() argument
536 dev = find_outdev(net, rt, nh, oif); in mpls_nh_assign_dev()
595 struct mpls_nh *nh, int oif, in mpls_nh_build() argument
619 err = mpls_nh_assign_dev(net, rt, nh, oif); in mpls_nh_build()
/linux-4.4.14/net/decnet/
Ddn_fib.c572 u32 oif; in fib_magic() member
574 .oif = ifa->ifa_dev->dev->ifindex, in fib_magic()
/linux-4.4.14/net/xfrm/
Dxfrm_policy.c119 int tos, int oif, in __xfrm_dst_lookup() argument
131 dst = afinfo->dst_lookup(net, tos, oif, saddr, daddr); in __xfrm_dst_lookup()
139 int tos, int oif, in xfrm_dst_lookup() argument
158 dst = __xfrm_dst_lookup(net, tos, oif, saddr, daddr, family); in xfrm_dst_lookup()
1398 xfrm_get_saddr(struct net *net, int oif, xfrm_address_t *local, in xfrm_get_saddr() argument
1406 err = afinfo->get_saddr(net, oif, local, remote); in xfrm_get_saddr()
/linux-4.4.14/drivers/net/
Dvxlan.c1847 struct sk_buff *skb, int oif, in vxlan6_get_route() argument
1856 fl6.flowi6_oif = oif; in vxlan6_get_route()