From 4bfa3aeaf9b66c6bf0d79a4d261302a425d53200 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 5 Jan 2018 22:32:34 +0100 Subject: [PATCH] af-packet: synchronize flags sizes They are passed from config to threads so they need to be of the same size. --- src/source-af-packet.c | 2 +- src/source-af-packet.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/source-af-packet.c b/src/source-af-packet.c index be8530f9a5..ac861bdb30 100644 --- a/src/source-af-packet.c +++ b/src/source-af-packet.c @@ -207,7 +207,7 @@ typedef struct AFPThreadVars_ /* handle state */ uint8_t afp_state; uint8_t copy_mode; - uint8_t flags; + unsigned int flags; /* IPS peer */ AFPPeer *mpeer; diff --git a/src/source-af-packet.h b/src/source-af-packet.h index d49528076c..0fce1b80a3 100644 --- a/src/source-af-packet.h +++ b/src/source-af-packet.h @@ -84,7 +84,7 @@ typedef struct AFPIfaceConfig_ /* promisc mode */ int promisc; /* misc use flags including ring mode */ - int flags; + unsigned int flags; int copy_mode; ChecksumValidationMode checksum_mode; const char *bpf_filter;