]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
globally replace NETFILTER_VERSION with IPTABLES_VERSION to have consistent naming
authorHarald Welte <laforge@gnumonks.org>
Wed, 29 May 2002 13:08:15 +0000 (13:08 +0000)
committerHarald Welte <laforge@gnumonks.org>
Wed, 29 May 2002 13:08:15 +0000 (13:08 +0000)
86 files changed:
Makefile
extensions/libip6t_LOG.c
extensions/libip6t_MARK.c
extensions/libip6t_REJECT.c
extensions/libip6t_ah.c
extensions/libip6t_dst.c
extensions/libip6t_esp.c
extensions/libip6t_eui64.c
extensions/libip6t_frag.c
extensions/libip6t_hbh.c
extensions/libip6t_icmpv6.c
extensions/libip6t_ipv6header.c
extensions/libip6t_length.c
extensions/libip6t_limit.c
extensions/libip6t_mac.c
extensions/libip6t_mark.c
extensions/libip6t_multiport.c
extensions/libip6t_owner.c
extensions/libip6t_rt.c
extensions/libip6t_standard.c
extensions/libip6t_tcp.c
extensions/libip6t_udp.c
extensions/libipt_BALANCE.c
extensions/libipt_CONNMARK.c
extensions/libipt_DNAT.c
extensions/libipt_DSCP.c
extensions/libipt_ECN.c
extensions/libipt_FTOS.c
extensions/libipt_IPV4OPTSSTRIP.c
extensions/libipt_LOG.c
extensions/libipt_MARK.c
extensions/libipt_MASQUERADE.c
extensions/libipt_MIRROR.c
extensions/libipt_NETLINK.c
extensions/libipt_NETMAP.c
extensions/libipt_POOL.c
extensions/libipt_REDIRECT.c
extensions/libipt_REJECT.c
extensions/libipt_SAME.c
extensions/libipt_SNAT.c
extensions/libipt_TCPMSS.c
extensions/libipt_TOS.c
extensions/libipt_TTL.c
extensions/libipt_ULOG.c
extensions/libipt_ah.c
extensions/libipt_connlimit.c
extensions/libipt_connmark.c
extensions/libipt_conntrack.c
extensions/libipt_dscp.c
extensions/libipt_esp.c
extensions/libipt_helper.c
extensions/libipt_icmp.c
extensions/libipt_ipv4options.c
extensions/libipt_length.c
extensions/libipt_limit.c
extensions/libipt_mac.c
extensions/libipt_mark.c
extensions/libipt_mport.c
extensions/libipt_multiport.c
extensions/libipt_nth.c
extensions/libipt_owner.c
extensions/libipt_pkttype.c
extensions/libipt_pool.c
extensions/libipt_psd.c
extensions/libipt_quota.c
extensions/libipt_random.c
extensions/libipt_realm.c
extensions/libipt_recent.c
extensions/libipt_record_rpc.c
extensions/libipt_standard.c
extensions/libipt_state.c
extensions/libipt_string.c
extensions/libipt_tcp.c
extensions/libipt_tcpmss.c
extensions/libipt_time.c
extensions/libipt_tos.c
extensions/libipt_ttl.c
extensions/libipt_udp.c
extensions/libipt_unclean.c
ip6tables-restore.c
ip6tables-save.c
ip6tables-standalone.c
iptables-restore.c
iptables-save.c
iptables-standalone.c
libiptc/libiptc.c

index 57d6051527a7902c07767ca10afe6ee6016f5649..029a97ceaf4e00ab3deb79df98b1b516af981211 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,8 @@ TOPLEVEL_INCLUDED=YES
 ifndef KERNEL_DIR
 KERNEL_DIR=/usr/src/linux
 endif
-NETFILTER_VERSION:=1.2.7
-OLD_NETFILTER_VERSION:=1.2.6a
+IPTABLES_VERSION:=1.2.7
+OLD_IPTABLES_VERSION:=1.2.6a
 
 PREFIX:=/usr/local
 LIBDIR:=$(PREFIX)/lib
@@ -31,7 +31,7 @@ DO_IPV6=1
 endif
 
 COPT_FLAGS:=-O2
-CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -Iinclude/ -DNETFILTER_VERSION=\"$(NETFILTER_VERSION)\" #-g #-pg # -DIPTC_DEBUG
+CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -Iinclude/ -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\" #-g -DDEBUG #-pg # -DIPTC_DEBUG
 
 ifdef NO_SHARED_LIBS
 CFLAGS += -DNO_SHARED_LIBS=1
@@ -185,7 +185,7 @@ most-of-pom:
 
 # Rusty's distro magic.
 .PHONY: distrib
-distrib: check distclean delrelease $(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2 diff md5sums # nowhitespace
+distrib: check distclean delrelease $(RELEASE_DIR)/iptables-$(IPTABLES_VERSION).tar.bz2 diff md5sums # nowhitespace
 
 # Makefile must not define:
 # -g -pg -DIPTC_DEBUG
@@ -199,21 +199,21 @@ nowhitespace:
 
 .PHONY: delrelease
 delrelease:
-       rm -f $(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2
+       rm -f $(RELEASE_DIR)/iptables-$(IPTABLES_VERSION).tar.bz2
 
-$(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2:
-       cd .. && ln -sf userspace iptables-$(NETFILTER_VERSION) && tar cvf - --exclude CVS iptables-$(NETFILTER_VERSION)/. | bzip2 -9 > $@ && rm iptables-$(NETFILTER_VERSION)
+$(RELEASE_DIR)/iptables-$(IPTABLES_VERSION).tar.bz2:
+       cd .. && ln -sf userspace iptables-$(IPTABLES_VERSION) && tar cvf - --exclude CVS iptables-$(IPTABLES_VERSION)/. | bzip2 -9 > $@ && rm iptables-$(IPTABLES_VERSION)
 
 .PHONY: diff
-diff: $(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2
+diff: $(RELEASE_DIR)/iptables-$(IPTABLES_VERSION).tar.bz2
        @mkdir /tmp/diffdir
-       @cd /tmp/diffdir && tar -x --bzip2 -f $(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2
-       @set -e; cd /tmp/diffdir; tar -x --bzip2 -f $(RELEASE_DIR)/iptables-$(OLD_NETFILTER_VERSION).tar.bz2; echo Creating patch-iptables-$(OLD_NETFILTER_VERSION)-$(NETFILTER_VERSION).bz2; diff -urN iptables-$(OLD_NETFILTER_VERSION) iptables-$(NETFILTER_VERSION) | bzip2 -9 > $(RELEASE_DIR)/patch-iptables-$(OLD_NETFILTER_VERSION)-$(NETFILTER_VERSION).bz2
+       @cd /tmp/diffdir && tar -x --bzip2 -f $(RELEASE_DIR)/iptables-$(IPTABLES_VERSION).tar.bz2
+       @set -e; cd /tmp/diffdir; tar -x --bzip2 -f $(RELEASE_DIR)/iptables-$(OLD_IPTABLES_VERSION).tar.bz2; echo Creating patch-iptables-$(OLD_IPTABLES_VERSION)-$(IPTABLES_VERSION).bz2; diff -urN iptables-$(OLD_IPTABLES_VERSION) iptables-$(IPTABLES_VERSION) | bzip2 -9 > $(RELEASE_DIR)/patch-iptables-$(OLD_IPTABLES_VERSION)-$(IPTABLES_VERSION).bz2
        @rm -rf /tmp/diffdir
 
 .PHONY: md5sums
 md5sums:
-       cd $(RELEASE_DIR)/ && md5sum patch-iptables-*-$(NETFILTER_VERSION).bz2 iptables-$(NETFILTER_VERSION).tar.bz2
+       cd $(RELEASE_DIR)/ && md5sum patch-iptables-*-$(IPTABLES_VERSION).bz2 iptables-$(IPTABLES_VERSION).tar.bz2
 
 # $(wildcard) fails wierdly with make v.3.78.1.
 include $(shell echo */Makefile)
index 529720f8e140994a9c60241c1b11d1804fbc38a7..f4d87aac1f3d8b75ab6100a25a3995e971f18c16 100644 (file)
@@ -22,7 +22,7 @@ help(void)
 " --log-tcp-sequence           Log TCP sequence numbers.\n\n"
 " --log-tcp-options            Log TCP options.\n\n"
 " --log-ip-options             Log IP options.\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -244,7 +244,7 @@ static
 struct ip6tables_target log
 = { NULL,
     "LOG",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_log_info)),
     IP6T_ALIGN(sizeof(struct ip6t_log_info)),
     &help,
index 6d2b1031f9c4ae15cd2a6dab2a6851ffdc89a78e..6062a391ca81df35158f39b3f40837e4286eeea8 100644 (file)
@@ -21,7 +21,7 @@ help(void)
 "MARK target v%s options:\n"
 "  --set-mark value                   Set nfmark value\n"
 "\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -104,7 +104,7 @@ static
 struct ip6tables_target mark
 = { NULL,
     "MARK",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_mark_target_info)),
     IP6T_ALIGN(sizeof(struct ip6t_mark_target_info)),
     &help,
index a145f44990b4e404522f50c6ceb996be0294fdfb..b8b973241c1901af83aaba45207242be7a1e8bae 100644 (file)
@@ -154,7 +154,7 @@ static void save(const struct ip6t_ip6 *ip,
 struct ip6tables_target reject
 = { NULL,
     "REJECT",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_reject_info)),
     IP6T_ALIGN(sizeof(struct ip6t_reject_info)),
     &help,
index e778557cab2b4cd852a0740332681307327bc34d..aced51bbb9f8e41e690e362cc033a66874af3408 100644 (file)
@@ -17,7 +17,7 @@ help(void)
 " --ahspi [!] spi[:spi]         match spi (range)\n"
 " --ahlen [!] length            total length of this header\n"
 " --ahres                       check the reserved filed, too\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -219,7 +219,7 @@ static
 struct ip6tables_match ah
 = { NULL,
     "ah",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_ah)),
     IP6T_ALIGN(sizeof(struct ip6t_ah)),
     &help,
index cd1f23b5440369b1c1768178847fd24b8d5d09cd..8ec391207c4b05cf6b46fface2022696c29e3103 100644 (file)
@@ -26,7 +26,7 @@ help(void)
 " --%s-len [!] length           total length of this header\n"
 " --%s-opts TYPE[:LEN][,TYPE[:LEN]...] \n"
 "                               Options and its length (list, max: %d)\n", 
-UNAME , NETFILTER_VERSION, LNAME, LNAME, IP6T_OPTS_OPTSNR);
+UNAME , IPTABLES_VERSION, LNAME, LNAME, IP6T_OPTS_OPTSNR);
 }
 
 #if HOPBYHOP
@@ -266,7 +266,7 @@ struct ip6tables_match optstruct
 #else
     "dst",
 #endif
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_opts)),
     IP6T_ALIGN(sizeof(struct ip6t_opts)),
     &help,
index 973338f8b7df7efea0e4f394fddc324c91113f59..3b47102623cde0fc8c0e5018e4ec338f65bc1eeb 100644 (file)
@@ -15,7 +15,7 @@ help(void)
        printf(
 "ESP v%s options:\n"
 " --espspi [!] spi[:spi]        match spi (range)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -171,7 +171,7 @@ static
 struct ip6tables_match esp
 = { NULL,
     "esp",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_esp)),
     IP6T_ALIGN(sizeof(struct ip6t_esp)),
     &help,
index 97717980007e8281bfba6792a3f32c229a5891f4..56dca06c713234010c7a0438038051b1bc117c3b 100644 (file)
@@ -19,7 +19,7 @@ help(void)
 "eui64 v%s options:\n"
 " This module hasn't got any option\n"
 " This module checks for EUI64 IPv6 addresses\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -69,7 +69,7 @@ static
 struct ip6tables_match eui64
 = { NULL,
     "eui64",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(int)),
     IP6T_ALIGN(sizeof(int)),
     &help,
index f3882018bc03f9b4b96db7175f000feb5a4d00cd..2cc8a371dbdc743381cb5086139771c8998aff18 100644 (file)
@@ -20,7 +20,7 @@ help(void)
 " --fragfirst                   matches on the first fragment\n"
 " [--fragmore|--fraglast]       there are more fragments or this\n"
 "                               is the last one\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -245,7 +245,7 @@ static
 struct ip6tables_match frag
 = { NULL,
     "frag",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_frag)),
     IP6T_ALIGN(sizeof(struct ip6t_frag)),
     &help,
index a10d6a4b8f586b92e2f3193b97a390e32273a6c8..43b431630b7aa3d27600ec16274602e635b053f9 100644 (file)
@@ -26,7 +26,7 @@ help(void)
 " --%s-len [!] length           total length of this header\n"
 " --%s-opts TYPE[:LEN][,TYPE[:LEN]...] \n"
 "                               Options and its length (list, max: %d)\n", 
-UNAME , NETFILTER_VERSION, LNAME, LNAME, IP6T_OPTS_OPTSNR);
+UNAME , IPTABLES_VERSION, LNAME, LNAME, IP6T_OPTS_OPTSNR);
 }
 
 #if HOPBYHOP
@@ -266,7 +266,7 @@ struct ip6tables_match optstruct
 #else
     "dst",
 #endif
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_opts)),
     IP6T_ALIGN(sizeof(struct ip6t_opts)),
     &help,
index 97027da15275bb79a8307f9369528f37b5b20383..52d7871ac683bc2cb908d339d29dd769932c99dd 100644 (file)
@@ -81,7 +81,7 @@ help(void)
 "ICMPv6 v%s options:\n"
 " --icmpv6-type [!] typename   match icmpv6 type\n"
 "                              (or numeric type or type/code)\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
        print_icmpv6types();
 }
 
@@ -260,7 +260,7 @@ static void final_check(unsigned int flags)
 static struct ip6tables_match icmpv6
 = { NULL,
     "icmp6",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_icmp)),
     IP6T_ALIGN(sizeof(struct ip6t_icmp)),
     &help,
index 6e4986de543badadeda03aa178a638efc588dd56..3437e228f2d05554c5053253421a890d9b176e09 100644 (file)
@@ -145,7 +145,7 @@ help(void)
 "                                ipv6-frag,ah,esp,ipv6-nonxt,protocol\n"
 "                       numbers: 0,60,43,44,51,50,59\n"
 "--soft                    The header CONTAINS the specified extensions\n",
-       NETFILTER_VERSION);
+       IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -301,7 +301,7 @@ static
 struct ip6tables_match ipv6header
 = { NULL,
     "ipv6header",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_ipv6header_info)),
     IP6T_ALIGN(sizeof(struct ip6t_ipv6header_info)),
     &help,
index fe65115fe00d3645fb3b7fdad9c117b651a7262c..7cb5da76cf470a0a5a67ddfa08f5322051680695 100644 (file)
@@ -17,7 +17,7 @@ help(void)
 "length v%s options:\n"
 "[!] --length length[:length]    Match packet length against value or range\n"
 "                                of values (inclusive)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 
 }
   
@@ -143,7 +143,7 @@ save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
 struct ip6tables_match length
 = { NULL,
     "length",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_length_info)),
     IP6T_ALIGN(sizeof(struct ip6t_length_info)),
     &help,
index 4a0dc08c356226efb355009dd7834ad2848ad070..9516252b5005e380a903e74eb840d587405087ed 100644 (file)
@@ -26,7 +26,7 @@ help(void)
 "                                [Packets per second unless followed by \n"
 "                                /sec /minute /hour /day postfixes]\n"
 "--limit-burst number          number to match in a burst, default %u\n"
-"\n", NETFILTER_VERSION, IP6T_LIMIT_BURST);
+"\n", IPTABLES_VERSION, IP6T_LIMIT_BURST);
 }
 
 static struct option opts[] = {
@@ -181,7 +181,7 @@ static
 struct ip6tables_match limit
 = { NULL,
     "limit",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_rateinfo)),
     offsetof(struct ip6t_rateinfo, prev),
     &help,
index 64c62f235ae4e6986299fabbb3a45f5859b9c5e2..8fbb8190b16cccc9db31b990bfe1026d24eadf11 100644 (file)
@@ -20,7 +20,7 @@ help(void)
 "MAC v%s options:\n"
 " --mac-source [!] XX:XX:XX:XX:XX:XX\n"
 "                              Match source MAC address\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -127,7 +127,7 @@ static
 struct ip6tables_match mac
 = { NULL,
     "mac",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_mac_info)),
     IP6T_ALIGN(sizeof(struct ip6t_mac_info)),
     &help,
index 7a05d0380562b784c82d19edbe6700255c15f4cd..4aa606e30151b93ddc9261f748ef9b1ab15d15e7 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "MARK match v%s options:\n"
 "[!] --mark value[/mask]         Match nfmark value with optional mask\n"
 "\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -111,7 +111,7 @@ static
 struct ip6tables_match mark
 = { NULL,
     "mark",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_mark_info)),
     IP6T_ALIGN(sizeof(struct ip6t_mark_info)),
     &help,
index 16bbcf8e366c9c4238e0b69f71cb5de72def65c9..4847a9df9f05a637cb58ac46f7342ad704ca794d 100644 (file)
@@ -21,7 +21,7 @@ help(void)
 "                              match destination port(s)\n"
 " --ports port[,port,port]\n"
 "                              match both source and destination port(s)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -246,7 +246,7 @@ static
 struct ip6tables_match multiport
 = { NULL,
     "multiport",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_multiport)),
     IP6T_ALIGN(sizeof(struct ip6t_multiport)),
     &help,
index 8b511d9ebd04670b037e1cc5951d663f1a73260e..ce343589ba421ead26e953d89a717da79e9aeacd 100644 (file)
@@ -21,7 +21,7 @@ help(void)
 "[!] --pid-owner processid  Match local pid\n"
 "[!] --sid-owner sessionid  Match local sid\n"
 "\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -199,7 +199,7 @@ static
 struct ip6tables_match owner
 = { NULL,
     "owner",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_owner_info)),
     IP6T_ALIGN(sizeof(struct ip6t_owner_info)),
     &help,
index a12270ee5064ddfa8ceafc8e3b6b523ec03c206a..b407be13e713935ad4203991c5f67c0d32f49401 100644 (file)
@@ -26,7 +26,7 @@ help(void)
 " --rt-0-res                    check the reserved filed, too (type 0)\n"
 " --rt-0-addrs ADDR[,ADDR...]   Type=0 addresses (list, max: %d)\n"
 " --rt-0-not-strict             List of Type=0 addresses not a strict list\n",
-NETFILTER_VERSION, IP6T_RT_HOPS);
+IPTABLES_VERSION, IP6T_RT_HOPS);
 }
 
 static struct option opts[] = {
@@ -345,7 +345,7 @@ static
 struct ip6tables_match rt
 = { NULL,
     "rt",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_rt)),
     IP6T_ALIGN(sizeof(struct ip6t_rt)),
     &help,
index 79414483db080a1e2b75c012baf3dea9e41f82d6..b8a0ce7959b609342b54b1a598c551bfbaa790d1 100644 (file)
@@ -13,7 +13,7 @@ help(void)
 {
        printf(
 "Standard v%s options:\n"
-"(If target is DROP, ACCEPT, RETURN or nothing)\n", NETFILTER_VERSION);
+"(If target is DROP, ACCEPT, RETURN or nothing)\n", IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -51,7 +51,7 @@ static
 struct ip6tables_target standard
 = { NULL,
     "standard",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(int)),
     IP6T_ALIGN(sizeof(int)),
     &help,
index 367a29f1ca6a96a67ed3c6867162375c1a25ffcb..2eb33dd05fb93606397f0e05d0df9e165a4cb4fd 100644 (file)
@@ -24,7 +24,7 @@ help(void)
 " --dport ...\n"
 "                              match destination port(s)\n"
 " --tcp-option [!] number       match if TCP option set\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -424,7 +424,7 @@ static
 struct ip6tables_match tcp
 = { NULL,
     "tcp",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_tcp)),
     IP6T_ALIGN(sizeof(struct ip6t_tcp)),
     &help,
index 5378e592495aec266a68a988cafd3048e106f901..fb0505e8eb463fa1ebe9fba36c27ec43c3909ac9 100644 (file)
@@ -19,7 +19,7 @@ help(void)
 " --destination-port [!] port[:port]\n"
 " --dport ...\n"
 "                              match destination port(s)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -233,7 +233,7 @@ static
 struct ip6tables_match udp
 = { NULL,
     "udp",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IP6T_ALIGN(sizeof(struct ip6t_udp)),
     IP6T_ALIGN(sizeof(struct ip6t_udp)),
     &help,
index 78d5d2d704f301dc8408490a46ae0e2dccbaca6d..7f0b91698ea00a148f9b95edc118fc03f0daddb9 100644 (file)
@@ -18,7 +18,7 @@ help(void)
 "BALANCE v%s options:\n"
 " --to-destination <ipaddr>-<ipaddr>\n"
 "                              Addresses to map destination to.\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -135,7 +135,7 @@ static
 struct iptables_target balance
 = { NULL,
     "BALANCE",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     &help,
index 824c1de0a209eaa7f57a0907d05ffa3bc71bead9..2e06dda0df772ace34adcd2ff443383141fdd7e0 100644 (file)
@@ -25,7 +25,7 @@ help(void)
 "  --save-mark                   Save the packet nfmark on the connection\n"
 "  --restore-mark                Restore saved nfmark value\n"
 "\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -149,7 +149,7 @@ save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
 struct iptables_target mark
 = { NULL,
     "CONNMARK",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_connmark_target_info)),
     IPT_ALIGN(sizeof(struct ipt_connmark_target_info)),
     &help,
index 279f76e8c8eda1672cae3054495ea705d841e78b..9b826758d7b3964d37afc9c323869d49602ab554 100644 (file)
@@ -25,7 +25,7 @@ help(void)
 " --to-destination <ipaddr>[-<ipaddr>][:port-port]\n"
 "                              Address to map destination to.\n"
 "                              (You can use this more than once)\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -228,7 +228,7 @@ static
 struct iptables_target dnat
 = { NULL,
     "DNAT",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     &help,
index 19b765ee47b47ba26a3d4bbd6879c1a5f100d70d..e06c73614b862c470e1fa08f655b99090f12b241 100644 (file)
@@ -184,7 +184,7 @@ static
 struct iptables_target dscp
 = { NULL,
     "DSCP",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_DSCP_info)),
     IPT_ALIGN(sizeof(struct ipt_DSCP_info)),
     &help,
index ddab35c399654bbc4ba199969ffbbb8c07ccc769..a883b3fb38a75e9214dede82e22aff8cd426dcd3 100644 (file)
@@ -6,7 +6,7 @@
  *
  * libipt_ECN.c borrowed heavily from libipt_DSCP.c
  *
- * $Id: libipt_ECN.c,v 1.3 2002/04/10 13:12:53 laforge Exp $
+ * $Id: libipt_ECN.c,v 1.5 2002/05/29 12:43:34 laforge Exp $
  */
 #include <stdio.h>
 #include <string.h>
@@ -30,7 +30,7 @@ static void help(void)
 "  --ecn-ip-ect                        Set the IPv4 ECT codepoint (0 to 3)\n"
 "  --ecn-tcp-cwr               Set the IPv4 CWR bit (0 or 1)\n"
 "  --ecn-tcp-ece               Set the IPv4 CWR bit (0 or 1)\n",
-               NETFILTER_VERSION, NETFILTER_VERSION
+               IPTABLES_VERSION, IPTABLES_VERSION
 );
 }
 
@@ -157,7 +157,7 @@ static
 struct iptables_target ecn
 = { NULL,
     "ECN",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_ECN_info)),
     IPT_ALIGN(sizeof(struct ipt_ECN_info)),
     &help,
index 2e3771b87a9fc4cb8c51e35d7e1d9af07240af92..3ff2d5aad257884213f3505edecf46b41355e59c 100644 (file)
@@ -116,7 +116,7 @@ static
 struct iptables_target ftos
 = { NULL,
     "FTOS",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_FTOS_info)),
     IPT_ALIGN(sizeof(struct ipt_FTOS_info)),
     &help,
index 59cbf190dd39d41485ebe46af133ba71e9ede649..92452f9c8e7c3fb2d768ef73a71c1d0cd7096caf 100644 (file)
@@ -21,7 +21,7 @@ static void init(struct ipt_entry_target *t, unsigned int *nfcache)
 static void help(void) 
 {
        printf("IPV4OPTSSTRIP v%s target takes no option !! Make sure you use it in the mangle table.\n",
-              NETFILTER_VERSION);
+              IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -63,7 +63,7 @@ static
 struct iptables_target IPV4OPTSSTRIP
 = { NULL,
     "IPV4OPTSSTRIP",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(0),
     IPT_ALIGN(0),
     &help,
index 1445f08a7b751b1454e2e47a133e4f6eeb3b6498..66028a6461ccec95b9165deac5fd932e4868e859 100644 (file)
@@ -22,7 +22,7 @@ help(void)
 " --log-tcp-sequence           Log TCP sequence numbers.\n\n"
 " --log-tcp-options            Log TCP options.\n\n"
 " --log-ip-options             Log IP options.\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -244,7 +244,7 @@ static
 struct iptables_target log
 = { NULL,
     "LOG",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_log_info)),
     IPT_ALIGN(sizeof(struct ipt_log_info)),
     &help,
index 6d4c41eabc21765883f87191123e99c457ff1bf7..93570d67d45d0e4b310dc838e0c3f48c6123fd22 100644 (file)
@@ -21,7 +21,7 @@ help(void)
 "MARK target v%s options:\n"
 "  --set-mark value                   Set nfmark value\n"
 "\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -104,7 +104,7 @@ static
 struct iptables_target mark
 = { NULL,
     "MARK",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_mark_target_info)),
     IPT_ALIGN(sizeof(struct ipt_mark_target_info)),
     &help,
index cbf5ba1a1788e55a9e6b81dd8e1f19583b8f96c3..2d4ee99d54f08261d672721b5e4862352349d5e6 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "MASQUERADE v%s options:\n"
 " --to-ports <port>[-<port>]\n"
 "                              Port (range) to map to.\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -150,7 +150,7 @@ static
 struct iptables_target masq
 = { NULL,
     "MASQUERADE",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     &help,
index 632e9548105760a7fc910d763d54d2a4567e0344..b5996fa72a7410ce17b2545b7c2d941ded6be720 100644 (file)
@@ -13,7 +13,7 @@ help(void)
 {
        printf(
 "MIRROR target v%s takes no options\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -45,7 +45,7 @@ static
 struct iptables_target mirror
 = { NULL,
     "MIRROR",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(0),
     IPT_ALIGN(0),
     &help,
index 7855d997212d8702f3b31cfd70772de434f4e8df..9e71990365880beacc050dc70502c53706132e38 100644 (file)
@@ -16,7 +16,7 @@ static void help(void)
                " --nldrop              Drop the packet too\n"
                " --nlmark <number>     Mark the packet\n"
                " --nlsize <bytes>      Limit packet size\n",
-              NETFILTER_VERSION);
+              IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -139,7 +139,7 @@ print(const struct ipt_ip *ip,
 static
 struct iptables_target netlink = { NULL,
        "NETLINK",
-       NETFILTER_VERSION,
+       IPTABLES_VERSION,
        IPT_ALIGN(sizeof(struct ipt_nldata)),
        IPT_ALIGN(sizeof(struct ipt_nldata)),
        &help,
index 91241574493bcb580c333cfeb899282ef62e5b00..a45acb90015f8ff3d6317865a108536d767b8ef0 100644 (file)
@@ -25,7 +25,7 @@ help(void)
        printf(MODULENAME" v%s options:\n"
               "  --%s address[/mask]\n"
               "                                Network address to map to.\n\n",
-              NETFILTER_VERSION, opts[0].name);
+              IPTABLES_VERSION, opts[0].name);
 }
 
 static u_int32_t
@@ -183,7 +183,7 @@ static
 struct iptables_target target_module
 = { NULL,
     MODULENAME,
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     &help,
index 62697710f1270dc9003d0abcf7d9617f94887245..1fef3cb9e92096f017614d0170fa5c2510c32154 100644 (file)
@@ -28,7 +28,7 @@ help(void)
 " --add-dstip <pool>\n"
 " --del-dstip <pool>\n"
 "                              add/del src/dst IP from pool.\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -134,7 +134,7 @@ static
 struct iptables_target ipt_pool_target
 = { NULL,
     "POOL",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_pool_info)),
     IPT_ALIGN(sizeof(struct ipt_pool_info)),
     &help,
index ca029c8670d8f0307b3811824069db4955316b39..052b533c4e5c43b19cfe85a30683017297ab0ba9 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "REDIRECT v%s options:\n"
 " --to-ports <port>[-<port>]\n"
 "                              Port (range) to map to.\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -151,7 +151,7 @@ static
 struct iptables_target redir
 = { NULL,
     "REDIRECT",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     &help,
index 2403befc5445bad9a2f7118a8e100d0b64b1c5a8..ba63a0aae5d984713037b0736b6f53c214aec88d 100644 (file)
@@ -160,7 +160,7 @@ static
 struct iptables_target reject
 = { NULL,
     "REJECT",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_reject_info)),
     IPT_ALIGN(sizeof(struct ipt_reject_info)),
     &help,
index 37c75d8947f5d1297ad56ca1e643195c3bf58867..e9c42a80e6edc2b55291bc7b27552c954529fa49 100644 (file)
@@ -22,7 +22,7 @@ help(void)
 " --nodst\n"
 "                              Don't use destination-ip in\n"
 "                                         source selection\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -192,7 +192,7 @@ static
 struct iptables_target same
 = { NULL,
     "SAME",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_same_info)),
     IPT_ALIGN(sizeof(struct ipt_same_info)),
     &help,
index 9493a149c8398a12d78408ca558b6f547ba9eb8f..d909c2a18d6f111ecb25e66fd3c9c2ccdb0e7aa6 100644 (file)
@@ -25,7 +25,7 @@ help(void)
 " --to-source <ipaddr>[-<ipaddr>][:port-port]\n"
 "                              Address to map source to.\n"
 "                              (You can use this more than once)\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -228,7 +228,7 @@ static
 struct iptables_target snat
 = { NULL,
     "SNAT",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
     &help,
index ebc10a7998871c1cfc476a4ca026745fbe996d92..6892b5267d0c7f684af7ec7a84694570c2acdef2 100644 (file)
@@ -24,7 +24,7 @@ help(void)
 "TCPMSS target v%s mutually-exclusive options:\n"
 "  --set-mss value               explicitly set MSS option to specified value\n"
 "  --clamp-mss-to-pmtu           automatically clamp MSS value to (path_MTU - 40)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -117,7 +117,7 @@ static
 struct iptables_target mss
 = { NULL,
     "TCPMSS",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_tcpmss_info)),
     IPT_ALIGN(sizeof(struct ipt_tcpmss_info)),
     &help,
index bc3cf7606b6853a2d6c7176da25d0e57c54d5eb0..87c38161d8a603f737efb498679cdba368457d48 100644 (file)
@@ -37,7 +37,7 @@ help(void)
 "TOS target v%s options:\n"
 "  --set-tos value                   Set Type of Service field to one of the\n"
 "                                following numeric or descriptive values:\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 
        for (i = 0; i < sizeof(TOS_values)/sizeof(struct TOS_value);i++)
                printf("                                     %s %u (0x%02x)\n",
@@ -157,7 +157,7 @@ static
 struct iptables_target tos
 = { NULL,
     "TOS",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_tos_target_info)),
     IPT_ALIGN(sizeof(struct ipt_tos_target_info)),
     &help,
index e4d56b362da3acfe8adf8040d6317e86a469a082..e6f8a0c3ae4ab2f8ed0bf65cb269d151fd7a7eb2 100644 (file)
@@ -1,7 +1,7 @@
 /* Shared library add-on to iptables for the TTL target
  * (C) 2000 by Harald Welte <laforge@gnumonks.org>
  *
- * $Id: libipt_TTL.c,v 1.4 2002/02/25 11:25:41 laforge Exp $
+ * $Id: libipt_TTL.c,v 1.5 2002/03/14 11:35:58 laforge Exp $
  *
  * This program is distributed under the terms of GNU GPL
  */
@@ -27,7 +27,7 @@ static void help(void)
 "  --ttl-set value             Set TTL to <value>\n"
 "  --ttl-dec value             Decrement TTL by <value>\n"
 "  --ttl-inc value             Increment TTL by <value>\n"
-, NETFILTER_VERSION);
+, IPTABLES_VERSION);
 }
 
 static int parse(int c, char **argv, int invert, unsigned int *flags,
@@ -146,7 +146,7 @@ static struct option opts[] = {
 static
 struct iptables_target TTL = { NULL, 
        "TTL",
-       NETFILTER_VERSION,
+       IPTABLES_VERSION,
        IPT_ALIGN(sizeof(struct ipt_TTL_info)),
        IPT_ALIGN(sizeof(struct ipt_TTL_info)),
        &help,
index 6a9c3420b12c757f8f8b0030c4a7287050b00a58..ddcc59d19a36495812597c88923e6082749ff60e 100644 (file)
@@ -43,7 +43,7 @@ static void help(void)
               " --ulog-cprange size            Bytes of each packet to be passed\n"
               " --ulog-qthreshold              Threshold of in-kernel queue\n"
               " --ulog-prefix prefix           Prefix log messages with this prefix.\n\n",
-              NETFILTER_VERSION);
+              IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -190,7 +190,7 @@ print(const struct ipt_ip *ip,
 static
 struct iptables_target ulog = { NULL,
        "ULOG",
-       NETFILTER_VERSION,
+       IPTABLES_VERSION,
        IPT_ALIGN(sizeof(struct ipt_ulog_info)),
        IPT_ALIGN(sizeof(struct ipt_ulog_info)),
        &help,
index 1b139c272070a7cf07e917c039d6705a9e6314fd..1e583989a9a472cc86874a9667fc8cec55bdbedd 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "AH v%s options:\n"
 " --ahspi [!] spi[:spi]\n"
 "                              match spi (range)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -172,7 +172,7 @@ static
 struct iptables_match ah
 = { NULL,
     "ah",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_ah)),
     IPT_ALIGN(sizeof(struct ipt_ah)),
     &help,
index a9a0f378fb2c08b224619f90408887c735c8df77..f0df45383e4c2e6fc031339ff5267289d8c4b3ca 100644 (file)
@@ -17,7 +17,7 @@ help(void)
 "iplimit v%s options:\n"
 "[!] --iplimit-above n         match if the number of existing tcp connections is (not) above n\n"
 " --iplimit-mask n             group hosts using mask\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -114,7 +114,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
 
 static struct iptables_match iplimit = {
        name:           "iplimit",
-       version:        NETFILTER_VERSION,
+       version:        IPTABLES_VERSION,
        size:           IPT_ALIGN(sizeof(struct ipt_iplimit_info)),
        userspacesize:  offsetof(struct ipt_iplimit_info,data),
        help:           help,
index 005050fa8d134b60e8c9119bfc9beb99c88cac99..6371b4eb3e1b1b283b8704ccc44d708961b636f8 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "CONNMARK match v%s options:\n"
 "[!] --mark value[/mask]         Match nfmark value with optional mask\n"
 "\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -110,7 +110,7 @@ save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
 struct iptables_match mark
 = { NULL,
     "connmark",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_connmark_info)),
     IPT_ALIGN(sizeof(struct ipt_connmark_info)),
     &help,
index 859d3688bd97fca1674d720d6918b12f8603b0ea..f190a3bec8777da7394be4705f0eeb261f65ca75 100644 (file)
@@ -34,7 +34,7 @@ help(void)
 "                              Status(es) to match\n"
 " [!] --ctexpire time[:time]   Match remaining lifetime in seconds against\n"
 "                              value or range of values (inclusive)\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
 }
 
 
@@ -491,7 +491,7 @@ static
 struct iptables_match conntrack
 = { NULL,
     "conntrack",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_conntrack_info)),
     IPT_ALIGN(sizeof(struct ipt_conntrack_info)),
     &help,
index db380ceaf515da22f61d485533f73c064ad9d516..837881549a0bb1471884a6d21648d1ce62a4bd56 100644 (file)
@@ -30,7 +30,7 @@ static void help(void)
 "DSCP match v%s options\n"
 "[!] --dscp value              Match DSCP codepoint with numerical value\n"
 "                              This value can be in decimal (ex: 32)\n"
-"                              or in hex (ex: 0x20)\n", NETFILTER_VERSION
+"                              or in hex (ex: 0x20)\n", IPTABLES_VERSION
 );
 }
 
@@ -128,7 +128,7 @@ static
 struct iptables_match dscp
 = { NULL,
     "dscp",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_dscp_info)),
     IPT_ALIGN(sizeof(struct ipt_dscp_info)),
     &help,
index 8804495a3f3aab2a692b79e4e2267e5c45a3c4af..531fdd112ad389274f1be8bff3d7491fcd7fc17d 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "ESP v%s options:\n"
 " --espspi [!] spi[:spi]\n"
 "                              match spi (range)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -172,7 +172,7 @@ static
 struct iptables_match esp
 = { NULL,
     "esp",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_esp)),
     IPT_ALIGN(sizeof(struct ipt_esp)),
     &help,
index 92ade9333c9c37f33fa9a56844d7d5cc0edbcf08..8c59e2a66ccbe62dc634559da46c9b39a8b30688 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "helper match v%s options:\n"
 "[!] --helper value         Match helper value\n"
 "\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -90,7 +90,7 @@ static
 struct iptables_match helper
 = { NULL,
     "helper",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_helper_info)),
     IPT_ALIGN(sizeof(struct ipt_helper_info)),
     &help,
index 98098fa45a6a46e3991cb8428d47ffea7e46801c..1cfcb5b44ebf409429454dbcb8000b77abfb65f7 100644 (file)
@@ -96,7 +96,7 @@ help(void)
 "ICMP v%s options:\n"
 " --icmp-type [!] typename     match icmp type\n"
 "                              (or numeric type or type/code)\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
        print_icmptypes();
 }
 
@@ -276,7 +276,7 @@ static
 struct iptables_match icmp
 = { NULL,
     "icmp",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_icmp)),
     IPT_ALIGN(sizeof(struct ipt_icmp)),
     &help,
index c7bd87689b3ccdcf02154bcfdc8c7d48f78835a9..2aec10be2a0a1f3767df8d5df76db3cbb44c2088 100644 (file)
@@ -21,7 +21,7 @@ help(void)
 "  [!] --ts      (match timestamp flag)\n\n"
 "  [!] --ra      (match router-alert option)\n\n"
 "  [!] --any-opt (match any option or no option at all if used with '!')\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -303,7 +303,7 @@ static
 struct iptables_match ipv4options_struct
 = { NULL,
     "ipv4options",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_ipv4options_info)),
     IPT_ALIGN(sizeof(struct ipt_ipv4options_info)),
     &help,
index cd5a6a8768adeaddd2efcf564ca8609a8b8c7999..a61ce672140294d57307193d641d214b2b36d85a 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "length v%s options:\n"
 "[!] --length length[:length]    Match packet length against value or range\n"
 "                                of values (inclusive)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 
 }
   
@@ -142,7 +142,7 @@ static
 struct iptables_match length
 = { NULL,
     "length",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_length_info)),
     IPT_ALIGN(sizeof(struct ipt_length_info)),
     &help,
index 28395472c0301e3eea07f7d92b1e231e772291b8..af381fa38b135adf8c59fd1c00b2c3427742920a 100644 (file)
@@ -26,7 +26,7 @@ help(void)
 "                                [Packets per second unless followed by \n"
 "                                /sec /minute /hour /day postfixes]\n"
 "--limit-burst number          number to match in a burst, default %u\n"
-"\n", NETFILTER_VERSION, IPT_LIMIT_BURST);
+"\n", IPTABLES_VERSION, IPT_LIMIT_BURST);
 }
 
 static struct option opts[] = {
@@ -181,7 +181,7 @@ static
 struct iptables_match limit
 = { NULL,
     "limit",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_rateinfo)),
     offsetof(struct ipt_rateinfo, prev),
     &help,
index 5779e8b649384cb188ce3818a96f5e638f8aef4c..e50a887ccf41cb42842bbc912dd9928757eb73ee 100644 (file)
@@ -20,7 +20,7 @@ help(void)
 "MAC v%s options:\n"
 " --mac-source [!] XX:XX:XX:XX:XX:XX\n"
 "                              Match source MAC address\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -127,7 +127,7 @@ static
 struct iptables_match mac
 = { NULL,
     "mac",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_mac_info)),
     IPT_ALIGN(sizeof(struct ipt_mac_info)),
     &help,
index 1c86fd7ab8bd8cf0bfc4f5f3ed8a37fdad58beb8..82e826d5c2dbafafa35869acd25421a429ba311a 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "MARK match v%s options:\n"
 "[!] --mark value[/mask]         Match nfmark value with optional mask\n"
 "\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -111,7 +111,7 @@ static
 struct iptables_match mark
 = { NULL,
     "mark",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_mark_info)),
     IPT_ALIGN(sizeof(struct ipt_mark_info)),
     &help,
index 37a1a79b81f9b445ead86fffed864963cc0a97c6..df115832099df52b6b5d7ddde3fd8d43401d886d 100644 (file)
@@ -21,7 +21,7 @@ help(void)
 "                              match destination port(s)\n"
 " --ports port[,port:port,port]\n"
 "                              match both source and destination port(s)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -288,7 +288,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
 struct iptables_match mport
 = { NULL,
     "mport",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_mport)),
     IPT_ALIGN(sizeof(struct ipt_mport)),
     &help,
index 58cf18ca0fc790d614759e68d6db18fcada85a5a..b12f2e9adec2c1b1214f9ee2d493a590b6bf84eb 100644 (file)
@@ -21,7 +21,7 @@ help(void)
 "                              match destination port(s)\n"
 " --ports port[,port,port]\n"
 "                              match both source and destination port(s)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -246,7 +246,7 @@ static
 struct iptables_match multiport
 = { NULL,
     "multiport",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_multiport)),
     IPT_ALIGN(sizeof(struct ipt_multiport)),
     &help,
index d0c4a77596b04b70ab71d6a6ff7d56c46d3058df..7b12e80de768f0462dcf3ffda254d29530adeea1 100644 (file)
@@ -40,7 +40,7 @@ help(void)
 "                                there must be Nth number of --packet\n"
 "                                rules, covering all values between 0 and\n"
 "                                Nth-1 inclusively.\n",
-NETFILTER_VERSION, IPT_NTH_NUM_COUNTERS-1);
+IPTABLES_VERSION, IPT_NTH_NUM_COUNTERS-1);
 }
 
 static struct option opts[] = {
@@ -221,7 +221,7 @@ save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
 struct iptables_match nth
 = { NULL,
     "nth",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_nth_info)),
     IPT_ALIGN(sizeof(struct ipt_nth_info)),
     &help,
index 334c3369e233eb1dd402dc9dfd7911089549e8d5..25e0e9f05c2b32fb80d4f9ffcc1d4a122185376f 100644 (file)
@@ -23,7 +23,7 @@ help(void)
 "[!] --sid-owner sessionid  Match local sid\n"
 "[!] --cmd-owner name       Match local command name\n"
 "\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 #else
        printf(
 "OWNER match v%s options:\n"
@@ -32,7 +32,7 @@ NETFILTER_VERSION);
 "[!] --pid-owner processid  Match local pid\n"
 "[!] --sid-owner sessionid  Match local sid\n"
 "\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 #endif /* IPT_OWNER_COMM */
 }
 
@@ -239,7 +239,7 @@ static
 struct iptables_match owner
 = { NULL,
     "owner",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_owner_info)),
     IPT_ALIGN(sizeof(struct ipt_owner_info)),
     &help,
index a0c74b8d82d408d13de550aaf84ba061aefd6ab2..c60cb28bd2ef60d3289fae3bf76b0e20832972b6 100644 (file)
@@ -156,7 +156,7 @@ static
 struct iptables_match pkttype = {
     NULL,
     "pkttype",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_pkttype_info)),
     IPT_ALIGN(sizeof(struct ipt_pkttype_info)),
     &help,
index 4e54f455e260e1b732f2a1d52d917a4062cb80e5..666599de2c5793f54d15d698490dd67f30ef62d0 100644 (file)
@@ -24,7 +24,7 @@ help(void)
 " [!] --srcpool NAME|INDEX\n"
 " [!] --dstpool NAME|INDEX\n"
 "                      Pool index (or name from %s) to match\n"
-"\n", NETFILTER_VERSION, IPPOOL_CONF);
+"\n", IPTABLES_VERSION, IPPOOL_CONF);
 }
 
 static struct option opts[] = {
@@ -126,7 +126,7 @@ static
 struct iptables_match pool
 = { NULL,
     "pool",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_pool_info)),
     IPT_ALIGN(sizeof(struct ipt_pool_info)),
     &help,
index de1fc76c465da57a1f52ed268192f6e669ed3118..201e909ffd9dda8be096b6b4e8084ff7fbe5a895 100644 (file)
@@ -34,7 +34,7 @@ help(void)
 " --psd-delay-threshold  delay       Portscan detection delay threshold\n\n"
 " --psd-lo-ports-weight  lo          Privileged ports weight\n\n"
 " --psd-hi-ports-weight  hi          High ports weight\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -183,7 +183,7 @@ static
 struct iptables_match psd
 = { NULL,
     "psd",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_psd_info)),
     IPT_ALIGN(sizeof(struct ipt_psd_info)),
     &help,
index d95b8a1955eb5e1f74703ef91cd70b9d8a119f90..078f9e352ba1673a4a5f30cf9052574369ffe4ac 100644 (file)
@@ -95,7 +95,7 @@ final_check(unsigned int flags)
 
 struct iptables_match quota = { NULL,
         "quota",
-        NETFILTER_VERSION,
+        IPTABLES_VERSION,
         IPT_ALIGN(sizeof (struct ipt_quota_info)),
         IPT_ALIGN(sizeof (struct ipt_quota_info)),
         &help,
index 19859ebec5b467eb8f22c7c167789842dabb395c..d195ca5c979efef1bce87de5778c6bd3399415d2 100644 (file)
@@ -38,7 +38,7 @@ help(void)
 "  [--average]     percent      The probability in percentage of the match\n"
 "                               If ommited, a probability of 50%% percent is set.\n"
 "                               Percentage must be within : 1 <= percent <= 99.\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -133,7 +133,7 @@ save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
 struct iptables_match rand_match
 = { NULL,
     "random",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_rand_info)),
     IPT_ALIGN(sizeof(struct ipt_rand_info)),
     &help,
index 77e6a3e0afe6f19a833287380c0caed1a9dc5af0..60a38972dad51557d62823800798fa595bb703f3 100644 (file)
@@ -20,7 +20,7 @@ help(void)
 "REALM v%s options:\n"
 " --realm [!] value[/mask]\n"
 "                              Match realm\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -115,7 +115,7 @@ final_check(unsigned int flags)
 struct iptables_match realm
 = { NULL,
     "realm",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_realm_info)),
     IPT_ALIGN(sizeof(struct ipt_realm_info)),
     &help,
index d796d5620d7b9c070f8a10fb19e4d3cd2c9a76ad..5b48cd31dbda1f1c917d8b65b1c6b5dc11c7a00a 100644 (file)
@@ -30,7 +30,7 @@ help(void)
 "                                Useful if you have problems with people spoofing their source address in order\n"
 "                                to DoS you via this module.\n"
 "    --name name                 Name of the recent list to be used.  DEFAULT used if none given.\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 
 }
   
@@ -185,7 +185,7 @@ static
 struct iptables_match recent
 = { NULL,
     "recent",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_recent_info)),
     IPT_ALIGN(sizeof(struct ipt_recent_info)),
     &help,
index c40df4022137b4207dd92c7a0c4bfd888486e7cc..819c8ef68e2d5b9a996bf230fd5ca6f0a3dab5ca 100644 (file)
@@ -9,7 +9,7 @@ help(void)
 {
        printf(
 "record_rpc v%s takes no options\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -56,7 +56,7 @@ static
 struct iptables_match record_rpc
 = { NULL,
     "record_rpc",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(0),
     IPT_ALIGN(0),
     &help,
index c5faf1898a5857426a634422068c103db26ce7ce..d79ad7cfe5aac3cb735e20156b5b3a3a096396f3 100644 (file)
@@ -13,7 +13,7 @@ help(void)
 {
        printf(
 "Standard v%s options:\n"
-"(If target is DROP, ACCEPT, RETURN or nothing)\n", NETFILTER_VERSION);
+"(If target is DROP, ACCEPT, RETURN or nothing)\n", IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -51,7 +51,7 @@ static
 struct iptables_target standard
 = { NULL,
     "standard",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(int)),
     IPT_ALIGN(sizeof(int)),
     &help,
index 0c2b4f8ebeefeea6e5c03c3450a9f65d593cfeab..ac3c0ba3a014f91818dd44a856a0a715106697b3 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "state v%s options:\n"
 " [!] --state [INVALID|ESTABLISHED|NEW|RELATED][,...]\n"
 "                              State(s) to match\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -145,7 +145,7 @@ static
 struct iptables_match state
 = { NULL,
     "state",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_state_info)),
     IPT_ALIGN(sizeof(struct ipt_state_info)),
     &help,
index 96801b314a957ba059d4156ef1f4ac3dbe0f40cc..20613fdcb2ea7bd3b218bd9b81f5ce8c5253668d 100644 (file)
@@ -24,7 +24,7 @@ help(void)
        printf(
 "STRING match v%s options:\n"
 "--string [!] string             Match a string in a packet\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 
        fputc('\n', stdout);
 }
@@ -116,7 +116,7 @@ static
 struct iptables_match string
 = { NULL,
     "string",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_string_info)),
     IPT_ALIGN(sizeof(struct ipt_string_info)),
     &help,
index 85f6d786aa7c8c06110a3510c755f7c84cb8f7cb..acf605016862a84c4d6de1c42614c590f4803307 100644 (file)
@@ -24,7 +24,7 @@ help(void)
 " --dport ...\n"
 "                              match destination port(s)\n"
 " --tcp-option [!] number       match if TCP option set\n\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -423,7 +423,7 @@ static
 struct iptables_match tcp
 = { NULL,
     "tcp",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_tcp)),
     IPT_ALIGN(sizeof(struct ipt_tcp)),
     &help,
index 87353bfe07149909782f4328324e56570f6fc3fe..a2a9c18088db3c7f142528796254bc6dab14c634 100644 (file)
@@ -16,7 +16,7 @@ help(void)
 "tcpmss match v%s options:\n"
 "[!] --mss value[:value]       Match TCP MSS range.\n"
 "                              (only valid for TCP SYN or SYN/ACK packets)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -143,7 +143,7 @@ static
 struct iptables_match tcpmss
 = { NULL,
     "tcpmss",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_tcpmss_match_info)),
     IPT_ALIGN(sizeof(struct ipt_tcpmss_match_info)),
     &help,
index 1ad5058a308c4940a18ef8c8ef613ad6e0f72768..909ca81df7da3b75b2096ec7c18b8be1e1e8ce74 100644 (file)
@@ -21,7 +21,7 @@ help(void)
 "          timestart value : HH:MM\n"
 "          timestop  value : HH:MM\n"
 "          listofdays value: a list of days to apply -> ie. Mon,Tue,Wed,Thu,Fri. Case sensitive\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -295,7 +295,7 @@ static
 struct iptables_match timestruct
 = { NULL,
     "time",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_time_info)),
     IPT_ALIGN(sizeof(struct ipt_time_info)),
     &help,
index 3d4616f60d5483b2efb838177aa8d7ce3e32e9e5..b0cd2e01e14260673c6f92f3404166995f491a41 100644 (file)
@@ -32,7 +32,7 @@ help(void)
 "TOS match v%s options:\n"
 "[!] --tos value                 Match Type of Service field from one of the\n"
 "                                following numeric or descriptive values:\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 
        for (i = 0; i < sizeof(TOS_values)/sizeof(struct TOS_value);i++)
                printf("                                     %s %u (0x%02x)\n",
@@ -155,7 +155,7 @@ static
 struct iptables_match tos
 = { NULL,
     "tos",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_tos_info)),
     IPT_ALIGN(sizeof(struct ipt_tos_info)),
     &help,
index 4ef976433b1d7adec20e6494c4f122b9ca1a2938..799cc56199076f2be41633338ced2700a629ca5f 100644 (file)
@@ -1,7 +1,7 @@
 /* Shared library add-on to iptables to add TTL matching support 
  * (C) 2000 by Harald Welte <laforge@gnumonks.org>
  *
- * $Id: libipt_ttl.c,v 1.4 2002/02/25 11:25:41 laforge Exp $
+ * $Id: libipt_ttl.c,v 1.5 2002/03/14 11:35:58 laforge Exp $
  *
  * This program is released under the terms of GNU GPL */
 
@@ -21,7 +21,7 @@ static void help(void)
 "  --ttl-eq value      Match time to live value\n"
 "  --ttl-lt value      Match TTL < value\n"
 "  --ttl-gt value      Match TTL > value\n"
-, NETFILTER_VERSION);
+, IPTABLES_VERSION);
 }
 
 static void init(struct ipt_entry_match *m, unsigned int *nfcache)
@@ -158,7 +158,7 @@ static
 struct iptables_match ttl = {
        NULL,
        "ttl",
-       NETFILTER_VERSION,
+       IPTABLES_VERSION,
        IPT_ALIGN(sizeof(struct ipt_ttl_info)),
        IPT_ALIGN(sizeof(struct ipt_ttl_info)),
        &help,
index 6b6b99611cbc8e395dc03953900a02a16de0fa56..622fb43659aa39fc04983df2f6d2e9a4b5d6587a 100644 (file)
@@ -19,7 +19,7 @@ help(void)
 " --destination-port [!] port[:port]\n"
 " --dport ...\n"
 "                              match destination port(s)\n",
-NETFILTER_VERSION);
+IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -233,7 +233,7 @@ static
 struct iptables_match udp
 = { NULL,
     "udp",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(sizeof(struct ipt_udp)),
     IPT_ALIGN(sizeof(struct ipt_udp)),
     &help,
index 5e842e937c37fc47fae4010f104e1289c2fa06c9..16cc0a51bac0cf854ee61216b25cc0f405c97760 100644 (file)
@@ -10,7 +10,7 @@ help(void)
 {
        printf(
 "unclean v%s takes no options\n"
-"\n", NETFILTER_VERSION);
+"\n", IPTABLES_VERSION);
 }
 
 static struct option opts[] = {
@@ -45,7 +45,7 @@ static
 struct iptables_match unclean
 = { NULL,
     "unclean",
-    NETFILTER_VERSION,
+    IPTABLES_VERSION,
     IPT_ALIGN(0),
     IPT_ALIGN(0),
     &help,
index d75507d6e7a46acf81e39d567db0a5bfc1b92a78..f4a86975d0e1fe989dd242d7ab3fca2076550283 100644 (file)
@@ -6,7 +6,7 @@
  *     Harald Welte <laforge@gnumonks.org>
  *     Rusty Russell <rusty@linuxcare.com.au>
  *
- * $Id: ip6tables-restore.c,v 1.20 2002/01/17 20:43:10 laforge Exp $
+ * $Id: ip6tables-restore.c,v 1.8 2002/03/03 09:44:31 laforge Exp $
  */
 
 #include <getopt.h>
@@ -116,7 +116,7 @@ int main(int argc, char *argv[])
        const char *modprobe = 0;
 
        program_name = "ip6tables-restore";
-       program_version = NETFILTER_VERSION;
+       program_version = IPTABLES_VERSION;
 
 #ifdef NO_SHARED_LIBS
        init_extensions();
@@ -135,7 +135,7 @@ int main(int argc, char *argv[])
                                break;
                        case 'h':
                                print_usage("ip6tables-restore",
-                                           NETFILTER_VERSION);
+                                           IPTABLES_VERSION);
                                break;
                        case 'n':
                                noflush = 1;
index 4ec1bf41131a5770c21beec490a9b91afd41822c..1a11bff4993192034bd35ffd6364ecdfacc075d8 100644 (file)
@@ -266,7 +266,7 @@ static int do_output(const char *tablename)
                time_t now = time(NULL);
 
                printf("# Generated by ip6tables-save v%s on %s",
-                      NETFILTER_VERSION, ctime(&now));
+                      IPTABLES_VERSION, ctime(&now));
                printf("*%s\n", tablename);
 
                /* Dump out chain names first, 
@@ -321,7 +321,7 @@ int main(int argc, char *argv[])
        int c;
 
        program_name = "ip6tables-save";
-       program_version = NETFILTER_VERSION;
+       program_version = IPTABLES_VERSION;
 
 #ifdef NO_SHARED_LIBS
        init_extensions();
index f0145ce121ae4f1b161607686a227fd79b11dfc1..fd576f6144b24ebb1583fe854c26c7d452685988 100644 (file)
@@ -37,7 +37,7 @@ main(int argc, char *argv[])
        ip6tc_handle_t handle = NULL;
 
        program_name = "ip6tables";
-       program_version = NETFILTER_VERSION;
+       program_version = IPTABLES_VERSION;
 
 #ifdef NO_SHARED_LIBS
        init_extensions();
index 6afd6b1ff6c31aea3987c15501169b2573b11f2f..3abda11f874eeb2df019e669610ceabd953971c3 100644 (file)
@@ -4,7 +4,7 @@
  *
  * This code is distributed under the terms of GNU GPL
  *
- * $Id: iptables-restore.c,v 1.19 2001/12/06 15:06:34 marc Exp $
+ * $Id: iptables-restore.c,v 1.20 2002/01/17 20:43:10 laforge Exp $
  */
 
 #include <getopt.h>
@@ -108,7 +108,7 @@ int main(int argc, char *argv[])
        const char *modprobe = 0;
 
        program_name = "iptables-restore";
-       program_version = NETFILTER_VERSION;
+       program_version = IPTABLES_VERSION;
 
 #ifdef NO_SHARED_LIBS
        init_extensions();
@@ -127,7 +127,7 @@ int main(int argc, char *argv[])
                                break;
                        case 'h':
                                print_usage("iptables-restore",
-                                           NETFILTER_VERSION);
+                                           IPTABLES_VERSION);
                                break;
                        case 'n':
                                noflush = 1;
index e57cd7ccb45fcec38abe54bec3d388e4edf3613c..cb7da40270fad313928efbfed78b0e7de5a22cab 100644 (file)
@@ -259,7 +259,7 @@ static int do_output(const char *tablename)
                time_t now = time(NULL);
 
                printf("# Generated by iptables-save v%s on %s",
-                      NETFILTER_VERSION, ctime(&now));
+                      IPTABLES_VERSION, ctime(&now));
                printf("*%s\n", tablename);
 
                /* Dump out chain names first, 
@@ -314,7 +314,7 @@ int main(int argc, char *argv[])
        int c;
 
        program_name = "iptables-save";
-       program_version = NETFILTER_VERSION;
+       program_version = IPTABLES_VERSION;
 
 #ifdef NO_SHARED_LIBS
        init_extensions();
index 791f9505f60146ad62f744f38312b963acd091d1..1564bc9512a7d0bc102e813e880060464e4fde3b 100644 (file)
@@ -38,7 +38,7 @@ main(int argc, char *argv[])
        iptc_handle_t handle = NULL;
 
        program_name = "iptables";
-       program_version = NETFILTER_VERSION;
+       program_version = IPTABLES_VERSION;
 
 #ifdef NO_SHARED_LIBS
        init_extensions();
index 395b8c74bcf6911d7a184a641d7401550dbc6114..985b9b0d1ef020e4deff2e612b2c9ede63716f77 100644 (file)
@@ -1,4 +1,4 @@
-/* Library which manipulates firewall rules.  Version $Revision: 1.33 $ */
+/* Library which manipulates firewall rules.  Version $Revision: 1.34 $ */
 
 /* Architecture of firewall rules is as follows:
  *
@@ -307,7 +307,7 @@ TC_DUMP_ENTRIES(const TC_HANDLE_T handle)
        CHECK(handle);
 
        printf("libiptc v%s.  %u entries, %u bytes.\n",
-              NETFILTER_VERSION,
+              IPTABLES_VERSION,
               handle->new_number, handle->entries.size);
        printf("Table `%s'\n", handle->info.name);
        printf("Hooks: pre/in/fwd/out/post = %u/%u/%u/%u/%u\n",