HomeFreeBSD

Make pfctl(8) work on strict-alignment platforms, by copying a pair of

Description

Make pfctl(8) work on strict-alignment platforms, by copying a pair of
embedded structures out of a packed, unaligned struct into local copies
on the stack which are aligned.

The original patch to do this was submitted by Guy Yur <guyyur@gmail.com>,
and this is conceptually the same change, but restructured with the
#ifndef __NO_STRICT_ALIGNMENT wrapper, similar to how the same issue is
handled in the kernel pf code.

PR: 185617
PR: 206658

Details

Provenance
ianAuthored on
Parents
rS295085: sh: Don't allocate a redirtab if there are no redirections.
Branches
Unknown
Tags
Unknown