26 #ifndef SURICATA_SOURCE_WINDIVERT_H
27 #define SURICATA_SOURCE_WINDIVERT_H
31 #include "windivert.h"
33 #define WINDIVERT_FILTER_MAXLEN 128
35 typedef void *WinDivertHandle;
43 typedef struct WinDivertQueueVars_
48 char filter_str[WINDIVERT_FILTER_MAXLEN + 1];
49 WINDIVERT_LAYER layer;
53 WinDivertHandle filter_handle;
67 typedef struct WinDivertPacketVars_
71 WINDIVERT_ADDRESS addr;
73 } WinDivertPacketVars;
75 int WinDivertRegisterQueue(
bool forward,
char *filter_str);
76 void *WinDivertGetThread(
int thread);
77 void *WinDivertGetQueue(
int queue);
79 void SourceWinDivertRegisterTests(
void);