Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2025 09:54:41 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d1ac3e245f08 - main - wg: fix LINT-NOIP build
Message-ID:  <202506300954.55U9sf1W064560@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

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

commit d1ac3e245f084ee0637bde9a446687621358c418
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-06-30 09:53:02 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-06-30 09:53:02 +0000

    wg: fix LINT-NOIP build
    
    Fixes:  d15d610fac97df4fefed3f14b31dcfbdcec65bf9
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/dev/wg/if_wg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/dev/wg/if_wg.c b/sys/dev/wg/if_wg.c
index 6ad3c44dc8ff..17aedee0e6b0 100644
--- a/sys/dev/wg/if_wg.c
+++ b/sys/dev/wg/if_wg.c
@@ -532,10 +532,12 @@ wg_peer_get_endpoint(struct wg_peer *peer, struct wg_endpoint *e)
 static int
 wg_aip_addrinfo(struct wg_aip *aip, const void *baddr, uint8_t cidr)
 {
+#if defined(INET) || defined(INET6)
 	struct aip_addr *addr, *mask;
 
 	addr = &aip->a_addr;
 	mask = &aip->a_mask;
+#endif
 	switch (aip->a_af) {
 #ifdef INET
 	case AF_INET:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506300954.55U9sf1W064560>