HomeFreeBSD

ipfilter: Avoid more null if-then-else blocks

Description

ipfilter: Avoid more null if-then-else blocks

As in 73db3b64f167, when WITHOUT_INET6 is selected, null if-then-else
blocks are generated because #if statements are incorrectly placed.
Moving the #if statements reduces unnecessary runtime comparisons or
compiler optimizations.

(cherry picked from commit 130df64793d7d3c680c0f7177a707867a8a19665)

Details

Provenance
cyAuthored on Oct 20 2021, 3:11 AM
Parents
rG116c7f035829: ipfilter: Correct a comment and add notation
Branches
Unknown
Tags
Unknown