In "l4ip" I used:
#if defined (IPFILTER_VERSION >= 4010300)
for the ioctl()-version of the code.
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.
Lund
Takahiro Kambe wrote:
Hi.
What release of IP Filter had introduced ipfobj structure? In other
word, below code fragment is correct?
#if defined(IPFILTER_VERSION) && (IPFILTER_VERSION > 4000000)
struct ipfobj obj;
#endif
Best regards.
--
Jorgen Lundman | <[EMAIL PROTECTED]>
Unix Administrator | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo | +81 (0)90-5578-8500 (cell)
Japan | +81 (0)3 -3375-1767 (home)