From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 2477E5A027A for ; Wed, 28 Feb 2024 12:25:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1709119522; bh=AUp8uVZR9SmPQbOKWgVe28ONdVUh2CyPAOkK+tKWnOo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QQCDbqcIUsatcFH0JQxXyeNq/arPUqQ9RLFeBYG/s/cad1DhYC0VEItUeeb+EoU42 r9Ehp995WR1XHWGzCr7ER6/XDCKCTnkrDw9Pmi8HzNNkk0jPD9HXrNcoVzEkZ1C7ZN 2xMpzMQENV+4zHh1tIS4Jg52rgztF7wF16i7zSy4BtqWIB62sm0Ki4116HQhMawjVm 3sfrgcnUPnvbTudhp+nWGz+uyW1e1VxzPo/+g0Bo7IURwkkUe/i069jYyFAR4lv/1+ maJ/wfG64JBfWxCMgaJmYCpjZJtDcfuV3zO+PPyTSjjQqkV/j3d5xCZXs+T6o+KWNL NCew35Gmrv2+Q== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4TlBq66z2Vz4wyy; Wed, 28 Feb 2024 22:25:22 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v3 19/20] port_fwd: Fix copypasta error in port_fwd_scan_udp() comments Date: Wed, 28 Feb 2024 22:25:19 +1100 Message-ID: <20240228112520.2078220-20-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240228112520.2078220-1-david@gibson.dropbear.id.au> References: <20240228112520.2078220-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: G6YEWESE6PQBYH3QBLM7LJJKN5SSWXZC X-Message-ID-Hash: G6YEWESE6PQBYH3QBLM7LJJKN5SSWXZC X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: port_fwd_scan_udp() handles UDP, as the name suggests, but its function comment has the wrong function name and references TCP, due to a bad copy-paste from port_fwd_scan_tcp(). Signed-off-by: David Gibson --- port_fwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port_fwd.c b/port_fwd.c index 6f6c836c..a7121fe2 100644 --- a/port_fwd.c +++ b/port_fwd.c @@ -85,7 +85,7 @@ void port_fwd_scan_tcp(struct port_fwd *fwd, const struct port_fwd *rev) } /** - * port_fwd_scan_tcp() - Scan /proc to update TCP forwarding map + * port_fwd_scan_udp() - Scan /proc to update UDP forwarding map * @fwd: Forwarding information to update * @rev: Forwarding information for the reverse direction * @tcp_fwd: Corresponding TCP forwarding information -- 2.43.2