summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Josefsson <gandalf@wlug.westbo.se>2005-09-11 17:26:43 +0000
committerMartin Josefsson <gandalf@wlug.westbo.se>2005-09-11 17:26:43 +0000
commitae65b529140b07daae87ecffe267ea2fbb395c0c (patch)
tree3aa8ba86b107248701f33dbef9efa728e298f0d9
parenta4749bc725a7468af796bc773b3de0b0c29650f2 (diff)
Make libipt_connbytes.c compile with the ipt_connbytes version that has been merged into the 2.6 kernel
-rw-r--r--extensions/libipt_connbytes.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/libipt_connbytes.c b/extensions/libipt_connbytes.c
index 7274194b..6c3caa3e 100644
--- a/extensions/libipt_connbytes.c
+++ b/extensions/libipt_connbytes.c
@@ -84,11 +84,11 @@ parse(int c, char **argv, int invert, unsigned int *flags,
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 final_check(unsigned int flags)
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: