git: 39c0036d881b - main - netlink: fix !INET6 warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Apr 2023 19:41:48 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=39c0036d881b47c5bca792098fa2d221c068e274 commit 39c0036d881b47c5bca792098fa2d221c068e274 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2023-04-08 19:39:37 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-04-08 19:39:37 +0000 netlink: fix !INET6 warning Reported by: Gary Jennejohn <garyj@gmx.de> MFC after: 2 weeks --- sys/netlink/route/iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netlink/route/iface.c b/sys/netlink/route/iface.c index 399d2a8464ca..9f1dd9cec024 100644 --- a/sys/netlink/route/iface.c +++ b/sys/netlink/route/iface.c @@ -734,6 +734,7 @@ ifa_get_scope(const struct ifaddr *ifa) return (addr_scope); } +#ifdef INET6 static uint8_t inet6_get_plen(const struct in6_addr *addr) { @@ -741,6 +742,7 @@ inet6_get_plen(const struct in6_addr *addr) return (bitcount32(addr->s6_addr32[0]) + bitcount32(addr->s6_addr32[1]) + bitcount32(addr->s6_addr32[2]) + bitcount32(addr->s6_addr32[3])); } +#endif static uint8_t get_sa_plen(const struct sockaddr *sa)