On Thu, Jan 09, 2003 at 06:20:55PM +0100, Srebrenko Sehic wrote:

> What do you think about this?

There is some sharing of pfctl code with authpf already, but it's done
by compiling and linking some source modules of pfctl from authpf.

I guess you could try and move those shared functions into a library,
whether it's a good idea will be visible by how well authpf can use it.

If the library API is significantly different from the API of the
currently shared source modules (share function prototypes, etc.), that
might be a problem when the pf(4) ioctl interface changes and the
library API would have to be adjusted.

But it would be worth carefully looking at the currently shared modules,
and sorting all functions and shared globals to into either shared or
private modules. Whether you put the shared code into a library or just
link an object file from pfctl is then just a detail. :)

Daniel

Reply via email to