mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b8964ed9fa
commit
1f6c9557e8
4 changed files with 10 additions and 15 deletions
|
|
@ -108,13 +108,9 @@ errout:
|
|||
}
|
||||
|
||||
static struct nla_policy dn_fib_rule_policy[FRA_MAX+1] __read_mostly = {
|
||||
[FRA_IFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ - 1 },
|
||||
[FRA_PRIORITY] = { .type = NLA_U32 },
|
||||
FRA_GENERIC_POLICY,
|
||||
[FRA_SRC] = { .type = NLA_U16 },
|
||||
[FRA_DST] = { .type = NLA_U16 },
|
||||
[FRA_FWMARK] = { .type = NLA_U32 },
|
||||
[FRA_FWMASK] = { .type = NLA_U32 },
|
||||
[FRA_TABLE] = { .type = NLA_U32 },
|
||||
};
|
||||
|
||||
static int dn_fib_rule_match(struct fib_rule *rule, struct flowi *fl, int flags)
|
||||
|
|
|
|||
Loading…
Reference in a new issue