All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables version defines
@ 2008-05-30  8:16 Thomas Jarosch
  2008-05-30  9:41 ` Krzysztof Oledzki
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Jarosch @ 2008-05-30  8:16 UTC (permalink / raw)
  To: netfilter-devel

Hello netfilter coreteam,

I'm currently looking for a way to support ipt_ACCOUNT
both for iptables 1.4.0 and iptables 1.4.1. Some function
names changed (addr_to_dotted() -> ipaddr_to_numeric())
and it would be easy to #ifdef around them.

The linux kernel provides multiple defines for its version number,
while iptables only supports a char* version string.

Would it make sense to add something like the kernel version defines
so one could write code like this:

#if IPTABLES_VERSION_CODE < IPTABLES_VERSION(1,4,1)
	abc
#else
	xyz
#endif

?

Another solution would be to have an "iptables" and "iptables-1.4.1"
directory in the pom archive, though I don't know if that is supported.
(and would lead to code duplication.)

Thanks,
Thomas

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-06-02 13:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30  8:16 iptables version defines Thomas Jarosch
2008-05-30  9:41 ` Krzysztof Oledzki
2008-05-30  9:56   ` Krzysztof Oledzki
2008-05-30 10:06     ` Thomas Jarosch
2008-05-30 10:53       ` Jan Engelhardt
2008-06-01 21:13         ` Patrick McHardy
     [not found]           ` <200806021545.23690.thomas.jarosch@intra2net.com>
2008-06-02 13:50             ` [patch] " Patrick McHardy
2008-05-30 10:05   ` Krzysztof Oledzki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.