Skip to content

Commit eab94b5

Browse files
felixtheredconcussious
authored andcommitted
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
1 parent 1395712 commit eab94b5

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

share/man/man4/ng_patch.4

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Sets the data link type on the
8080
.Va in
8181
hook (to help calculate relative offset). Currently, supported types are
8282
.Cm DLT_RAW
83-
(raw IP datagrams , no offset applied, the default) and
83+
(raw IP datagrams, no offset applied, the default) and
8484
.Cm DLT_EN10MB
8585
(Ethernet). DLT_ definitions can be found in
8686
.In net/bpf.h .
@@ -135,6 +135,17 @@ corresponding checksum before transmitting packet on output interface.
135135
The
136136
.Nm
137137
node does not do any checksum correction by itself.
138+
.Pp
139+
The
140+
.Va offset
141+
value for the
142+
.Vt ng_patch_op
143+
structure is calculated from zero by default (the first byte of
144+
packet headers).
145+
If
146+
.Va relative_offset
147+
is enabled (set to 1) during configuration, the operation will have an
148+
additional amount added to the offset based on the data link type.
138149
.It Dv NGM_PATCH_GETCONFIG Pq Ic getconfig
139150
This control message returns the current set of modify operations,
140151
in the form of a

0 commit comments

Comments
 (0)