File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ Sets the data link type on the
8080.Va in
8181hook (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.
135135The
136136.Nm
137137node 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
139150This control message returns the current set of modify operations,
140151in the form of a
You can’t perform that action at this time.
0 commit comments