HomeFreeBSD

ipfilter: Obtain the interface name more efficiently

Description

ipfilter: Obtain the interface name more efficiently

Rather than use a kmem read to determine the interface name used by a
nat_t structure through a pointer, nat_ipfs->netif->if_xname, obtain it
directly from nat_ifnames in the nat_t structure itself using the new
FORMAT_IF macro.

MFC after: 1 week

Details

Provenance
cyAuthored on Mar 3 2022, 6:40 AM
Parents
rG915395a2800a: ipfilter: Introduce the new FORMAT_IF macro
Branches
Unknown
Tags
Unknown