Home
last modified time | relevance | path

Searched refs:tunnel (Results 1 – 9 of 9) sorted by relevance

/net/ipv4/
Dipip.c351 struct ip_tunnel *tunnel; in ipip_rcv() local
355 if ((tunnel = ipip_tunnel_lookup(dev_net(skb->dev), in ipip_rcv()
370 tunnel->dev->stats.rx_packets++; in ipip_rcv()
371 tunnel->dev->stats.rx_bytes += skb->len; in ipip_rcv()
372 skb->dev = tunnel->dev; in ipip_rcv()
393 struct ip_tunnel *tunnel = netdev_priv(dev); in ipip_tunnel_xmit() local
394 struct net_device_stats *stats = &tunnel->dev->stats; in ipip_tunnel_xmit()
395 struct iphdr *tiph = &tunnel->parms.iph; in ipip_tunnel_xmit()
396 u8 tos = tunnel->parms.iph.tos; in ipip_tunnel_xmit()
406 if (tunnel->recursion++) { in ipip_tunnel_xmit()
[all …]
Dip_gre.c475 struct ip_tunnel *tunnel; in ipgre_rcv() local
521 if ((tunnel = ipgre_tunnel_lookup(dev_net(skb->dev), in ipgre_rcv()
524 struct net_device_stats *stats = &tunnel->dev->stats; in ipgre_rcv()
554 (!(flags&GRE_CSUM) && tunnel->parms.i_flags&GRE_CSUM)) { in ipgre_rcv()
559 if (tunnel->parms.i_flags&GRE_SEQ) { in ipgre_rcv()
561 (tunnel->i_seqno && (s32)(seqno - tunnel->i_seqno) < 0)) { in ipgre_rcv()
566 tunnel->i_seqno = seqno + 1; in ipgre_rcv()
572 if (tunnel->dev->type == ARPHRD_ETHER) { in ipgre_rcv()
580 skb->protocol = eth_type_trans(skb, tunnel->dev); in ipgre_rcv()
586 skb->dev = tunnel->dev; in ipgre_rcv()
[all …]
Dipcomp.c99 x->tunnel = t; in ipcomp_tunnel_attach()
DKconfig223 through the tunnel.
386 tristate "IP: IPsec tunnel mode"
390 Support for IPsec tunnel mode.
/net/ipv6/
Dsit.c476 struct ip_tunnel *tunnel; in ipip6_rcv() local
484 if ((tunnel = ipip6_tunnel_lookup(dev_net(skb->dev), in ipip6_rcv()
493 if ((tunnel->dev->priv_flags & IFF_ISATAP) && in ipip6_rcv()
494 !isatap_chksrc(skb, iph, tunnel)) { in ipip6_rcv()
495 tunnel->dev->stats.rx_errors++; in ipip6_rcv()
500 tunnel->dev->stats.rx_packets++; in ipip6_rcv()
501 tunnel->dev->stats.rx_bytes += skb->len; in ipip6_rcv()
502 skb->dev = tunnel->dev; in ipip6_rcv()
540 struct ip_tunnel *tunnel = netdev_priv(dev); in ipip6_tunnel_xmit() local
541 struct net_device_stats *stats = &tunnel->dev->stats; in ipip6_tunnel_xmit()
[all …]
DKconfig135 tristate "IPv6: IPsec tunnel mode"
139 Support for IPsec tunnel mode.
160 tristate "IPv6: IPv6-in-IPv4 tunnel (SIT driver)"
177 tristate "IPv6: IP-in-IPv6 tunnel (RFC2473)"
Dipcomp6.c128 x->tunnel = t; in ipcomp6_tunnel_attach()
/net/tipc/
Dlink.c2380 struct link *tunnel; in tipc_link_tunnel() local
2384 tunnel = l_ptr->owner->active_links[selector & 1]; in tipc_link_tunnel()
2385 if (!tipc_link_is_up(tunnel)) { in tipc_link_tunnel()
2399 dbg("%c->%c:", l_ptr->b_ptr->net_plane, tunnel->b_ptr->net_plane); in tipc_link_tunnel()
2401 tipc_link_send_buf(tunnel, buf); in tipc_link_tunnel()
2415 struct link *tunnel = l_ptr->owner->active_links[0]; in tipc_link_changeover() local
2419 if (!tunnel) in tipc_link_changeover()
2442 tunnel->b_ptr->net_plane); in tipc_link_changeover()
2444 tipc_link_send_buf(tunnel, buf); in tipc_link_changeover()
2478 void tipc_link_send_duplicate(struct link *l_ptr, struct link *tunnel) in tipc_link_send_duplicate() argument
[all …]
/net/xfrm/
Dxfrm_state.c1988 if (x->tunnel) { in xfrm_state_delete_tunnel()
1989 struct xfrm_state *t = x->tunnel; in xfrm_state_delete_tunnel()
1995 x->tunnel = NULL; in xfrm_state_delete_tunnel()