FreeBSD Bugzilla – Attachment 228344 Details for
Bug 251833
relative_offset is not documented in ng_patch man page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ng_patch(4) patch
ng_patch.4.patch (text/plain), 1.20 KB, created by
Felix Johnson
on 2021-10-02 03:53:30 UTC
(
hide
)
Description:
ng_patch(4) patch
Filename:
MIME Type:
Creator:
Felix Johnson
Created:
2021-10-02 03:53:30 UTC
Size:
1.20 KB
patch
obsolete
>diff --git a/share/man/man4/ng_patch.4 b/share/man/man4/ng_patch.4 >index f9f893fa3c0..82de9e953e9 100644 >--- a/share/man/man4/ng_patch.4 >+++ b/share/man/man4/ng_patch.4 >@@ -82,10 +82,10 @@ 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 . >+.In net/dlt.h . > If you want to work on the link layer header you must use no additional offset by specifying > .Cm DLT_RAW . > If >@@ -137,6 +137,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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 251833
: 228344