Lines 82-91
Sets the data link type on the
Link Here
|
82 |
.Va in |
82 |
.Va in |
83 |
hook (to help calculate relative offset). Currently, supported types are |
83 |
hook (to help calculate relative offset). Currently, supported types are |
84 |
.Cm DLT_RAW |
84 |
.Cm DLT_RAW |
85 |
(raw IP datagrams , no offset applied, the default) and |
85 |
(raw IP datagrams, no offset applied, the default) and |
86 |
.Cm DLT_EN10MB |
86 |
.Cm DLT_EN10MB |
87 |
(Ethernet). DLT_ definitions can be found in |
87 |
(Ethernet). DLT_ definitions can be found in |
88 |
.In net/bpf.h . |
88 |
.In net/dlt.h . |
89 |
If you want to work on the link layer header you must use no additional offset by specifying |
89 |
If you want to work on the link layer header you must use no additional offset by specifying |
90 |
.Cm DLT_RAW . |
90 |
.Cm DLT_RAW . |
91 |
If |
91 |
If |
Lines 137-142
corresponding checksum before transmitting packet on output interface.
Link Here
|
137 |
The |
137 |
The |
138 |
.Nm |
138 |
.Nm |
139 |
node does not do any checksum correction by itself. |
139 |
node does not do any checksum correction by itself. |
|
|
140 |
.Pp |
141 |
The |
142 |
.Va offset |
143 |
value for the |
144 |
.Vt ng_patch_op |
145 |
structure is calculated from zero by default (the first byte of |
146 |
packet headers). |
147 |
If |
148 |
.Va relative_offset |
149 |
is enabled (set to 1) during configuration, the operation will have an |
150 |
additional amount added to the offset based on the data link type. |
140 |
.It Dv NGM_PATCH_GETCONFIG Pq Ic getconfig |
151 |
.It Dv NGM_PATCH_GETCONFIG Pq Ic getconfig |
141 |
This control message returns the current set of modify operations, |
152 |
This control message returns the current set of modify operations, |
142 |
in the form of a |
153 |
in the form of a |