Lines Matching refs:clone
2015 ipstate_t *clone;
2036 KMALLOC(clone, ipstate_t *);
2037 if (clone == NULL)
2039 bcopy((char *)is, (char *)clone, sizeof(*clone));
2041 MUTEX_NUKE(&clone->is_lock);
2043 clone->is_die = ONE_DAY + ifs->ifs_fr_ticks;
2044 clone->is_state[0] = 0;
2045 clone->is_state[1] = 0;
2051 clone->is_dend = send;
2052 clone->is_maxdend = send;
2053 clone->is_send = 0;
2054 clone->is_maxswin = 1;
2055 clone->is_maxdwin = ntohs(tcp->th_win);
2056 if (clone->is_maxdwin == 0)
2057 clone->is_maxdwin = 1;
2059 clone->is_send = send;
2060 clone->is_maxsend = send;
2061 clone->is_dend = 0;
2062 clone->is_maxdwin = 1;
2063 clone->is_maxswin = ntohs(tcp->th_win);
2064 if (clone->is_maxswin == 0)
2065 clone->is_maxswin = 1;
2068 clone->is_flags &= ~SI_CLONE;
2069 clone->is_flags |= SI_CLONED;
2070 fr_stinsert(clone, fin->fin_rev, ifs);
2071 clone->is_ref = 1;
2072 if (clone->is_p == IPPROTO_TCP) {
2073 (void) fr_tcp_age(&clone->is_sti, fin, ifs->ifs_ips_tqtqb,
2074 clone->is_flags);
2076 MUTEX_EXIT(&clone->is_lock);
2082 clone->is_sync = ipfsync_new(SMC_STATE, fin, clone);
2084 return clone;
2284 ipstate_t *clone;
2286 clone = fr_stclone(fin, tcp, is);
2287 if (clone == NULL)
2289 is = clone;