mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix NOINET[6] build after enabling FIB_ALGO in GENERIC.
Submitted by: jbeich
PR: 255389
(cherry picked from commit 67372fb3e0)
This commit is contained in:
parent
1899138d5a
commit
a423e945c7
1 changed files with 4 additions and 0 deletions
|
|
@ -706,12 +706,16 @@ fill_change_entry(struct fib_data *fd, struct fib_change_entry *ce, struct rib_c
|
|||
int plen = 0;
|
||||
|
||||
switch (fd->fd_family) {
|
||||
#ifdef INET
|
||||
case AF_INET:
|
||||
rt_get_inet_prefix_plen(rc->rc_rt, &ce->addr4, &plen, &ce->scopeid);
|
||||
break;
|
||||
#endif
|
||||
#ifdef INET6
|
||||
case AF_INET6:
|
||||
rt_get_inet6_prefix_plen(rc->rc_rt, &ce->addr6, &plen, &ce->scopeid);
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
ce->plen = plen;
|
||||
|
|
|
|||
Loading…
Reference in a new issue