Deleted Added
full compact
ng_source.4 (167166) ng_source.4 (242997)
1.\" Copyright 2002-2007 Sandvine Inc.
2.\" All rights reserved.
3.\"
4.\" Subject to the following obligations and disclaimer of warranty, use and
5.\" redistribution of this software, in source or object code forms, with or
6.\" without modifications are expressly permitted by Sandvine Inc.; provided,
7.\" however, that:
8.\" 1. Any and all reproductions of the source or object code must include the

--- 16 unchanged lines hidden (view full) ---

25.\" PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
26.\" SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
27.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29.\" THIS SOFTWARE, EVEN IF SANDVINE IS ADVISED OF THE POSSIBILITY OF SUCH
30.\" DAMAGE.
31.\"
32.\" Author: Dave Chapeskie
1.\" Copyright 2002-2007 Sandvine Inc.
2.\" All rights reserved.
3.\"
4.\" Subject to the following obligations and disclaimer of warranty, use and
5.\" redistribution of this software, in source or object code forms, with or
6.\" without modifications are expressly permitted by Sandvine Inc.; provided,
7.\" however, that:
8.\" 1. Any and all reproductions of the source or object code must include the

--- 16 unchanged lines hidden (view full) ---

25.\" PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
26.\" SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
27.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29.\" THIS SOFTWARE, EVEN IF SANDVINE IS ADVISED OF THE POSSIBILITY OF SUCH
30.\" DAMAGE.
31.\"
32.\" Author: Dave Chapeskie
33.\" $FreeBSD: head/share/man/man4/ng_source.4 167166 2007-03-02 12:55:24Z emaste $
33.\" $FreeBSD: head/share/man/man4/ng_source.4 242997 2012-11-13 20:41:36Z joel $
34.\"
35.Dd March 1, 2007
36.Dt NG_SOURCE 4
37.Os
38.Sh NAME
39.Nm ng_source
40.Nd netgraph node for traffic generation
41.Sh SYNOPSIS

--- 64 unchanged lines hidden (view full) ---

106sent, or upon receipt of a
107.Dv NGM_SOURCE_STOP
108message, the node stops sending data.
109.Sh CONTROL MESSAGES
110This node type supports the generic control messages as well as the following,
111which must be sent with the
112.Dv NGM_SOURCE_COOKIE
113attached.
34.\"
35.Dd March 1, 2007
36.Dt NG_SOURCE 4
37.Os
38.Sh NAME
39.Nm ng_source
40.Nd netgraph node for traffic generation
41.Sh SYNOPSIS

--- 64 unchanged lines hidden (view full) ---

106sent, or upon receipt of a
107.Dv NGM_SOURCE_STOP
108message, the node stops sending data.
109.Sh CONTROL MESSAGES
110This node type supports the generic control messages as well as the following,
111which must be sent with the
112.Dv NGM_SOURCE_COOKIE
113attached.
114.Bl -tag -width indent
114.Bl -tag -width foo
115.It Dv NGM_SOURCE_GET_STATS Pq Ic getstats
116Returns a structure containing the following fields:
115.It Dv NGM_SOURCE_GET_STATS Pq Ic getstats
116Returns a structure containing the following fields:
117.Bl -tag -width indent
117.Bl -tag -width ".Va elapsedTime"
118.It Va outOctets
119The number of octets/bytes sent out the
120.Va output
121hook.
122.It Va outFrames
123The number of frames/packets sent out the
124.Va output
125hook.

--- 54 unchanged lines hidden (view full) ---

180.Vt uint32_t
181parameter which puts upper limit on the amount of packets
182sent per second.
183.It Dv NGM_SOURCE_SET_TIMESTAMP Pq Ic settimestamp
184This message specifies that a timestamp (in the format of a
185.Vt "struct timeval" )
186should be inserted in the transmitted packets.
187This message requires a structure containing the following fields:
118.It Va outOctets
119The number of octets/bytes sent out the
120.Va output
121hook.
122.It Va outFrames
123The number of frames/packets sent out the
124.Va output
125hook.

--- 54 unchanged lines hidden (view full) ---

180.Vt uint32_t
181parameter which puts upper limit on the amount of packets
182sent per second.
183.It Dv NGM_SOURCE_SET_TIMESTAMP Pq Ic settimestamp
184This message specifies that a timestamp (in the format of a
185.Vt "struct timeval" )
186should be inserted in the transmitted packets.
187This message requires a structure containing the following fields:
188.Bl -tag -width indent
188.Bl -tag -width ".Va offset"
189.It Va offset
190The offset from the beginning of the packet at which the timestamp is to be
191inserted.
192.It Va flags
193Set to 1 to enable the timestamp.
194.El
195.It Dv NGM_SOURCE_GET_TIMESTAMP Pq Ic gettimestamp
196Returns the current timestamp settings in the form of the structure described
197above.
198.It Dv NGM_SOURCE_SET_COUNTER Pq Ic setcounter
199This message specifies that a counter should be embedded in transmitted
200packets.
201Up to four counters may be independently configured.
202This message requires a structure containing the following fields:
189.It Va offset
190The offset from the beginning of the packet at which the timestamp is to be
191inserted.
192.It Va flags
193Set to 1 to enable the timestamp.
194.El
195.It Dv NGM_SOURCE_GET_TIMESTAMP Pq Ic gettimestamp
196Returns the current timestamp settings in the form of the structure described
197above.
198.It Dv NGM_SOURCE_SET_COUNTER Pq Ic setcounter
199This message specifies that a counter should be embedded in transmitted
200packets.
201Up to four counters may be independently configured.
202This message requires a structure containing the following fields:
203.Bl -tag -width indent
203.Bl -tag -width ".Va increment"
204.It Va offset
205The offset from the beginning of the packet at which the counter is to be
206inserted.
207.It Va flags
208Set to 1 to enable the counter.
209.It Va width
210The byte width of the counter.
211It may be 1, 2, or 4.

--- 138 unchanged lines hidden ---
204.It Va offset
205The offset from the beginning of the packet at which the counter is to be
206inserted.
207.It Va flags
208Set to 1 to enable the counter.
209.It Va width
210The byte width of the counter.
211It may be 1, 2, or 4.

--- 138 unchanged lines hidden ---