From nobody Fri Jul 04 18:23:12 2025 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 4bYhpB00T9z61jQ3; Fri, 04 Jul 2025 18:23:13 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bYhp91ZLrz3nV2; Fri, 04 Jul 2025 18:23:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751653393; 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=aU7/RQHAGVoZaDvwGmUClilUoKySo1FHXqSRk2Xssek=; b=u7hVm8cpQG2s8mR/ZuAaoJp4Hwm82GaKGV5OFvZlicO0lm/iVonaU/3VCuGoWFst+rYyfF bs3HPCs0MTNoov3XkE60b4nJZnc/Hp1FzkZUxYlKUMWRgwvOQOqDoYM53Pbd2NQxrUhbln E1f8teImWqTiRdH07XBFs7jGrQRWHus+57fJzHm+749ryH0OBaIPZ4GGMtQSqNG0nLPM+v gsd7O5P5mfRKn2xYgP2TGIJEGS8fWr7G3yH/EdT4yhmpaxLNwoDvDz13ulAJd0AORp0/L8 4WSOP0PLHdzcl865xJ654W0LWK/rklRnTOYxTLFCgsT8XzqmwoMbNZe0ghfu+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751653393; 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=aU7/RQHAGVoZaDvwGmUClilUoKySo1FHXqSRk2Xssek=; b=CcwWfY/VCO53cP5pJiWTKtOpt9zEczdJOjUDBL/rVHkfNSck1ivyM7jonsmbU5K4sZnZVH Jp7LcGTYQOcYiPCeoytTMz49OzKSgm33+xeiDu9UlvjNCyzxzJsVENQNNuM2gpIvxtWdyQ klAYFf5vTEgML4nJZQMnb+WmjEl4Riy0w7GxK75Gbz3n+L7pHiOT2F8Xxw6iKdqJ6r2w7Q JBktI5rnruPE4ApRazZzNBNAQBeFY+9MzPDsd+UKrD+u69Qpbow3XxOwYdLLNupQCofjO6 L51I1dGuX5l9kSK3LGzTT+z1e6TCWxhGuc64O0LVTgFe+JrbOTsS6leWzT3Vvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1751653393; a=rsa-sha256; cv=none; b=qdeK0MHlhP17pKfTck1OyiDd8D57xUc1ZeZgLrU4V/bV1KNormuF6ecv8NMitxiizLyUei xbyRqUyqIPTd/7exi+83R/SdFXjVl5T24q0vuLNBDjYOMle443Lvdbaq0KPs+AXJvRe0Ol pOYbQLCUYbFBHRxYGe+AkqTMwxr0R8TysLVPeMZ08axmqW0S3K8chlUJZO4hiwrapJWTtB /RT+TiV6jE6RIVuoNTplPSKNcly8ElkFOetbIGf5mPXiibZB4VzhQ8tig+DgEb4D8H18I2 Y0KVJWgmnwFfTBRJpP0wn25DRrqTmcRNENnhqMMrESFQ0V9njqTdGLmA0SFT7A== 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 4bYhp871VWz11rm; Fri, 04 Jul 2025 18:23:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 564INCpG069887; Fri, 4 Jul 2025 18:23:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 564INC2p069884; Fri, 4 Jul 2025 18:23:12 GMT (envelope-from git) Date: Fri, 4 Jul 2025 18:23:12 GMT Message-Id: <202507041823.564INC2p069884@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: 3e235a37e550 - stable/14 - ng_patch.4: Clarify relative_offset 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3e235a37e550233e9a04ccb8ca63708da97f5868 Auto-Submitted: auto-generated The branch stable/14 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=3e235a37e550233e9a04ccb8ca63708da97f5868 commit 3e235a37e550233e9a04ccb8ca63708da97f5868 Author: Felix Johnson AuthorDate: 2025-06-25 04:49:51 +0000 Commit: Alexander Ziaee CommitDate: 2025-07-04 18:20:34 +0000 ng_patch.4: Clarify relative_offset While here, fix an extra space typo. PR: 251833 Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D51033 (cherry picked from commit eab94b59a7743113c7f101846f498e539b2d094d) --- share/man/man4/ng_patch.4 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/share/man/man4/ng_patch.4 b/share/man/man4/ng_patch.4 index 7a8543fd7dd8..9c0d7a8ee512 100644 --- a/share/man/man4/ng_patch.4 +++ b/share/man/man4/ng_patch.4 @@ -80,7 +80,7 @@ Sets the data link type on the .Va in hook (to help calculate relative offset). Currently, supported types are .Cm DLT_RAW -(raw IP datagrams , no offset applied, the default) and +(raw IP datagrams, no offset applied, the default) and .Cm DLT_EN10MB (Ethernet). DLT_ definitions can be found in .In net/bpf.h . @@ -135,6 +135,17 @@ corresponding checksum before transmitting packet on output interface. The .Nm node does not do any checksum correction by itself. +.Pp +The +.Va offset +value for the +.Vt ng_patch_op +structure is calculated from zero by default (the first byte of +packet headers). +If +.Va relative_offset +is enabled (set to 1) during configuration, the operation will have an +additional amount added to the offset based on the data link type. .It Dv NGM_PATCH_GETCONFIG Pq Ic getconfig This control message returns the current set of modify operations, in the form of a