Message ID | 20220413115811.22534-2-kprovost@netgate.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director11.mail.ord1d.rsapps.net ([172.28.255.1]) by backend41.mail.ord1d.rsapps.net with LMTP id OBruLfbCVmLJJgAAqwncew (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) for <patchwork@openvpn.net>; Wed, 13 Apr 2022 08:32:54 -0400 Received: from proxy9.mail.ord1c.rsapps.net ([172.28.255.1]) by director11.mail.ord1d.rsapps.net with LMTP id CFIXEffCVmJAewAAvGGmqA (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) for <patchwork@openvpn.net>; Wed, 13 Apr 2022 08:32:55 -0400 Received: from smtp15.gate.ord1c ([172.28.255.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy9.mail.ord1c.rsapps.net with LMTPS id mBW1EPfCVmKeSwAAgxtkuw (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) for <patchwork@openvpn.net>; Wed, 13 Apr 2022 08:32:55 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp15.gate.ord1c.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=netgate.com; dmarc=pass (p=none; dis=none) header.from=lists.sourceforge.net X-Suspicious-Flag: YES X-Classification-ID: d77a6664-bb25-11ec-bb93-bc305bf03694-1-1 Received: from [216.105.38.7] ([216.105.38.7:39522] helo=lists.sourceforge.net) by smtp15.gate.ord1c.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 69/43-22282-6F2C6526; Wed, 13 Apr 2022 08:32:55 -0400 Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.94.2) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1nec9y-0007xo-M6; Wed, 13 Apr 2022 12:31:45 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <kprovost@netgate.com>) id 1nec9x-0007xi-2q for openvpn-devel@lists.sourceforge.net; Wed, 13 Apr 2022 12:31:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QS7QtJPywK7ifX7mGR/3Tfy1NXM+zpnq/ts/MG/oDco=; b=QA12av9OOBct4IaFZ6SjkALywp JmpZwHk0+2CbgQEnxc0vSkuoURr1mhqz6tKkjxoQt/gsdYMqY0pzFMPChZBLdP/O7pA6VDzBWvSL9 nUaPAg0F3OQL3KtHWlEM6vuAaZ3A+0qxCuLTZ+UU8ax0eedtqfHTW63rX7arIuOaiEjE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QS7QtJPywK7ifX7mGR/3Tfy1NXM+zpnq/ts/MG/oDco=; b=SORuZPOB7XmYpN1CMXRkxTN34n Q4+65S9hyk5w/jzbNHp2Dhp7NJNvyA0BoVR+8JzRcK1+s91e9IPAdwwlflRZJ0qVh2sksX+ylyq7R 3rPdiolFa4sLDGekTFBKf40b2kHiieX3zK9xk/y16I/XjZrOSqmAa8ftPam0vIJWjtT0=; Received: from mail-lf1-f48.google.com ([209.85.167.48]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.94.2) id 1nec9t-0000qe-Ie for openvpn-devel@lists.sourceforge.net; Wed, 13 Apr 2022 12:31:43 +0000 Received: by mail-lf1-f48.google.com with SMTP id u7so3208702lfs.8 for <openvpn-devel@lists.sourceforge.net>; Wed, 13 Apr 2022 05:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netgate.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=QS7QtJPywK7ifX7mGR/3Tfy1NXM+zpnq/ts/MG/oDco=; b=gDHNUlvVWjgGFKIjQCv9QW2scMD20tevv0unk3goqGUPKIiLSIkrzkwOEKLzt8nvLl XYi58OdkrekK2svbQ1ttKoRjkHhFdw75y5/5sgvNGRgVTp8LJ1mgozIsIKoZEC9e8ip2 5TejuAXriNZGk9nrieCbPh8nuRgkVp8FoIaoE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QS7QtJPywK7ifX7mGR/3Tfy1NXM+zpnq/ts/MG/oDco=; b=h2qi3OqvL4b73+QVKy4X1QdDyHBJToB8feT3XB0mTxpKJ9ace7OINynnPgF8rmEM7I LgdM2ixBRiRCjW1ECRY4dloHYOkAKIBgYXa7otIiHLVCnKEFtETFecBjTz0QJSgtdYST SWvZeQLfh1zRKUnjGiVarMP70GCEDP3CnWBoBDiO6rd8Re1fM0ZIveE8zXi4hPgYOCnH rYA9eUXnL6lS5HfA8vLHdq06kPRtAckhAdGjU+Vm/Sah+PqndOTZsQvBg3Khywt5Hlpb FX/ml8xQ8NUKgUI9c5d+dP1jBjIn52FyQF+rwqjR7cIJXCF/zy0FKJTFYXCPkv2M+XBs 6AkQ== X-Gm-Message-State: AOAM530tQMBJvGcvB3nxj4o4Vz1e5Mjcw0u73H92dSWmOdA3YMHymcLx cOPw6J4iG7nSG1AodPi1810YCUYq3RmaLQ== X-Google-Smtp-Source: ABdhPJx4hm5JwQJfmvMnXRtBcHPASKoOW+8zodG/mT7O+81HYASjLQCBFXoBq2Ho6CDzJ0XtkaNWKA== X-Received: by 2002:a05:6402:d7:b0:413:673:ba2f with SMTP id i23-20020a05640200d700b004130673ba2fmr43670095edu.29.1649851094860; Wed, 13 Apr 2022 04:58:14 -0700 (PDT) Received: from nut.jupiter.sigsegv.be (ptr-8rgvk5277arubwggeqg.18120a2.ip6.access.telenet.be. [2a02:1811:240d:2900:f602:70ff:feae:6e98]) by smtp.googlemail.com with ESMTPSA id h7-20020a1709066d8700b006d4b4d137fbsm14168279ejt.50.2022.04.13.04.58.14 for <openvpn-devel@lists.sourceforge.net> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 04:58:14 -0700 (PDT) To: openvpn-devel <openvpn-devel@lists.sourceforge.net> Date: Wed, 13 Apr 2022 13:58:11 +0200 Message-Id: <20220413115811.22534-2-kprovost@netgate.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220413115811.22534-1-kprovost@netgate.com> References: <20220413115811.22534-1-kprovost@netgate.com> MIME-Version: 1.0 X-Spam-Report: Spam detection software, running on the system "util-spamd-2.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Kristof Provost <kp@FreeBSD.org> --- src/openvpn/dco_freebsd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/openvpn/dco_freebsd.c b/src/openvpn/dco_freebsd.c index 3f8b39e0..8c300639 100644 --- a/src/openvpn/dco_freebsd.c +++ b/src/openvpn/dco_freebsd.c @@ -91,6 +91,17 @@ dco_new_peer(dco_c [...] Content analysis details: (-0.2 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.167.48 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.167.48 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Headers-End: 1nec9t-0000qe-Ie Subject: [Openvpn-devel] [PATCH] pass vpn addresses to the kernel X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> From: Kristof Provost via Openvpn-devel <openvpn-devel@lists.sourceforge.net> Reply-To: Kristof Provost <kprovost@netgate.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
Series |
[Openvpn-devel] pass vpn addresses to the kernel
|
expand
|
diff --git a/src/openvpn/dco_freebsd.c b/src/openvpn/dco_freebsd.c index 3f8b39e0..8c300639 100644 --- a/src/openvpn/dco_freebsd.c +++ b/src/openvpn/dco_freebsd.c @@ -91,6 +91,17 @@ dco_new_peer(dco_context_t *dco, unsigned int peerid, int sd, nvlist_add_nvlist(nvl, "remote", sockaddr_to_nvlist(remoteaddr)); } + if (remote_in4) + { + nvlist_add_binary(nvl, "vpn_ipv4", &remote_in4->s_addr, + sizeof(remote_in4->s_addr)); + } + + if (remote_in6) + { + nvlist_add_binary(nvl, "vpn_ipv6", remote_in6, sizeof(*remote_in6)); + } + nvlist_add_number(nvl, "fd", sd); nvlist_add_number(nvl, "peerid", peerid);
From: Kristof Provost <kp@FreeBSD.org> --- src/openvpn/dco_freebsd.c | 11 +++++++++++ 1 file changed, 11 insertions(+)