mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
450 B
C
26 lines
450 B
C
17 years ago
|
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
|
||
|
|
||
|
#ifndef __TM_QUEUEHANDLERS_H__
|
||
|
#define __TM_QUEUEHANDLERS_H__
|
||
|
|
||
|
enum {
|
||
|
TMQH_SIMPLE,
|
||
|
TMQH_NFQ,
|
||
|
TMQH_PACKETPOOL,
|
||
|
|
||
|
TMQH_SIZE,
|
||
|
};
|
||
|
|
||
|
typedef struct _Tmqh {
|
||
|
char *name;
|
||
|
Packet *(*InHandler)(ThreadVars *);
|
||
|
void (*OutHandler);
|
||
|
} Tmqh;
|
||
|
|
||
|
Tmqh tmqh_table[TMQH_SIZE];
|
||
|
|
||
|
void TmqhSetup (void);
|
||
|
Tmqh* TmqhGetQueueHandlerByName(char *name);
|
||
|
|
||
|
#endif /* __TM_QUEUEHANDLERS_H__ */
|