summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_dccp.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-08-21 09:08:04 +0200
committerJan Engelhardt <jengelh@medozas.de>2011-08-21 09:37:40 +0200
commit7e66a657d0fbb8a3f27fd78c7bb27859d44002aa (patch)
tree37abf7874813d33ed74b8fefe56a7e6007354935 /extensions/libxt_dccp.c
parentd152d6acd6751884621e0b760fecc0d652aea479 (diff)
libxt_dccp: fix deprecated intrapositional ordering of !
This bug goes back to v1.4.3~63. References: Dave Täht via netfilter-devel on 2011-08-20 14:40:11 -0700 References: <CAA93jw6mpDL6rLXM+9SpAhafkDdKoSfhAxU8UM87vUqjuzjYJw@mail.gmail.com> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_dccp.c')
-rw-r--r--extensions/libxt_dccp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/extensions/libxt_dccp.c b/extensions/libxt_dccp.c
index 0fc5f7d7..4de07cca 100644
--- a/extensions/libxt_dccp.c
+++ b/extensions/libxt_dccp.c
@@ -262,13 +262,14 @@ static void dccp_save(const void *ip, const struct xt_entry_match *match)
}
if (einfo->flags & XT_DCCP_TYPE) {
- printf(" --dccp-type");
- print_types(einfo->typemask, einfo->invflags & XT_DCCP_TYPE,0);
+ printf("%s --dccp-type",
+ einfo->invflags & XT_DCCP_TYPE ? " !" : "");
+ print_types(einfo->typemask, false, 0);
}
if (einfo->flags & XT_DCCP_OPTION) {
- printf(" --dccp-option %s%u",
- einfo->typemask & XT_DCCP_OPTION ? "! " : "",
+ printf("%s --dccp-option %u",
+ einfo->typemask & XT_DCCP_OPTION ? " !" : "",
einfo->option);
}
}