Fix NOINET[6] build after enabling FIB_ALGO in GENERIC.
Submitted by: jbeich PR: 255389
This commit is contained in:
parent
c23385612d
commit
67372fb3e0
@ -706,12 +706,16 @@ fill_change_entry(struct fib_data *fd, struct fib_change_entry *ce, struct rib_c
|
|||||||
int plen = 0;
|
int plen = 0;
|
||||||
|
|
||||||
switch (fd->fd_family) {
|
switch (fd->fd_family) {
|
||||||
|
#ifdef INET
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
rt_get_inet_prefix_plen(rc->rc_rt, &ce->addr4, &plen, &ce->scopeid);
|
rt_get_inet_prefix_plen(rc->rc_rt, &ce->addr4, &plen, &ce->scopeid);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#ifdef INET6
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
rt_get_inet6_prefix_plen(rc->rc_rt, &ce->addr6, &plen, &ce->scopeid);
|
rt_get_inet6_prefix_plen(rc->rc_rt, &ce->addr6, &plen, &ce->scopeid);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ce->plen = plen;
|
ce->plen = plen;
|
||||||
|
Loading…
Reference in New Issue
Block a user