target.h

来自「Firestorm NIDS是一个性能非常高的网络入侵检测系统 (NIDS)。目」· C头文件 代码 · 共 41 行

H
41
字号
#ifndef __TARGET_HEADER_INCLUDED__#define __TARGET_HEADER_INCLUDED__typedef int (*proc_target)(struct generator*,	struct packet *,	struct alert*,	void *);typedef int(*proc_target_validate)(char *, void **);typedef void(*proc_target_hup)(void *);typedef void(*proc_target_cleanup)(void *);#define target_init(a,b,c,d,e) {NULL, a, b, c, d, e}#define target_null() {NULL, NULL, NULL, NULL, NULL}struct target {	struct target		*next;	const char		*name;	proc_target		target;	proc_target_validate	validate;	proc_target_hup		hup;	proc_target_cleanup	cleanup;};#ifndef __PLUGIN__void target_stats(void);struct target *target_find(char *);int target_add(struct target *);#endiftypedef int(*proc_target_add)(struct target *);/* Plugin callback API */struct target_api {	size_t size;	proc_target_add target_add;	proc_args_parse args_parse;};typedef int (*proc_target_load)(struct target_api *);void target_load(void);#endif /* __TARGET_HEADER_INCLUDED__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?