Lines Matching defs:tunnel
4 * virtual tunnel interface
50 struct ip_tunnel *tunnel;
55 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY,
57 if (tunnel) {
61 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4 = tunnel;
64 skb->dev = tunnel->dev;
100 struct ip_tunnel *tunnel = XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip4;
104 if (!tunnel)
107 dev = tunnel->dev;
131 skb->mark = be32_to_cpu(tunnel->parms.i_key);
138 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(skb->dev)));
150 /* if there is no transform then this tunnel is not functional.
151 * Or if the xfrm is not mode tunnel.
169 struct ip_tunnel *tunnel = netdev_priv(dev);
170 struct ip_tunnel_parm *parms = &tunnel->parms;
214 dst = xfrm_lookup_route(tunnel->net, dst, fl, NULL, 0);
257 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(dev)));
261 err = dst_output(tunnel->net, skb->sk, skb);
280 struct ip_tunnel *tunnel = netdev_priv(dev);
301 /* override mark with tunnel output key */
302 fl.flowi_mark = be32_to_cpu(tunnel->parms.o_key);
317 struct ip_tunnel *tunnel;
326 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY,
328 if (!tunnel)
331 mark = be32_to_cpu(tunnel->parms.o_key);
424 struct ip_tunnel *tunnel = netdev_priv(dev);
425 struct iphdr *iph = &tunnel->parms.iph;
440 struct ip_tunnel *tunnel = netdev_priv(dev);
441 struct iphdr *iph = &tunnel->parms.iph;
650 msg = "tunnel device";
655 msg = "tunnel protocols";
667 msg = "ipip tunnel";