}
#else /* implied we do have WinDivert support */
+#include "action-globals.h"
+#include "win32-syscall.h"
typedef struct WinDivertThreadVars_ {
WinDivertHandle filter_handle;
#include "util-time.h"
#include "util-validate.h"
+#ifdef WINDIVERT
+#include "decode-sll.h"
+#include "win32-syscall.h"
+#endif
+
/*
* we put this here, because we only use it here in main.
*/
int strip_trailing_plus = 0;
switch (suri->run_mode) {
#ifdef WINDIVERT
- case RUNMODE_WINDIVERT:
+ case RUNMODE_WINDIVERT: {
/* by default, WinDivert collects from all devices */
- mtu = GetGlobalMTUWin32();
+ const int mtu = GetGlobalMTUWin32();
if (mtu > 0) {
/* SLL_HEADER_LEN is the longest header + 8 for VLAN */
}
default_packet_size = DEFAULT_PACKET_SIZE;
break;
+ }
#endif /* WINDIVERT */
case RUNMODE_NETMAP:
/* in netmap igb0+ has a special meaning, however the