Skip to contentSkip to conversation

libipt_connbytes.c bug in iptables-1.3.1

PATCH Applied Piotrek Kaczmarek 4 participants 4 messages Apr 17, 2005 – Apr 24, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

I've spent couple of hours seaching for a fix for this bug... can you apply the patch below?

# iptables -t mangle -A PREROUTING -m connbytes --connbytes-mode packets
iptables v1.3.1: Unknown arg `packets'
Try `iptables -h' or 'iptables --help' for more information.
# iptables -t mangle -A PREROUTING -m connbytes --connbytes-mode bytes
iptables v1.3.1: Unknown arg `bytes'
Try `iptables -h' or 'iptables --help' for more information.

There's a patch:

########### cut

libipt_connbytes.c 2005-04-18 00:56:10.000000000 +0200 renamed from libipt_connbytes.c.fucked 2005-04-18 01:00:28.000000000 +0200 +1 -0
@@ -93,6 +93,7 @@
                        exit_error(PARAMETER_PROBLEM,
                                   "Unknown --connbytes-mode `%s'", optarg);
                *flags |= 4;
+               break;
        default:
                return 0;
        }

########### cut

Signature · 1 line
Piotrek Kaczmarek
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoting Piotrek Kaczmarek on 2005-04-17 23:09 UTC:

Quoted 3 lines

I've spent couple of hours seaching for a fix for this bug... can you apply the patch below?

+ break;

Thanks a lot! It fixes the problems I experienced as well :)

- --
- - xkr47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCY4tSxyF48ZTvn+4RAlhjAJ0Q82R0SzUMkSelyJcsnVx0LQAHgQCfR0yw zX66WF6xvWMEkM4h651cZHg=
=SmTE
-----END PGP SIGNATURE-----

#2 lore raw
In reply to Piotrek Kaczmarek
Quoted 25 lines · Piotrek Kaczmarek

I've spent couple of hours seaching for a fix for this bug... can you apply the patch below?

# iptables -t mangle -A PREROUTING -m connbytes --connbytes-mode packets
iptables v1.3.1: Unknown arg `packets'
Try `iptables -h' or 'iptables --help' for more information.
# iptables -t mangle -A PREROUTING -m connbytes --connbytes-mode bytes
iptables v1.3.1: Unknown arg `bytes'
Try `iptables -h' or 'iptables --help' for more information.

There's a patch:

########### cut

libipt_connbytes.c 2005-04-18 00:56:10.000000000 +0200 renamed from libipt_connbytes.c.fucked 2005-04-18 01:00:28.000000000 +0200 +1 -0
@@ -93,6 +93,7 @@
                        exit_error(PARAMETER_PROBLEM,
                                   "Unknown --connbytes-mode `%s'", optarg);
                *flags |= 4;
+               break;
        default:
                return 0;
        }
Quoted 2 lines

########### cut

Thanks from me aswell Piotrek - I've got connbytes back :-)

Andy.