]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
af-packet: synchronize flags sizes
authorEric Leblond <eric@regit.org>
Fri, 5 Jan 2018 21:32:34 +0000 (22:32 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 12 Jan 2018 15:46:31 +0000 (16:46 +0100)
They are passed from config to threads so they need to be of the
same size.

src/source-af-packet.c
src/source-af-packet.h

index be8530f9a5a502ff21c3acd8dc7e86b17bfb395d..ac861bdb301d70d55d7a7062de97b5a2ad384b98 100644 (file)
@@ -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;
index d49528076ca5c4afeb929eb5f49fc6173858482c..0fce1b80a369d4c54a94c6111e725257e394c6a5 100644 (file)
@@ -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;