Home | History | Annotate | Download | only in netinet

Lines Matching defs:clone

6261 	nat_t *clone;
6264 KMALLOC(clone, nat_t *);
6265 if (clone == NULL) {
6269 bcopy((char *)nat, (char *)clone, sizeof(*clone));
6271 MUTEX_NUKE(&clone->nat_lock);
6273 clone->nat_rev = fin->fin_rev;
6274 clone->nat_aps = NULL;
6278 clone->nat_tqe.tqe_pnext = NULL;
6279 clone->nat_tqe.tqe_next = NULL;
6280 clone->nat_tqe.tqe_ifq = NULL;
6281 clone->nat_tqe.tqe_parent = clone;
6283 clone->nat_flags &= ~SI_CLONE;
6284 clone->nat_flags |= SI_CLONED;
6286 if (clone->nat_hm)
6287 clone->nat_hm->hm_ref++;
6289 if (ipf_nat_insert(softc, softn, clone) == -1) {
6290 KFREE(clone);
6295 np = clone->nat_ptr;
6298 ipf_nat_log(softc, softn, clone, NL_CLONE);
6301 fr = clone->nat_fr;
6310 * Because the clone is created outside the normal loop of things and
6314 if (clone->nat_pr[0] == IPPROTO_TCP) {
6315 (void) ipf_tcp_age(&clone->nat_tqe, fin, softn->ipf_nat_tcptq,
6316 clone->nat_flags, 2);
6318 clone->nat_sync = ipf_sync_new(softc, SMC_NAT, fin, clone);
6320 ipf_nat_log(softc, softn, clone, NL_CLONE);
6321 return clone;