MCPcopy Create free account
hub / github.com/F-Stack/f-stack / syncache_cookiesonly

Function syncache_cookiesonly

freebsd/netinet/tcp_syncache.c:550–556  ·  view source on GitHub ↗

* Returns true if the system is only using cookies at the moment. * This could be due to a sysadmin decision to only use cookies, or it * could be due to the system detecting an attack. */

Source from the content-addressed store, hash-verified

548 * could be due to the system detecting an attack.
549 */
550static inline bool
551syncache_cookiesonly(void)
552{
553
554 return (V_tcp_syncookies && (V_tcp_syncache.paused ||
555 V_tcp_syncookiesonly));
556}
557
558/*
559 * Find the hash bucket for the given connection.

Callers 5

syncache_chkrstFunction · 0.85
syncache_badackFunction · 0.85
syncache_unreachFunction · 0.85
syncache_expandFunction · 0.85
syncache_addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected