Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148070551
D51033.id157568.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
953 B
Referenced Files
None
Subscribers
None
D51033.id157568.diff
View Options
diff --git a/share/man/man4/ng_patch.4 b/share/man/man4/ng_patch.4
--- a/share/man/man4/ng_patch.4
+++ b/share/man/man4/ng_patch.4
@@ -80,7 +80,7 @@
.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 @@
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 1:36 PM (2 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29772289
Default Alt Text
D51033.id157568.diff (953 B)
Attached To
Mode
D51033: Clarify relative_offset for ng_patch(4)
Attached
Detach File
Event Timeline
Log In to Comment