diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-11-09 18:22:48 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:21:41 -0500 |
commit | 1f6c9557e8206757c91b5737bb8dbd5b1ae3a773 (patch) | |
tree | 79673ee5d51384a73ca5604d73350f859215169e /net/decnet | |
parent | b8964ed9fa727109c9084abc807652ebfb681c18 (diff) |
[NET] rules: Share common attribute validation policy
Move the attribute policy for the non-specific attributes into
net/fib_rules.h and include it in the respective protocols.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_rules.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c index 1f5d23c96681..e32d0c3d5a96 100644 --- a/net/decnet/dn_rules.c +++ b/net/decnet/dn_rules.c | |||
@@ -108,13 +108,9 @@ errout: | |||
108 | } | 108 | } |
109 | 109 | ||
110 | static struct nla_policy dn_fib_rule_policy[FRA_MAX+1] __read_mostly = { | 110 | static struct nla_policy dn_fib_rule_policy[FRA_MAX+1] __read_mostly = { |
111 | [FRA_IFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ - 1 }, | 111 | FRA_GENERIC_POLICY, |
112 | [FRA_PRIORITY] = { .type = NLA_U32 }, | ||
113 | [FRA_SRC] = { .type = NLA_U16 }, | 112 | [FRA_SRC] = { .type = NLA_U16 }, |
114 | [FRA_DST] = { .type = NLA_U16 }, | 113 | [FRA_DST] = { .type = NLA_U16 }, |
115 | [FRA_FWMARK] = { .type = NLA_U32 }, | ||
116 | [FRA_FWMASK] = { .type = NLA_U32 }, | ||
117 | [FRA_TABLE] = { .type = NLA_U32 }, | ||
118 | }; | 114 | }; |
119 | 115 | ||
120 | static int dn_fib_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) | 116 | static int dn_fib_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) |