]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Make libipt_connbytes.c compile with the ipt_connbytes version that has been merged...
authorMartin Josefsson <gandalf@wlug.westbo.se>
Sun, 11 Sep 2005 17:26:43 +0000 (17:26 +0000)
committerMartin Josefsson <gandalf@wlug.westbo.se>
Sun, 11 Sep 2005 17:26:43 +0000 (17:26 +0000)
extensions/libipt_connbytes.c

index 7274194b5c49f1e00483bfb7661b29b27d2a2467..6c3caa3ef171d7284257c733b954e4a11c276323 100644 (file)
@@ -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: