Set the cache level for the internal security state related to remote nodes. The remote node security state tracks the latest packet received from a remote node based on time, and datagram number in order to prevent packet replay attacks. The memory hint DOSMEMORYHINT_REMOTE_NODE_SECURITY_STATE is used when memory is allocated or freed for caching remote node security state. Using the level DOS_REMOTE_NODE_CACHE_LEVEL_MINIMUM is a way minimize the amount of memory used to store remote node security state. it will cause state to only be saved for a short period of time after the last packet is received from a node. Using DOS_REMOTE_NODE_CACHE_LEVEL_MINIMUM may increase the risk of dropping packets from nodes with a slightly slower clock. Using the level DOS_REMOTE_NODE_CACHE_LEVEL_MAXIMUM is a way to reduce the risk of dropping packets from nodes with slightly slower clocks, but may increase the amount of memory required for remote node security state. This level causes the state to be stored for a longer period of time to allow for the maximum acceptable clock skew. Using the level DOS_REMOTE_NODE_CACHE_LEVEL_NORMAL is a way to balance the risk of dropping packets with the amount of memory used for remote node security state. Calling this function will cause the remote node security state to immediately be cleaned up to the new level specified, and the new level will be used at the regular cleanup schedule.
|