[NETLINK]: Make use of NLA_STRING/NLA_NUL_STRING attribute validation
Converts existing NLA_STRING attributes to use the new validation features, saving a couple of temporary buffers. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a5531a5d85
commit
5176f91ea8
@ -112,7 +112,7 @@ errout:
|
||||
}
|
||||
|
||||
static struct nla_policy dn_fib_rule_policy[FRA_MAX+1] __read_mostly = {
|
||||
[FRA_IFNAME] = { .type = NLA_STRING },
|
||||
[FRA_IFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ - 1 },
|
||||
[FRA_PRIORITY] = { .type = NLA_U32 },
|
||||
[FRA_SRC] = { .type = NLA_U16 },
|
||||
[FRA_DST] = { .type = NLA_U16 },
|
||||
|
Reference in New Issue
Block a user