]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
pknock: improve sizeof(struct ipt_pknock) by relayouting members
authorJan Engelhardt <jengelh@medozas.de>
Tue, 29 Sep 2009 17:07:44 +0000 (19:07 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 29 Sep 2009 17:36:14 +0000 (19:36 +0200)
Stuffing struct holes as reported by pahole(1).

extensions/xt_pknock.h

index e5051d35337643ea9c3fe2e251bbf327463bae1c..171b34f39010406dd105e49e765574356fc8a479 100644 (file)
@@ -34,10 +34,10 @@ struct ipt_pknock {
        int                     open_secret_len;
        char            close_secret[IPT_PKNOCK_MAX_PASSWD_LEN + 1];
        int                     close_secret_len;
+       uint8_t option;         /* --time, --knock-port, ... */
        uint8_t ports_count;    /* number of ports */
        uint16_t        port[IPT_PKNOCK_MAX_PORTS]; /* port[,port,port,...] */
        unsigned long   max_time;       /* max matching time between ports */
-       uint8_t option;         /* --time, --knock-port, ... */
 };
 
 struct ipt_pknock_nl_msg {