From: Eric Leblond Date: Fri, 5 Jan 2018 21:32:34 +0000 (+0100) Subject: af-packet: synchronize flags sizes X-Git-Tag: suricata-4.1.0-beta1~360 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bfa3aeaf9b66c6bf0d79a4d261302a425d53200;p=thirdparty%2Fsuricata.git af-packet: synchronize flags sizes They are passed from config to threads so they need to be of the same size. --- 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;