]> git.baikalelectronics.ru Git - kernel.git/commit
fib, fib6: reject invalid feature bits
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 31 Aug 2015 13:58:46 +0000 (15:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2015 19:34:00 +0000 (12:34 -0700)
commitfafa630c73e1f53ca6b4ff57e1b48f0d9e98f021
tree89ae9d8715c49d32593acad50712c4a6050d8969
parent0c9a07face8175061936e4988dc591f6dd1cee40
fib, fib6: reject invalid feature bits

Feature bits that are invalid should not be accepted by the kernel,
only the lower 4 bits may be configured, but not the remaining ones.
Even from these 4, 2 of them are unused.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rtnetlink.h
net/ipv4/fib_semantics.c
net/ipv6/route.c