[netfilter-cvslog] r4256 - trunk/iptables/extensions

gandalf at netfilter.org gandalf at netfilter.org
Sun Sep 11 19:26:44 CEST 2005


Author: gandalf at netfilter.org
Date: 2005-09-11 19:26:43 +0200 (Sun, 11 Sep 2005)
New Revision: 4256

Modified:
   trunk/iptables/extensions/libipt_connbytes.c
Log:
Make libipt_connbytes.c compile with the ipt_connbytes version that has been merged into the 2.6 kernel


Modified: trunk/iptables/extensions/libipt_connbytes.c
===================================================================
--- trunk/iptables/extensions/libipt_connbytes.c	2005-09-11 17:25:01 UTC (rev 4255)
+++ trunk/iptables/extensions/libipt_connbytes.c	2005-09-11 17:26:43 UTC (rev 4256)
@@ -84,11 +84,11 @@
 		break;
 	case '3':
 		if (!strcmp(optarg, "packets"))
-			sinfo->what = IPT_CONNBYTES_WHAT_PKTS;
+			sinfo->what = IPT_CONNBYTES_PKTS;
 		else if (!strcmp(optarg, "bytes"))
-			sinfo->what = IPT_CONNBYTES_WHAT_BYTES;
+			sinfo->what = IPT_CONNBYTES_BYTES;
 		else if (!strcmp(optarg, "avgpkt"))
-			sinfo->what = IPT_CONNBYTES_WHAT_AVGPKT;
+			sinfo->what = IPT_CONNBYTES_AVGPKT;
 		else
 			exit_error(PARAMETER_PROBLEM,
 				   "Unknown --connbytes-mode `%s'", optarg);
@@ -111,13 +111,13 @@
 static void print_mode(struct ipt_connbytes_info *sinfo)
 {
 	switch (sinfo->what) {
-		case IPT_CONNBYTES_WHAT_PKTS:
+		case IPT_CONNBYTES_PKTS:
 			fputs("packets ", stdout);
 			break;
-		case IPT_CONNBYTES_WHAT_BYTES:
+		case IPT_CONNBYTES_BYTES:
 			fputs("bytes ", stdout);
 			break;
-		case IPT_CONNBYTES_WHAT_AVGPKT:
+		case IPT_CONNBYTES_AVGPKT:
 			fputs("avgpkt ", stdout);
 			break;
 		default:




More information about the netfilter-cvslog mailing list