]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sys/netpfil/pf: fix non-INET module build
authorLexi Winter <lexi@le-Fay.ORG>
Mon, 22 Apr 2024 21:59:12 +0000 (15:59 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 23 Apr 2024 21:13:21 +0000 (15:13 -0600)
commit93c5ba5a83d6e23329e9ca9b9ed72eea613b611d
treeeaa6cf51868aad3a8c8a8f84fbc3bc89e8562207
parent65767e6126a7e92bc76561b4ffd005cf85ba525e
sys/netpfil/pf: fix non-INET module build

pf.ko, when built as a module without 'options INET' but with 'options
VIMAGE', won't load:

link_elf_obj: symbol vnet_entry_in_loopback_mask undefined

This is because it uses IN_LOOPBACK(), which in the VIMAGE case uses
INET-specific symbols.

Fix by making this check conditional on #ifdef INET.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1157
sys/netpfil/pf/pf.c