diff options
author | bz <bz@FreeBSD.org> | 2009-10-03 10:56:03 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-10-03 10:56:03 +0000 |
commit | 1e3cae3b31f025e53052bad3eef10aad120dc54d (patch) | |
tree | 3f47f36c2ad2a353cbd800a1addb45231d72a284 /sys/net/route.c | |
parent | a0d8f55f8affc898209329a355aa2974beae86d2 (diff) | |
download | FreeBSD-src-1e3cae3b31f025e53052bad3eef10aad120dc54d.zip FreeBSD-src-1e3cae3b31f025e53052bad3eef10aad120dc54d.tar.gz |
Put #ifdef INET around parts of the FLOWTABLE code, to unbreak
nooptions INET kernel builds.
MFC after: 3 days
X-MFC: with r197687
Diffstat (limited to 'sys/net/route.c')
-rw-r--r-- | sys/net/route.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 1ab039f..2fc53af 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1162,6 +1162,7 @@ rtrequest1_fib(int req, struct rt_addrinfo *info, struct rtentry **ret_nrt, /* XXX * "flow-table" only support IPv4 at the moment. */ +#ifdef INET if (dst->sa_family == AF_INET) { rn = rnh->rnh_matchaddr(dst, rnh); if (rn && ((rn->rn_flags & RNF_ROOT) == 0)) { @@ -1203,6 +1204,7 @@ rtrequest1_fib(int req, struct rt_addrinfo *info, struct rtentry **ret_nrt, } } #endif +#endif /* XXX mtu manipulation will be done in rnh_addaddr -- itojun */ rn = rnh->rnh_addaddr(ndst, netmask, rnh, rt->rt_nodes); @@ -1224,7 +1226,9 @@ rtrequest1_fib(int req, struct rt_addrinfo *info, struct rtentry **ret_nrt, } #ifdef FLOWTABLE else if (rt0 != NULL) { +#ifdef INET flowtable_route_flush(V_ip_ft, rt0); +#endif RTFREE(rt0); } #endif |