aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Johnson <felix.the.red@gmail.com>2025-06-25 04:49:51 +0000
committerAlexander Ziaee <ziaee@FreeBSD.org>2025-06-25 05:05:48 +0000
commiteab94b59a7743113c7f101846f498e539b2d094d (patch)
tree48f6187ece1e8a34e52041166389ec8955066d71
parent1395712cab8e95808064ba68c5a792b7cd0fe35f (diff)
-rw-r--r--share/man/man4/ng_patch.413
1 files changed, 12 insertions, 1 deletions
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