summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--userspace/ebtables2/ebtables.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c
index 1e87fe3..f4225de 100644
--- a/userspace/ebtables2/ebtables.c
+++ b/userspace/ebtables2/ebtables.c
@@ -225,6 +225,10 @@ static void list_em(struct ebt_u_entries *entries)
printf("ebtables -t %s -A %s ",
replace.name, entries->name);
+ /* The standard target's print() uses this to find out
+ * the name of a udc */
+ hlp->replace = &replace;
+
/*
* Don't print anything about the protocol if no protocol was
* specified, obviously this means any protocol will do.