]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: shrink IPOnlyCIDRItem with 8 bytes
authorVictor Julien <victor@inliniac.net>
Fri, 25 Mar 2016 11:55:23 +0000 (12:55 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Apr 2016 07:37:43 +0000 (09:37 +0200)
src/detect.h

index 6abd89379447d1ea1331b7f3f808d6a22781bf2a..3bee26fcd93eb54edd032fa25db69cbd36c862d2 100644 (file)
@@ -312,12 +312,12 @@ typedef struct DetectPort_ {
 typedef struct IPOnlyCIDRItem_ {
     /* address data for this item */
     uint8_t family;
-    uint32_t ip[4];
     /* netmask in CIDR values (ex. /16 /18 /24..) */
     uint8_t netmask;
-
     /* If this host or net is negated for the signum */
     uint8_t negated;
+
+    uint32_t ip[4];
     SigIntId signum; /**< our internal id */
 
     /* linked list, the header should be the biggest network */