Hi,

In message <[EMAIL PROTECTED]>
        on Mon, 23 May 2005 09:31:58 +0900,
        Jorgen Lundman <[EMAIL PROTECTED]> wrote:
> In "l4ip" I used:
> 
> #if defined (IPFILTER_VERSION >= 4010300)
> 
> for the ioctl()-version of the code.
Thanks for your reply.

I've also got reply that ipfobj structure introduced on 4.0 ALPHA27.
(Though I don't know what IPFILTER_VERSION's value with 4.0 ALPHA27.)

> But I didn't find it very portable. Some OSs had the header files in
> the system and some did not. Some defined the IPFILTER_VERSION and
> some did not. In the end I implemented both methods of
> adding/removing rules.
Yes, it isn't portable across different operating systems and diffrent
version of IP filter.  Anyway, we need IPFILTER_VERSION to fill
ipf_rev member of ipfobj structure with IPFILTER_VERSION.

Best regards.

-- 
Takahiro Kambe <[EMAIL PROTECTED]>

Reply via email to