git: a423e945c70b - stable/13 - Fix NOINET[6] build after enabling FIB_ALGO in GENERIC.

Alexander V. Chernikov melifaro at FreeBSD.org
Thu Apr 29 09:17:23 UTC 2021


The branch stable/13 has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=a423e945c70b55d449d155997ec3d8d0e2cb6716

commit a423e945c70b55d449d155997ec3d8d0e2cb6716
Author:     Alexander V. Chernikov <melifaro at FreeBSD.org>
AuthorDate: 2021-04-21 01:45:49 +0000
Commit:     Alexander V. Chernikov <melifaro at FreeBSD.org>
CommitDate: 2021-04-29 08:47:32 +0000

    Fix NOINET[6] build after enabling FIB_ALGO in GENERIC.
    
    Submitted by:   jbeich
    PR:             255389
    
    (cherry picked from commit 67372fb3e06ebaccfe7c093aa78009d161fa58e6)
---
 sys/net/route/fib_algo.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/net/route/fib_algo.c b/sys/net/route/fib_algo.c
index 43db482d73da..83fff1ec43e0 100644
--- a/sys/net/route/fib_algo.c
+++ b/sys/net/route/fib_algo.c
@@ -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;


More information about the dev-commits-src-all mailing list