mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-09 14:14:58 +02:00
pknock: improve sizeof(struct ipt_pknock) by relayouting members
Stuffing struct holes as reported by pahole(1).
This commit is contained in:
@@ -34,10 +34,10 @@ struct ipt_pknock {
|
|||||||
int open_secret_len;
|
int open_secret_len;
|
||||||
char close_secret[IPT_PKNOCK_MAX_PASSWD_LEN + 1];
|
char close_secret[IPT_PKNOCK_MAX_PASSWD_LEN + 1];
|
||||||
int close_secret_len;
|
int close_secret_len;
|
||||||
|
uint8_t option; /* --time, --knock-port, ... */
|
||||||
uint8_t ports_count; /* number of ports */
|
uint8_t ports_count; /* number of ports */
|
||||||
uint16_t port[IPT_PKNOCK_MAX_PORTS]; /* port[,port,port,...] */
|
uint16_t port[IPT_PKNOCK_MAX_PORTS]; /* port[,port,port,...] */
|
||||||
unsigned long max_time; /* max matching time between ports */
|
unsigned long max_time; /* max matching time between ports */
|
||||||
uint8_t option; /* --time, --knock-port, ... */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ipt_pknock_nl_msg {
|
struct ipt_pknock_nl_msg {
|
||||||
|
Reference in New Issue
Block a user