diff options
author | Patrick McHardy <kaber@trash.net> | 2007-09-28 17:38:52 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:53:33 -0400 |
commit | e3730578285fcf0c628f08b0dc89425cfeafd4ba (patch) | |
tree | 7ba377a0c5ac7070f3293f2297f2e9ab910d6865 /include | |
parent | dd82185f2c55e9dc2247c83d78517ef14e71d30e (diff) |
[NETFILTER]: nfnetlink: support attribute policies
Add support for automatic checking of per-callback attribute policies.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter/nfnetlink.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h index e61a8a5fcaff..cd8fded36550 100644 --- a/include/linux/netfilter/nfnetlink.h +++ b/include/linux/netfilter/nfnetlink.h | |||
@@ -58,7 +58,8 @@ struct nfnl_callback | |||
58 | { | 58 | { |
59 | int (*call)(struct sock *nl, struct sk_buff *skb, | 59 | int (*call)(struct sock *nl, struct sk_buff *skb, |
60 | struct nlmsghdr *nlh, struct nlattr *cda[]); | 60 | struct nlmsghdr *nlh, struct nlattr *cda[]); |
61 | u_int16_t attr_count; /* number of nlattr's */ | 61 | const struct nla_policy *policy; /* netlink attribute policy */ |
62 | const u_int16_t attr_count; /* number of nlattr's */ | ||
62 | }; | 63 | }; |
63 | 64 | ||
64 | struct nfnetlink_subsystem | 65 | struct nfnetlink_subsystem |