* [PATCH] some more detail to error message about match/target mask mismatch
@ 2007-07-06 7:04 Balazs Scheidler
2007-07-06 11:22 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Balazs Scheidler @ 2007-07-06 7:04 UTC (permalink / raw)
To: netfilter-devel
Hi,
The error message about an invalid hook_mask in x_tables contained to
little detail (for me), so I added some more information. It's not of
utter importance to integrate it, but it helped for me, it might help
for others. With this mail, I'm dropping this patch from my patch queue.
Please apply, if you want. Thanks.
Signed-of-by: Balazs Scheidler <bazsi@balabit.hu>
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c
index 99293c6..e406300 100644
--- a/net/netfilter/x_tables.c
+++ b/net/netfilter/x_tables.c
@@ -260,8 +260,8 @@ int xt_check_match(const struct xt_match *match, unsigned short family,
return -EINVAL;
}
if (match->hooks && (hook_mask & ~match->hooks) != 0) {
- printk("%s_tables: %s match: bad hook_mask %u\n",
- xt_prefix[family], match->name, hook_mask);
+ printk("%s_tables: %s match: bad hook_mask %u/%u\n",
+ xt_prefix[family], match->name, hook_mask, match->hooks);
return -EINVAL;
}
if (match->proto && (match->proto != proto || inv_proto)) {
@@ -337,8 +337,8 @@ int xt_check_target(const struct xt_target *target, unsigned short family,
return -EINVAL;
}
if (target->hooks && (hook_mask & ~target->hooks) != 0) {
- printk("%s_tables: %s target: bad hook_mask %u\n",
- xt_prefix[family], target->name, hook_mask);
+ printk("%s_tables: %s target: bad hook_mask %u/%u\n",
+ xt_prefix[family], target->name, hook_mask, target->hooks);
return -EINVAL;
}
if (target->proto && (target->proto != proto || inv_proto)) {
--
Bazsi
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-06 11:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-06 7:04 [PATCH] some more detail to error message about match/target mask mismatch Balazs Scheidler
2007-07-06 11:22 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.