HomeFreeBSD

pf: fix build on kernels without "options INET"

Description

pf: fix build on kernels without "options INET"

  • IN_LOOPBACK() cannot be used without INET, because it references a VNET symbol vnet_entry_in_loopback_mask.
  • ip_fillid() is not available without INET. since this codepath is only entered in the AF_INET case, guard it with #ifnet INET.

Fixes: 27f54be50bbad ("pf: merge pf_test() and pf_test6()")
Fixes: 4f9e688708f1b ("pf: merge pf_scrub_ip() and pf_scrub_ip6()")
Reviewed by: kp

Details

Provenance
lexi_le-fay.orgAuthored on Sun, Nov 3, 4:05 PM
kpCommitted on Mon, Nov 4, 2:17 PM
Parents
rG6e5650896fe4: ice(4): properly use kernel option RSS
Branches
Unknown
Tags
Unknown