diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-12-21 17:29:44 -0600 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-07-17 21:06:47 -0500 |
commit | 851facc5c65250bb16c0da08a4aeb3f56d060354 (patch) | |
tree | c19df4f52a72f3faecbdd127f349843692a7bf0c | |
parent | 4c7e10723b34609f548df3663643ee164a5525e2 (diff) | |
download | FreeBSD-src-851facc5c65250bb16c0da08a4aeb3f56d060354.zip FreeBSD-src-851facc5c65250bb16c0da08a4aeb3f56d060354.tar.gz |
Fix the structure padding to work on 32bits platforms.
Ticket #7026
(cherry picked from commit aa25003286b43c3710fe1a98b09b15385b736944)
-rw-r--r-- | sys/net/if_pflog.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_pflog.h b/sys/net/if_pflog.h index 4daa3ac..06253e1 100644 --- a/sys/net/if_pflog.h +++ b/sys/net/if_pflog.h @@ -45,11 +45,13 @@ struct pfloghdr { pid_t pid; uid_t rule_uid; pid_t rule_pid; + u_int8_t dir; + u_int8_t pad[3]; #else u_int32_t ridentifier; -#endif u_int8_t dir; - u_int8_t pad[7]; + u_int8_t pad[sizeof(long) - 1]; +#endif }; #define PFLOG_HDRLEN sizeof(struct pfloghdr) |