]> git.baikalelectronics.ru Git - kernel.git/commit
net/fib_rules: Update fib_nl_dumprule for strict data checking
authorDavid Ahern <dsahern@gmail.com>
Mon, 8 Oct 2018 03:16:39 +0000 (20:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 17:39:05 +0000 (10:39 -0700)
commite47f141807d3f00c358df3746908d76130d50f17
tree755e5d9007ee1babeec7038841242fa1101f69d9
parent4a3a386f5717311d9d51dc38c59cd1571efc5f03
net/fib_rules: Update fib_nl_dumprule for strict data checking

Update fib_nl_dumprule for strict data checking. If the flag is set,
the dump request is expected to have fib_rule_hdr struct as the header.
All elements of the struct are expected to be 0 and no attributes can
be appended.

Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Christian Brauner <christian@brauner.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c