I'd like to write a simple GUI C/C++ application (a simple interface) where the user can perform a few pf operations and also receive pf feedback (instead of using the
pfctl
command). I was hoping to get some guidance in regards to where to get started. The pf(8) suggests the use of the ioctl(2) interface . I can see a bunch of constants that start with "DIOC". A quick example or a tutorial on how to get started developing with pf would be more than appreciated. Thanks.