Home
last modified time | relevance | path

Searched refs:tpcache (Results 1 – 1 of 1) sorted by relevance

/xnu-8019.80.24/bsd/netinet/
H A Dtcp_cache.c329 struct tcp_cache *tpcache = NULL; in tcp_getcache_with_lock() local
341 SLIST_FOREACH(tpcache, &head->tcp_caches, list) { in tcp_getcache_with_lock()
342 if (memcmp(&tpcache->tc_key, &key, sizeof(key)) == 0) { in tcp_getcache_with_lock()
350 if ((tpcache == NULL) && create) { in tcp_getcache_with_lock()
356 SLIST_FOREACH(tpcache, &head->tcp_caches, list) { in tcp_getcache_with_lock()
357 uint32_t age = tcp_now - tpcache->tc_last_access; in tcp_getcache_with_lock()
360 oldest_cache = tpcache; in tcp_getcache_with_lock()
365 tpcache = oldest_cache; in tcp_getcache_with_lock()
368 tpcache->tc_tfo_cookie_len = 0; in tcp_getcache_with_lock()
371 tpcache = kalloc_type(struct tcp_cache, Z_NOWAIT | Z_ZERO); in tcp_getcache_with_lock()
[all …]