Fix NOINET[6] build after enabling FIB_ALGO in GENERIC.

Submitted by:	jbeich
PR:		255389
This commit is contained in:
Alexander V. Chernikov 2021-04-21 02:45:49 +01:00
parent c23385612d
commit 67372fb3e0

View File

@ -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;