HomeFreeBSD

pf: unify DPFPRINTF definitions

Description

pf: unify DPFPRINTF definitions

We define DPFPRINTF() in a few different versions in most pf source files.
Move to one definition in pfvar.h and use that one everywhere.

While here change it to add an endline, as OpenBSD does, so we consistently end
all logs with an endline.
Also add a static probe point to ease future debugging. This way we can detect
log evens even when logging is disabled, and extract more information (e.g.
stack traces, frequency, ...).

Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Jul 18 2025, 2:55 PM
Parents
rG13cd0f9c1ae6: pf tests: test truncated IP options in ICMP payload
Branches
Unknown
Tags
Unknown