mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 09:06:49 -04:00
Put #ifdef INET around parts of the FLOWTABLE code, to unbreak
nooptions INET kernel builds. MFC after: 3 days X-MFC: with r197687
This commit is contained in:
parent
925c8b5b04
commit
db44ff4047
1 changed files with 4 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
@ -1202,6 +1203,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 */
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue