Lines Matching defs:sni
662 struct pf_sn_item *sni;
664 SLIST_FOREACH(sni, &st->src_nodes, next)
665 if (sni->sn->type == type)
666 return (sni->sn);
673 struct pf_sn_item *sni, *snin, *snip = NULL;
675 for (sni = SLIST_FIRST(&st->src_nodes); sni; sni = snin) {
676 snin = SLIST_NEXT(sni, next);
677 if (sni->sn == sn) {
682 pool_put(&pf_sn_item_pl, sni);
683 sni = NULL;
686 if (sni != NULL)
687 snip = sni;
1755 struct pf_sn_item *sni;
1757 while ((sni = SLIST_FIRST(&st->src_nodes)) != NULL) {
1760 --sni->sn->conn;
1761 if (--sni->sn->states == 0) {
1766 sni->sn->expire = getuptime() + timeout;
1768 pool_put(&pf_sn_item_pl, sni);
4732 struct pf_sn_item *sni;
4734 sni = pool_get(&pf_sn_item_pl, PR_NOWAIT);
4735 if (sni == NULL) {
4739 sni->sn = sns[i];
4740 SLIST_INSERT_HEAD(&st->src_nodes, sni, next);
4741 sni->sn->states++;
7499 struct pf_sn_item *sni;
7501 SLIST_FOREACH(sni, &st->src_nodes, next) {
7502 sni->sn->packets[dirndx]++;
7503 sni->sn->bytes[dirndx] += pd->tot_len;