Lines Matching defs:clone
2302 ipstate_t *clone;
2310 KMALLOC(clone, ipstate_t *);
2311 if (clone == NULL) {
2315 bcopy((char *)is, (char *)clone, sizeof(*clone));
2317 MUTEX_NUKE(&clone->is_lock);
2322 clone->is_sti.tqe_pnext = NULL;
2323 clone->is_sti.tqe_next = NULL;
2324 clone->is_sti.tqe_ifq = NULL;
2325 clone->is_sti.tqe_parent = clone;
2327 clone->is_die = ONE_DAY + softc->ipf_ticks;
2328 clone->is_state[0] = 0;
2329 clone->is_state[1] = 0;
2335 clone->is_dend = send;
2336 clone->is_maxdend = send;
2337 clone->is_send = 0;
2338 clone->is_maxswin = 1;
2339 clone->is_maxdwin = ntohs(tcp->th_win);
2340 if (clone->is_maxdwin == 0)
2341 clone->is_maxdwin = 1;
2343 clone->is_send = send;
2344 clone->is_maxsend = send;
2345 clone->is_dend = 0;
2346 clone->is_maxdwin = 1;
2347 clone->is_maxswin = ntohs(tcp->th_win);
2348 if (clone->is_maxswin == 0)
2349 clone->is_maxswin = 1;
2352 clone->is_flags &= ~SI_CLONE;
2353 clone->is_flags |= SI_CLONED;
2354 if (ipf_state_insert(softc, clone, fin->fin_rev) == -1) {
2355 KFREE(clone);
2359 clone->is_ref = 1;
2360 if (clone->is_p == IPPROTO_TCP) {
2361 (void) ipf_tcp_age(&clone->is_sti, fin, softs->ipf_state_tcptq,
2362 clone->is_flags, 2);
2364 MUTEX_EXIT(&clone->is_lock);
2366 clone->is_sync = ipf_sync_new(softc, SMC_STATE, fin, clone);
2367 DT2(iss_clone, ipstate_t *, is, ipstate_t *, clone);
2369 return clone;
2549 ipstate_t *clone;
2551 clone = ipf_state_clone(fin, tcp, is);
2552 if (clone == NULL)
2554 is = clone;