mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r197727:
Put #ifdef INET around parts of the FLOWTABLE code, to unbreak nooptions INET kernel builds. Approved by: re (kib)
This commit is contained in:
parent
88c45ef724
commit
67f0b21fa6
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