ipv4: Move fib_has_custom_local_routes outside of IP_MULTIPLE_TABLES.
authorDavid S. Miller <davem@davemloft.net>
Fri, 22 Sep 2017 01:18:23 +0000 (18:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Sep 2017 01:18:23 +0000 (18:18 -0700)
commita1f3316dd7b5ce740c774697c664e2e60d095794
treeba5111e5487411ad215378aa13422c79aa0b1d83
parent8447779637172809060e5064afdf52f16a09aa13
ipv4: Move fib_has_custom_local_routes outside of IP_MULTIPLE_TABLES.

> net/ipv4/fib_frontend.c: In function 'fib_validate_source':
> net/ipv4/fib_frontend.c:411:16: error: 'struct netns_ipv4' has no member named 'fib_has_custom_local_routes'
>    if (net->ipv4.fib_has_custom_local_routes)
>                 ^
> net/ipv4/fib_frontend.c: In function 'inet_rtm_newroute':
> net/ipv4/fib_frontend.c:773:12: error: 'struct netns_ipv4' has no member named 'fib_has_custom_local_routes'
>    net->ipv4.fib_has_custom_local_routes = true;
>             ^

Fixes: 6e617de84e87 ("net: avoid a full fib lookup when rp_filter is disabled.")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv4.h