Lines Matching full:tunnel
4 * virtual tunnel interface
50 struct ip_tunnel *tunnel; in vti_input() local
58 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, flags, in vti_input()
60 if (tunnel) { in vti_input()
64 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = tunnel; in vti_input()
67 skb->dev = tunnel->dev; in vti_input()
103 struct ip_tunnel *tunnel = XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4; in vti_rcv_cb() local
107 if (!tunnel) in vti_rcv_cb()
110 dev = tunnel->dev; in vti_rcv_cb()
134 skb->mark = be32_to_cpu(tunnel->parms.i_key); in vti_rcv_cb()
141 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(skb->dev))); in vti_rcv_cb()
153 /* if there is no transform then this tunnel is not functional. in vti_state_check()
154 * Or if the xfrm is not mode tunnel. in vti_state_check()
172 struct ip_tunnel *tunnel = netdev_priv(dev); in vti_xmit() local
173 struct ip_tunnel_parm_kern *parms = &tunnel->parms; in vti_xmit()
217 dst = xfrm_lookup_route(tunnel->net, dst, fl, NULL, 0); in vti_xmit()
260 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(dev))); in vti_xmit()
264 err = dst_output(tunnel->net, skb->sk, skb); in vti_xmit()
283 struct ip_tunnel *tunnel = netdev_priv(dev); in vti_tunnel_xmit() local
304 /* override mark with tunnel output key */ in vti_tunnel_xmit()
305 fl.flowi_mark = be32_to_cpu(tunnel->parms.o_key); in vti_tunnel_xmit()
320 struct ip_tunnel *tunnel; in vti4_err() local
332 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, flags, in vti4_err()
334 if (!tunnel) in vti4_err()
337 mark = be32_to_cpu(tunnel->parms.o_key); in vti4_err()
438 struct ip_tunnel *tunnel = netdev_priv(dev); in vti_tunnel_init() local
439 struct iphdr *iph = &tunnel->parms.iph; in vti_tunnel_init()
454 struct ip_tunnel *tunnel = netdev_priv(dev); in vti_fb_tunnel_init() local
455 struct iphdr *iph = &tunnel->parms.iph; in vti_fb_tunnel_init()
666 msg = "tunnel device"; in vti_init()
671 msg = "tunnel protocols"; in vti_init()
683 msg = "ipip tunnel"; in vti_init()