snort_stream5_session.h
来自「Snort为国际上著名的轻量型入侵防御系统,为国内多家著名“自主知识产权”网络安」· C头文件 代码 · 共 40 行
H
40 行
#ifndef SNORT_STREAM5_SESSION_H_#define SNORT_STREAM5_SESSION_H_#include "sfxhash.h"#include "stream5_common.h"typedef void(*Stream5SessionCleanup)(Stream5LWSession *ssn);typedef struct _Stream5SessionCache{ SFXHASH *hashTable; u_int32_t timeout; u_int32_t max_sessions; u_int32_t cleanup_sessions; Stream5SessionCleanup cleanup_fcn;} Stream5SessionCache;void PrintSessionKey(SessionKey *);Stream5SessionCache *InitLWSessionCache(int max_sessions, u_int32_t session_timeout, u_int32_t cleanup_sessions, u_int32_t cleanup_percent, Stream5SessionCleanup clean_fcn);Stream5LWSession *GetLWSession(Stream5SessionCache *, Packet *, SessionKey *);Stream5LWSession *GetLWSessionFromKey(Stream5SessionCache *, SessionKey *);Stream5LWSession *NewLWSession(Stream5SessionCache *, Packet *, SessionKey *);int DeleteLWSession(Stream5SessionCache *, Stream5LWSession *);void PrintLWSessionCache(Stream5SessionCache *);int PurgeLWSessionCache(Stream5SessionCache *);int PruneLWSessionCache(Stream5SessionCache *, u_int32_t thetime, Stream5LWSession *save_me, int memcheck);int GetLWSessionCount(Stream5SessionCache *);void GetPacketDirection(Packet *p, Stream5LWSession *ssn);void FreeLWApplicationData(Stream5LWSession *ssn);#endif /* SNORT_STREAM5_SESSION_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?