When specifying --ecn-tcp-remove, *flags will be set to 1, which leads to the ECN bits being removed from the IPv4 header, but in fact not the TCP header. Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx> --- extensions/libipt_ECN.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/extensions/libipt_ECN.c b/extensions/libipt_ECN.c index e1f29b6..2aa1a00 100644 --- a/extensions/libipt_ECN.c +++ b/extensions/libipt_ECN.c @@ -53,7 +53,7 @@ static int ECN_parse(int c, char **argv, int invert, unsigned int *flags, einfo->operation = IPT_ECN_OP_SET_ECE | IPT_ECN_OP_SET_CWR; einfo->proto.tcp.ece = 0; einfo->proto.tcp.cwr = 0; - *flags = 1; + *flags |= IPT_ECN_OP_SET_ECE | IPT_ECN_OP_SET_CWR; break; case 'G': if (*flags & IPT_ECN_OP_SET_CWR) -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html