From patchwork Mon Sep 16 13:34:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 3838 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:c41d:b0:5b9:581e:f939 with SMTP id jt29csp1210388mab; Mon, 16 Sep 2024 06:35:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUf9ILBzYvEFK137iK8IGCdIdbSnvx8wPwSXqLzRyARD2UUCerV/BQRBkg6f6hIWGY+yTCXBQocrEI=@openvpn.net X-Google-Smtp-Source: AGHT+IF/mphYUJoZexKSQbzzcSceNDKQOOLEwa8fZaLmkGuVYJohqygSXd43f7Ixfuin1mNe0fOd X-Received: by 2002:a05:6602:1354:b0:82c:d843:edcc with SMTP id ca18e2360f4ac-82d1f96f3bfmr1831250839f.11.1726493700352; Mon, 16 Sep 2024 06:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726493700; cv=none; d=google.com; s=arc-20240605; b=HXrhLgta5HZO7/yNgoJ/oWN0LzO595dOkQ72yOoaRVuS3/fB8D1/mHoaYYjGxFklL3 oQiL2couOMpL5fPMhGXchisa1SxN4cPdP/r+rAVNprtrtH/0Nx5/nThgmns68L0d4TMy Y4TxJa+RidjYF0+E1fKtnKpkE1IBdO0S4HIwLE+qam+dYAAzLnX5GuqNlrFponZcUxaE FJp065l3us16njPOzxG0DN3r7uv6acd8/uFVJZW3pvcL7qOBgjRdYps8ua3HuRa0aBFC osCVrNmHn3tEhSPmj8wLClTyDX17L+WNpeTkPicfUVSryjXYtXOLDPGazrlTtWkY5RK6 Esmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature; bh=2RDAZUn3CxSrCiMjYRMS6vUUg71+jG5vFt8HAeIA8K0=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=ejtlVdoHj6MhWWPCYdbtkYDRl8n/cYkHbnBSJdNhIyN/aDZiWMD2qa1axgOX4bfwgv pNRAs0SKgWit91+zXMq2OjM1QBB78eMxEnEUTgR8E72f4Xw6rj4+9p12b6Q7Zjd3AEy7 FEiLsXVvltBBOAaPU+08xd7K9FNp0oMwv2HVaOSnsDRhfeizIHfJ3LuG5b7SspGg3wOx GDLh1SOgYBBSbWCKoGRuBPaDwnT7yIv9uvCzrcorqScp/kN+V5aDOI7P/HHfy6njZsVz 9ajf2oPWuzuh+/UtuEJ2sdMaSBg+Y+50xCJ9zeJRSD5wHLfIdgYOnqaAazoicNeC/lSO rbRQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=EXvvhx3N; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=bVCwBacD; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id ca18e2360f4ac-82d4932ee97si226140039f.88.2024.09.16.06.35.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Sep 2024 06:35:00 -0700 (PDT) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=EXvvhx3N; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=bVCwBacD; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1sqBsQ-0000N5-LU; Mon, 16 Sep 2024 13:34:51 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sqBsP-0000Mw-7K for openvpn-devel@lists.sourceforge.net; Mon, 16 Sep 2024 13:34:49 +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=Zb5sS3URHGJzuG9IbZr0syAcGjmDWsTzaNl5qTyC3NM=; b=EXvvhx3NHBdtz0ovIbeTkWJUtW yYKOGYaZfEnw6smFkXbKLnebDgqKH5skRIQehM0jhc5UJscwu+9iRUqtuLucoKg5DWWjJL1qaCp88 PvhuNfMlkmNCkLYIz+esthb65O7gp5PbZq7M1hZUwNzcPRXslUGetDCQeA2+tdL5HgUA=; 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=Zb5sS3URHGJzuG9IbZr0syAcGjmDWsTzaNl5qTyC3NM=; b=bVCwBacD+2S0zCO7lQyJFg7xhI Mec8938LFO5vCw/4Syy735KOdFDdgWhlJXoHWFA6mC5x+lw9wVBYYCRehqXG3x2ZstV1+uD3Kmje0 eraGn2x47nQ2A0GY0/V0WWqBtcevwAOdU9QJ1J21ymX/Nt+ceSOWZQyGumx8MjSw/M+I=; Received: from dhcp-174.greenie.muc.de ([193.149.48.174] helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1sqBsP-0002YE-1R for openvpn-devel@lists.sourceforge.net; Mon, 16 Sep 2024 13:34:49 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.17.1.9/8.17.1.9) with ESMTP id 48GDYb96029953 for ; Mon, 16 Sep 2024 15:34:37 +0200 Received: (from gert@localhost) by blue.greenie.muc.de (8.17.1.9/8.17.1.9/Submit) id 48GDYb0L029952 for openvpn-devel@lists.sourceforge.net; Mon, 16 Sep 2024 15:34:37 +0200 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Mon, 16 Sep 2024 15:34:35 +0200 Message-ID: <20240916133436.29943-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.44.2 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: -0.0 (/) X-Spam-Report: Spam detection software, running on the system "util-spamd-1.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: Arne Schwabe These functions are not used outside tun.c Change-Id: I028634dba74a273c725b0beb16b674897b3c23fa Signed-off-by: Arne Schwabe Acked-by: Gert Doering --- Content analysis details: (-0.0 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-Headers-End: 1sqBsP-0002YE-1R Subject: [Openvpn-devel] [PATCH v1] Make read/write_tun_header static X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: =?utf-8?q?1810359858264214457?= X-GMAIL-MSGID: =?utf-8?q?1810359858264214457?= From: Arne Schwabe These functions are not used outside tun.c Change-Id: I028634dba74a273c725b0beb16b674897b3c23fa Signed-off-by: Arne Schwabe Acked-by: Gert Doering --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/745 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Gert Doering diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 1f0eadd..0832375 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -1822,7 +1822,7 @@ } } -int +static int write_tun_header(struct tuntap *tt, uint8_t *buf, int len) { if (tt->type == DEV_TYPE_TUN) @@ -1855,7 +1855,7 @@ } } -int +static int read_tun_header(struct tuntap *tt, uint8_t *buf, int len) { if (tt->type == DEV_TYPE_TUN)