Lines Matching refs:tunnel
123 struct l2tp_tunnel *tunnel = NULL; in l2tp_ip_recv() local
149 tunnel = session->tunnel; in l2tp_ip_recv()
150 if (tunnel == NULL) in l2tp_ip_recv()
154 if (tunnel->debug & L2TP_MSG_DATA) { in l2tp_ip_recv()
159 pr_debug("%s: ip recv\n", tunnel->name); in l2tp_ip_recv()
163 l2tp_recv_common(session, skb, ptr, optr, 0, skb->len, tunnel->recv_payload_hook); in l2tp_ip_recv()
176 tunnel = l2tp_tunnel_find(net, tunnel_id); in l2tp_ip_recv()
177 if (tunnel != NULL) in l2tp_ip_recv()
178 sk = tunnel->sock; in l2tp_ip_recv()
231 struct l2tp_tunnel *tunnel = l2tp_sock_to_tunnel(sk); in l2tp_ip_destroy_sock() local
236 if (tunnel) { in l2tp_ip_destroy_sock()
237 l2tp_tunnel_closeall(tunnel); in l2tp_ip_destroy_sock()