Lines Matching full:sn

228     uint16_t high, struct pf_ksrc_node **sn, struct pf_srchash **sh,  in pf_get_sport()  argument
255 if (*sn == NULL && r->rpool.opts & PF_POOL_STICKYADDR && in pf_get_sport()
257 *sn = pf_find_src_node(saddr, r, af, sh, false); in pf_get_sport()
258 if (*sn != NULL) in pf_get_sport()
259 PF_SRC_NODE_UNLOCK(*sn); in pf_get_sport()
268 if (pf_map_addr_sn(af, r, saddr, naddr, NULL, &init_addr, sn, sh)) in pf_get_sport()
389 (*sn) = NULL; in pf_get_sport()
390 if (pf_map_addr_sn(af, r, saddr, naddr, NULL, &init_addr, sn, sh)) in pf_get_sport()
419 struct pf_ksrc_node **sn, struct pf_srchash **sh, in pf_get_mape_sport() argument
440 naddr, nport, low, low | highmask, sn, sh, udp_mapping)) in pf_get_mape_sport()
446 naddr, nport, low, low | highmask, sn, sh, udp_mapping)) in pf_get_mape_sport()
629 struct pf_ksrc_node **sn, struct pf_srchash **sh) in pf_map_addr_sn() argument
637 * sn was not found, as here we never insert a new sn. in pf_map_addr_sn()
639 if (*sn == NULL) { in pf_map_addr_sn()
642 *sn = pf_find_src_node(saddr, r, af, sh, false); in pf_map_addr_sn()
644 pf_src_node_exists(sn, *sh); in pf_map_addr_sn()
651 if (*sn != NULL && !PF_AZERO(&(*sn)->raddr, af)) { in pf_map_addr_sn()
652 PF_SRC_NODE_LOCK_ASSERT(*sn); in pf_map_addr_sn()
657 if (PF_AEQ(naddr, &(*sn)->raddr, af)) { in pf_map_addr_sn()
662 PF_ACPY(naddr, &(*sn)->raddr, af); in pf_map_addr_sn()
664 *nkif = (*sn)->rkif; in pf_map_addr_sn()
686 if (*sn != NULL) { in pf_map_addr_sn()
687 PF_SRC_NODE_LOCK_ASSERT(*sn); in pf_map_addr_sn()
689 PF_ACPY(&(*sn)->raddr, naddr, af); in pf_map_addr_sn()
691 (*sn)->rkif = *nkif; in pf_map_addr_sn()
704 if ((*sn) != NULL) in pf_map_addr_sn()
705 PF_SRC_NODE_UNLOCK(*sn); in pf_map_addr_sn()
723 struct pf_ksrc_node *sn = NULL; in pf_get_translation() local
785 sport, daddr, dport, naddr, nportp, &sn, &sh, in pf_get_translation()
797 daddr, dport, naddr, nportp, low, high, &sn, &sh, in pf_get_translation()
885 reason = pf_map_addr_sn(pd->af, r, saddr, naddr, NULL, NULL, &sn, &sh); in pf_get_translation()