Home
last modified time | relevance | path

Searched refs:sesshash (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/netgraph/
H A Dng_pppoe.c302 struct sess_hash_entry sesshash[SESSHASHSIZE]; member
552 mtx_lock(&privp->sesshash[hash].mtx); in pppoe_getnewsession()
553 LIST_FOREACH(tsp, &privp->sesshash[hash].head, sessions) { in pppoe_getnewsession()
559 LIST_INSERT_HEAD(&privp->sesshash[hash].head, sp, sessions); in pppoe_getnewsession()
561 mtx_unlock(&privp->sesshash[hash].mtx); in pppoe_getnewsession()
577 mtx_lock(&privp->sesshash[hash].mtx); in pppoe_addsession()
578 LIST_INSERT_HEAD(&privp->sesshash[hash].head, sp, sessions); in pppoe_addsession()
579 mtx_unlock(&privp->sesshash[hash].mtx); in pppoe_addsession()
589 mtx_lock(&privp->sesshash[hash].mtx); in pppoe_delsession()
591 mtx_unlock(&privp->sesshash[hash].mtx); in pppoe_delsession()
[all …]
H A Dng_pptpgre.c211 LIST_HEAD(, ng_pptpgre_sess) sesshash[SESSHASHSIZE];
344 LIST_INIT(&priv->sesshash[i]); in ng_pptpgre_constructor()
346 LIST_INSERT_HEAD(&priv->sesshash[0], &priv->uppersess, sessions); in ng_pptpgre_constructor()
408 LIST_INSERT_HEAD(&priv->sesshash[hash], hpriv, sessions); in ng_pptpgre_newhook()
446 LIST_INSERT_HEAD(&priv->sesshash[hash], hpriv, in ng_pptpgre_rcvmsg()
1227 LIST_FOREACH(hpriv, &privp->sesshash[hash], sessions) { in ng_pptpgre_find_session()
H A Dng_l2tp.c159 LIST_HEAD(, ng_l2tp_hook_private) sesshash[SESSHASHSIZE];
382 LIST_INIT(&priv->sesshash[i]); in ng_l2tp_constructor()
441 LIST_INSERT_HEAD(&priv->sesshash[hash], hpriv, sessions); in ng_l2tp_newhook()
716 LIST_FOREACH(hpriv, &privp->sesshash[hash], sessions) { in ng_l2tp_find_session()