Lines Matching refs:tunnel
123 struct l2tp_tunnel *tunnel = NULL; in l2tp_ip_recv() local
148 tunnel = session->tunnel; in l2tp_ip_recv()
149 if (tunnel == NULL) in l2tp_ip_recv()
153 if (tunnel->debug & L2TP_MSG_DATA) { in l2tp_ip_recv()
161 pr_debug("%s: ip recv\n", tunnel->name); in l2tp_ip_recv()
165 l2tp_recv_common(session, skb, ptr, optr, 0, skb->len, tunnel->recv_payload_hook); in l2tp_ip_recv()
178 tunnel = l2tp_tunnel_find(net, tunnel_id); in l2tp_ip_recv()
179 if (tunnel != NULL) in l2tp_ip_recv()
180 sk = tunnel->sock; in l2tp_ip_recv()
233 struct l2tp_tunnel *tunnel = l2tp_sock_to_tunnel(sk); in l2tp_ip_destroy_sock() local
238 if (tunnel) { in l2tp_ip_destroy_sock()
239 l2tp_tunnel_closeall(tunnel); in l2tp_ip_destroy_sock()