• Home
  • Raw
  • Download

Lines Matching refs:session_id

134 l2tp_session_id_hash_2(struct l2tp_net *pn, u32 session_id)  in l2tp_session_id_hash_2()  argument
136 return &pn->l2tp_session_hlist[hash_32(session_id, L2TP_HASH_BITS_2)]; in l2tp_session_id_hash_2()
146 l2tp_session_id_hash(struct l2tp_tunnel *tunnel, u32 session_id) in l2tp_session_id_hash() argument
148 return &tunnel->session_hlist[hash_32(session_id, L2TP_HASH_BITS)]; in l2tp_session_id_hash()
244 u32 session_id) in l2tp_tunnel_get_session() argument
249 session_list = l2tp_session_id_hash(tunnel, session_id); in l2tp_tunnel_get_session()
253 if (session->session_id == session_id) { in l2tp_tunnel_get_session()
265 struct l2tp_session *l2tp_session_get(const struct net *net, u32 session_id) in l2tp_session_get() argument
270 session_list = l2tp_session_id_hash_2(l2tp_pernet(net), session_id); in l2tp_session_get()
274 if (session->session_id == session_id) { in l2tp_session_get()
346 head = l2tp_session_id_hash(tunnel, session->session_id); in l2tp_session_register()
355 if (session_walk->session_id == session->session_id) { in l2tp_session_register()
362 g_head = l2tp_session_id_hash_2(pn, session->session_id); in l2tp_session_register()
370 if (session_walk->session_id == session->session_id && in l2tp_session_register()
652 session->session_id); in l2tp_recv_common()
799 u32 tunnel_id, session_id; in l2tp_udp_recv_core() local
848 session_id = ntohs(*(__be16 *)ptr); in l2tp_udp_recv_core()
853 session_id = ntohl(*(__be32 *)ptr); in l2tp_udp_recv_core()
858 session = l2tp_tunnel_get_session(tunnel, session_id); in l2tp_udp_recv_core()
865 tunnel->name, tunnel_id, session_id); in l2tp_udp_recv_core()
935 u32 session_id = session->peer_session_id; in l2tp_build_l2tpv2_header() local
943 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
1583 struct l2tp_session *l2tp_session_create(int priv_size, struct l2tp_tunnel *tunnel, u32 session_id, in l2tp_session_create() argument
1593 session->session_id = session_id; in l2tp_session_create()
1607 tunnel->tunnel_id, session->session_id); in l2tp_session_create()