aboutsummaryrefslogtreecommitdiffstats
path: root/tc/m_xt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tc/m_xt.c')
-rw-r--r--tc/m_xt.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tc/m_xt.c b/tc/m_xt.c
index c3f866df..62ec6d7f 100644
--- a/tc/m_xt.c
+++ b/tc/m_xt.c
@@ -250,8 +250,12 @@ static int parse_ipt(struct action_util *a, int *argc_p,
fprintf(stdout, "tablename: %s hook: %s\n ", tname, ipthooks[hook]);
fprintf(stdout, "\ttarget: ");
- if (m)
- m->print(NULL, m->t, 0);
+ if (m) {
+ if (m->print)
+ m->print(NULL, m->t, 0);
+ else
+ printf("%s ", m->name);
+ }
fprintf(stdout, " index %d\n", index);
if (strlen(tname) > 16) {