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)
commitb8d3e4163a3562d7cba486687904383e78e7dd6a
tree89ae9d8715c49d32593acad50712c4a6050d8969
parent1bb14807bc761a88bb9d319e7bf519eebf4c82ec
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