]> git.baikalelectronics.ru Git - kernel.git/commit
net/mpls: Implement handler for strict data checking on dumps
authorDavid Ahern <dsahern@gmail.com>
Tue, 9 Oct 2018 18:10:43 +0000 (11:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 05:46:17 +0000 (22:46 -0700)
commitfbdd161fc2548b6b49a2ae896f6a86550470ed11
treed4ff82d1d4562212944cd77b85f5207b08f830df
parentc4ffbb69047bd711c906ffe67451ebeb061f6d9a
net/mpls: Implement handler for strict data checking on dumps

Without CONFIG_INET enabled compiles fail with:

net/mpls/af_mpls.o: In function `mpls_dump_routes':
af_mpls.c:(.text+0xed0): undefined reference to `ip_valid_fib_dump_req'

The preference is for MPLS to use the same handler as ipv4 and ipv6
to allow consistency when doing a dump for AF_UNSPEC which walks
all address families invoking the route dump handler. If INET is
disabled then fallback to an MPLS version which can be tighter on
the data checks.

Fixes: 6e6db7d416d1 ("rtnetlink: Update fib dumps for strict data checking")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c