From nobody Wed Jan 12 21:05:18 2022 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 BDF52194648E; Wed, 12 Jan 2022 21:05:19 +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 4JZ0Sv0QD4z4Z04; Wed, 12 Jan 2022 21:05:19 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 DEBEC141DF; Wed, 12 Jan 2022 21:05:18 +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 20CL5IIm080026; Wed, 12 Jan 2022 21:05:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20CL5IHw080025; Wed, 12 Jan 2022 21:05:18 GMT (envelope-from git) Date: Wed, 12 Jan 2022 21:05:18 GMT Message-Id: <202201122105.20CL5IHw080025@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: 4b5c0c9b8131 - main - ipfilter: Correct function description 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: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4b5c0c9b813160842b942a4e978d482e8a7d3f7e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642021519; 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=0A+bTtc9eqTrcNSqgJ6KEjDPyZVM/Rkpfxwt1X8dOJg=; b=KW/XDdZ2qpE3T/gV9szfrxqK4gEfv/7EGmostCmaSungTt5K5z8icExlCOjPJUJsVB61bX MGp7NFdCAMMhm6g/dNvctntRupQ0IJkjTwsnWXyZtSflhH1nHtsHFClArlt89VRuIG6sno xxnS7stLmEPWgvuBj9y7853ybFlEMqDJxH7hfxKxj37ONKTKozzmqj3c9pPSvETIkxfXYc SGJcXk5h9z/VfnTRXSKH3a/P3fI1jA9qq10aPf2ASb/FNpmMc8+sXG+2U/1gLRkbb684hS I0/q0CU2BQVH++hM9UWcSK0zMurCAxWnXv4JtXi9M4Nl2G0+JIQXhOaSOTtyOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642021519; a=rsa-sha256; cv=none; b=E2XnMTIs8ZKeRMz+QkjoTh+2bhpPBFC849dFnpsnVcdVHTbf8kOqmKmPRydTkOO8KrkYFA pCyxCW8ZsGIe7TjvxTfcD6U5clxef+98APvfsqze4x8pj+e6hvIgxXlLR0twRu6oy82TGp vWzJFJo9O3whaLIejTReUOWML/QHJEw0PY92/nhDElyx3MRYrs0dIfajjzr2S/jt1rRgiR lsYU8x9PrzaZqJBP0chhLsy50hMolfHluFtEwYTm0zOP390ULPE+law6+ey4A1lP211G1O fjtdJeKm1KB/9vpTC7ttIxHUQ2HS3K1os0F+t5PAacIVQvKuD+frlXhkr1rhjw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=4b5c0c9b813160842b942a4e978d482e8a7d3f7e commit 4b5c0c9b813160842b942a4e978d482e8a7d3f7e Author: Cy Schubert AuthorDate: 2022-01-11 23:02:09 +0000 Commit: Cy Schubert CommitDate: 2022-01-12 20:58:05 +0000 ipfilter: Correct function description Correct the parameters descriptions for ipf_fix_outcksum and ipf_fix_incksum. MFC after: 3 days --- sys/netpfil/ipfilter/netinet/ip_nat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/netpfil/ipfilter/netinet/ip_nat.c b/sys/netpfil/ipfilter/netinet/ip_nat.c index 668fd6094965..1d6146ea404c 100644 --- a/sys/netpfil/ipfilter/netinet/ip_nat.c +++ b/sys/netpfil/ipfilter/netinet/ip_nat.c @@ -847,9 +847,10 @@ ipf_nat_hostmapdel(ipf_main_softc_t *softc, struct hostmap **hmp) /* ------------------------------------------------------------------------ */ /* Function: ipf_fix_outcksum */ /* Returns: Nil */ -/* Parameters: fin(I) - pointer to packet information */ +/* Parameters: cksum(I) - ipf_cksum_t, value of fin_cksum */ /* sp(I) - location of 16bit checksum to update */ /* n((I) - amount to adjust checksum by */ +/* partial(I) - partial checksum */ /* */ /* Adjusts the 16bit checksum by "n" for packets going out. */ /* ------------------------------------------------------------------------ */ @@ -885,9 +886,10 @@ ipf_fix_outcksum(int cksum, u_short *sp, u_32_t n, u_32_t partial) /* ------------------------------------------------------------------------ */ /* Function: ipf_fix_incksum */ /* Returns: Nil */ -/* Parameters: fin(I) - pointer to packet information */ +/* Parameters: cksum(I) - ipf_cksum_t, value of fin_cksum */ /* sp(I) - location of 16bit checksum to update */ /* n((I) - amount to adjust checksum by */ +/* partial(I) - partial checksum */ /* */ /* Adjusts the 16bit checksum by "n" for packets going in. */ /* ------------------------------------------------------------------------ */