Skip to content

Commit

Permalink
Fix the structure padding to work on 32bits platforms.
Browse files Browse the repository at this point in the history
Ticket #7026
  • Loading branch information
loos-br committed Dec 21, 2016
1 parent 90149f5 commit aa25003
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sys/net/if_pflog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

2 comments on commit aa25003

@GTAXL
Copy link

@GTAXL GTAXL commented on aa25003 Dec 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyway to apply this without a restart? Or am I just gonna have to wait off till 2.4-STABLE? :/

@jim-p
Copy link
Contributor

@jim-p jim-p commented on aa25003 Dec 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wait for the next snapshot and update, as usual. Post on the forum for more info/help.

Please sign in to comment.