Lines Matching defs:clone
2352 ipstate_t *clone;
2360 KMALLOC(clone, ipstate_t *);
2361 if (clone == NULL) {
2365 bcopy((char *)is, (char *)clone, sizeof(*clone));
2367 MUTEX_NUKE(&clone->is_lock);
2372 clone->is_sti.tqe_pnext = NULL;
2373 clone->is_sti.tqe_next = NULL;
2374 clone->is_sti.tqe_ifq = NULL;
2375 clone->is_sti.tqe_parent = clone;
2377 clone->is_die = ONE_DAY + softc->ipf_ticks;
2378 clone->is_state[0] = 0;
2379 clone->is_state[1] = 0;
2385 clone->is_dend = send;
2386 clone->is_maxdend = send;
2387 clone->is_send = 0;
2388 clone->is_maxswin = 1;
2389 clone->is_maxdwin = ntohs(tcp->th_win);
2390 if (clone->is_maxdwin == 0)
2391 clone->is_maxdwin = 1;
2393 clone->is_send = send;
2394 clone->is_maxsend = send;
2395 clone->is_dend = 0;
2396 clone->is_maxdwin = 1;
2397 clone->is_maxswin = ntohs(tcp->th_win);
2398 if (clone->is_maxswin == 0)
2399 clone->is_maxswin = 1;
2402 clone->is_flags &= ~SI_CLONE;
2403 clone->is_flags |= SI_CLONED;
2404 if (ipf_state_insert(softc, clone, fin->fin_rev) == -1) {
2405 KFREE(clone);
2409 clone->is_ref = 1;
2410 if (clone->is_p == IPPROTO_TCP) {
2411 (void) ipf_tcp_age(&clone->is_sti, fin, softs->ipf_state_tcptq,
2412 clone->is_flags, 2);
2414 MUTEX_EXIT(&clone->is_lock);
2416 clone->is_sync = ipf_sync_new(softc, SMC_STATE, fin, clone);
2417 DT2(iss_clone, ipstate_t *, is, ipstate_t *, clone);
2419 return clone;
2603 ipstate_t *clone;
2605 clone = ipf_state_clone(fin, tcp, is);
2606 if (clone == NULL)
2608 is = clone;