summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorlaforge <laforge>2002-08-05 19:36:15 +0000
committerlaforge <laforge>2002-08-05 19:36:15 +0000
commitd18db4ae89fb991e4d751ac628dc26443cc8210b (patch)
tree0f70570f79f5d995b67eac46f690b3ff5e486539 /extensions
parent120fc9a06ae72e6416472edb7b0ee4cb165918c3 (diff)
fix ECN_OP_SET_IP case (missing flags assignment and break stmt)
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libipt_ECN.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/libipt_ECN.c b/extensions/libipt_ECN.c
index 2681f20..aa085ed 100644
--- a/extensions/libipt_ECN.c
+++ b/extensions/libipt_ECN.c
@@ -6,7 +6,7 @@
*
* libipt_ECN.c borrowed heavily from libipt_DSCP.c
*
- * $Id: libipt_ECN.c,v 1.6 2002/05/29 13:08:16 laforge Exp $
+ * $Id: libipt_ECN.c,v 1.7 2002/05/29 15:11:36 laforge Exp $
*/
#include <stdio.h>
#include <string.h>
@@ -92,6 +92,8 @@ parse(int c, char **argv, int invert, unsigned int *flags,
"ECN target: Value out of range");
einfo->operation |= IPT_ECN_OP_SET_IP;
einfo->ip_ect = result;
+ *flags |= IPT_ECN_OP_SET_IP;
+ break;
default:
return 0;
}