diff options
Diffstat (limited to 'extensions/libxt_CT.c')
-rw-r--r-- | extensions/libxt_CT.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/libxt_CT.c b/extensions/libxt_CT.c index 0b40fc61..6be6ea05 100644 --- a/extensions/libxt_CT.c +++ b/extensions/libxt_CT.c @@ -67,9 +67,9 @@ static uint32_t ct_parse_events(const struct event_tbl *tbl, unsigned int size, strcpy(str, events); while ((t = strsep(&e, ","))) { for (i = 0; i < size; i++) { - if (strcmp(t, tbl->name)) + if (strcmp(t, tbl[i].name)) continue; - mask |= 1 << tbl->event; + mask |= 1 << tbl[i].event; break; } @@ -150,6 +150,8 @@ static void ct_print(const void *ip, const struct xt_entry_target *target, int n if (info->exp_events) ct_print_events("expevents", exp_event_tbl, ARRAY_SIZE(exp_event_tbl), info->exp_events); + if (info->zone) + printf("zone %u ", info->zone); } static void ct_save(const void *ip, const struct xt_entry_target *target) @@ -167,6 +169,8 @@ static void ct_save(const void *ip, const struct xt_entry_target *target) if (info->exp_events) ct_print_events("--expevents", exp_event_tbl, ARRAY_SIZE(exp_event_tbl), info->exp_events); + if (info->zone) + printf("--zone %u ", info->zone); } static struct xtables_target ct_target = { |