PF (packet filter) is a kernel-level firewall, included in BSD-like kernels (Darwin kernel is basically BSD), and BSD man pages provide detailed documentation about these headers, letting control PF programmatically. PF is included in OSX kernel, even though it's disabled by default.
I know it's possible to control PF in OSX someway, because applications like Murus exist, providing user-friendly GUI for this low-level "king of firewalls", and this API is not not manual /etc/pf.conf
parsing, as I suspected first.
Any way to add these headers and control PF from my OSX applications?
MacOS Sierra 10.12.6
Xcode 9.2 (9C40b)
UPDATE Some information I found, a bit out-of-date though