Lines Matching refs:encap
371 (session_walk->tunnel->encap == L2TP_ENCAPTYPE_IP || in l2tp_session_register()
372 tunnel->encap == L2TP_ENCAPTYPE_IP)) { in l2tp_session_register()
964 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_build_l2tpv3_header()
1026 uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(*uh) : 0; in l2tp_xmit_core()
1066 switch (tunnel->encap) { in l2tp_xmit_core()
1139 switch (tunnel->encap) { in l2tp_tunnel_destruct()
1284 switch (cfg->encap) { in l2tp_tunnel_sock_create()
1393 enum l2tp_encap_type encap = L2TP_ENCAPTYPE_UDP; in l2tp_tunnel_create() local
1396 encap = cfg->encap; in l2tp_tunnel_create()
1413 tunnel->encap = encap; in l2tp_tunnel_create()
1433 enum l2tp_encap_type encap) in l2tp_validate_socket() argument
1444 if ((encap == L2TP_ENCAPTYPE_UDP && sk->sk_protocol != IPPROTO_UDP) || in l2tp_validate_socket()
1445 (encap == L2TP_ENCAPTYPE_IP && sk->sk_protocol != IPPROTO_L2TP)) in l2tp_validate_socket()
1485 ret = l2tp_validate_socket(sk, net, tunnel->encap); in l2tp_tunnel_register()
1491 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_tunnel_register()
1575 if (session->tunnel->encap == L2TP_ENCAPTYPE_UDP) in l2tp_session_set_header_len()