aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-09-28 17:40:56 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:53:35 -0400
commit2b5c841f2c41c023809e3b6b95a8320246cf7f5a (patch)
treea98cea59cbc0048ad2e4485d178cb33a16eb06e9
parentf73e924cdd166360e8cc9a1b193008fdc9b3e3e2 (diff)
[NETFILTER]: nfnetlink: kill nlattr_bad_size
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/netfilter/nfnetlink.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h
index cd8fded36550..0d8424f76899 100644
--- a/include/linux/netfilter/nfnetlink.h
+++ b/include/linux/netfilter/nfnetlink.h
@@ -73,19 +73,6 @@ struct nfnetlink_subsystem
73extern int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n); 73extern int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n);
74extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); 74extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n);
75 75
76#define nlattr_bad_size(tb, max, cta_min) \
77({ int __i, __res = 0; \
78 for (__i=1; __i <= max; __i++) { \
79 if (!cta_min[__i]) \
80 continue; \
81 if (tb[__i] && nla_len(tb[__i]) < cta_min[__i]){ \
82 __res = 1; \
83 break; \
84 } \
85 } \
86 __res; \
87})
88
89extern int nfnetlink_has_listeners(unsigned int group); 76extern int nfnetlink_has_listeners(unsigned int group);
90extern int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, 77extern int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group,
91 int echo); 78 int echo);