From nobody Thu Feb 23 04:58:33 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PMglY5C4qz3syKH; Thu, 23 Feb 2023 04:58:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PMglY4m74z4WRt; Thu, 23 Feb 2023 04:58:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677128313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=73dxv8jctJLzeR5UdrLrXd7fRDQCgyucuOlb+WYkwMs=; b=MhpUF4K3tNiCQSdew4vqHTOKVjqgs3FF9q1Y7C3ikvWqiAaRxxO3J44pt5OpWwCzXhSjkf YGHKcgqmJxLO8w0oQ5ukF0/F1pws76a9tyKe7xLkQtS64cHtO4JLv/GRnLnzz9uBomZJmh LpSDIBOzrpTIHPk8UECKEV5smzhtyL+u+qcnWM335bq/pU2Xek8k3yeivTzJldmtmxKuBE Nz2LSQeoWuzWPRwzJs0prtTCbK6C0aglWHHQnsGiGuUGrcZIriKAArLCBFzrvvZGUIQsmJ Ch958ZE5GnNK31UbV3BNplmXQkfs2bZ4oCp3+6O1frd5zxkLeNE50Zd6a1rLyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677128313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=73dxv8jctJLzeR5UdrLrXd7fRDQCgyucuOlb+WYkwMs=; b=DSN6YHDON1SVVVpcIgtertbXGKnbTlOlT4IHnWHk0ITOsfhucNtZBke1aADSj/3wEfn08O JJQAeCe2YPKr8Dqn7TzW1/qYTqKDjbRVA3WsvZk6lmmqRG6uaMVdwstodraNGZ7cRPcNqn G/NZe1m5zFCiz2AIi/4k0FlvJAWK70y4jVyQk4GWa3k87gkeNLAXRtfY/VrPHGkUd53Mlv ftC/ypKe/StbgFyv8A9KNvqEay7Aa1AUKAhWBwfK7HmBFy9/50KDjKlxQvJci6pJVdybUk qC7/VuforlP/Z7B7USlAgy4rxq5laBHSi+ipU13qXj+KItVXYNsBoN+mEu2Wgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677128313; a=rsa-sha256; cv=none; b=clbb5LgssfOD0DmhIicvCITyzDvTJg05mFDYh1+SNyDkTddusRcze8vL4/KPs0taUTqLP0 FmA9R42HZTugTDRDpK1OnAaiSynu6TWc5MF/y6s6APU8WdHMd6C4GB0vInDLSvDak0+rZU EGQ2ZcuYW1u62aINPvw0ifet7nf036xrbWXHMMCjH9BjDONnL8uz6NjUCjvR+jpFgqyMyz CiifUx+mP12eaaCK69UGgX52QRNCbqmGoI/pX8jCIJyLbbLoADO9t5+jOh3XCtGjcb9LWu TKa2EVPmCTPVrwjlkmuarPhBfRgswuqJh0lviOwdbQZ/w1i41KFvJCosJMG5SA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PMglY3pPWzT7G; Thu, 23 Feb 2023 04:58:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31N4wXLu058252; Thu, 23 Feb 2023 04:58:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31N4wXkC058251; Thu, 23 Feb 2023 04:58:33 GMT (envelope-from git) Date: Thu, 23 Feb 2023 04:58:33 GMT Message-Id: <202302230458.31N4wXkC058251@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 57fcf46dee45 - main - if_ovpn: ovpn_find_peer_by_ip() is unused without INET List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 57fcf46dee45369c5f424ce2b0b79e6b2aab0177 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=57fcf46dee45369c5f424ce2b0b79e6b2aab0177 commit 57fcf46dee45369c5f424ce2b0b79e6b2aab0177 Author: Kristof Provost AuthorDate: 2023-02-23 02:58:14 +0000 Commit: Kristof Provost CommitDate: 2023-02-23 04:56:56 +0000 if_ovpn: ovpn_find_peer_by_ip() is unused without INET Don't define ovpn_find_peer_by_ip() if INET is not set, and do the same for ovpn_find_peer_by_ip6() and INET6. Reported by: mjg Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/net/if_ovpn.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/net/if_ovpn.c b/sys/net/if_ovpn.c index 169a17ec6083..bf07d23f0235 100644 --- a/sys/net/if_ovpn.c +++ b/sys/net/if_ovpn.c @@ -1663,6 +1663,7 @@ ovpn_get_af(struct mbuf *m) return (0); } +#ifdef INET static struct ovpn_kpeer * ovpn_find_peer_by_ip(struct ovpn_softc *sc, const struct in_addr addr) { @@ -1678,7 +1679,9 @@ ovpn_find_peer_by_ip(struct ovpn_softc *sc, const struct in_addr addr) return (peer); } +#endif +#ifdef INET6 static struct ovpn_kpeer * ovpn_find_peer_by_ip6(struct ovpn_softc *sc, const struct in6_addr *addr) { @@ -1694,6 +1697,7 @@ ovpn_find_peer_by_ip6(struct ovpn_softc *sc, const struct in6_addr *addr) return (peer); } +#endif static struct ovpn_kpeer * ovpn_route_peer(struct ovpn_softc *sc, struct mbuf **m0,