You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 26, 2025. It is now read-only.
Andrewerr edited this page Jan 27, 2020
·
1 revision
Caching
Abstract
Since packet_t has options in hashtable which is not fast enough to check this options while performing DoS attack it should be cached. So there should be implemented generic object caching.
Expected implementation
There should be created array_t to store custom packet structures. Each module should have function that puts packet in cache and returns it's id. So in this way we could get packet_t structure with complexity O(1). Also should create functions cache_put and cache_get in core part of program which will implement putting packet in cache and getting it from there.