HomeFreeBSD

libalias: Fix API bug on initialization

Description

libalias: Fix API bug on initialization

The kernel part of ipfw(8) does initialize LibAlias uncondistionally
with an zeroized port range (allowed ports from 0 to 0). During
restucturing of libalias, port ranges are used everytime and are
therefor initialized with different values than zero. The secondary
initialization from ipfw (and probably others) overrides the new
default values and leave the instance in an unfunctional state. The
obvious solution is to detect such reinitializations and use the new
default value instead.

MFC after: 3 days

Details

Provenance
donnerAuthored on Jul 3 2021, 9:03 PM
Parents
rG24f398e7a153: Add efitable(8), a userspace tool to fetch and parse EFI tables
Branches
Unknown
Tags
Unknown