Index: pfvar.h =================================================================== RCS file: /cvs/src/sys/net/pfvar.h,v retrieving revision 1.505 diff -u -p -r1.505 pfvar.h --- pfvar.h 26 Dec 2021 01:00:32 -0000 1.505 +++ pfvar.h 10 Nov 2022 15:22:44 -0000 @@ -809,7 +809,7 @@ struct pfsync_state_scrub { #define PFSYNC_SCRUB_FLAG_VALID 0x01 u_int8_t scrub_flag; u_int32_t pfss_ts_mod; /* timestamp modulation */ -} __packed; +} __packed __aligned(4); struct pfsync_state_peer { struct pfsync_state_scrub scrub; /* state is scrubbed */ @@ -821,7 +821,7 @@ struct pfsync_state_peer { u_int8_t state; /* active state level */ u_int8_t wscale; /* window scaling factor */ u_int8_t pad[6]; -} __packed; +} __packed __aligned(4); struct pfsync_state_key { struct pf_addr addr[2]; @@ -829,7 +829,7 @@ struct pfsync_state_key { u_int16_t rdomain; sa_family_t af; u_int8_t pad; -}; +} __aligned(4); struct pfsync_state { u_int64_t id; @@ -860,7 +860,7 @@ struct pfsync_state { u_int8_t set_tos; u_int16_t state_flags; u_int8_t set_prio[2]; -} __packed; +} __packed __aligned(4); #define PFSYNC_FLAG_SRCNODE 0x04 #define PFSYNC_FLAG_NATSRCNODE 0x08