ng_source.4 (106272) | ng_source.4 (106273) |
---|---|
1.\" ng_source.4 2.\" Copyright 2002 Sandvine Inc. 3.\" All rights reserved. 4.\" 5.\" Subject to the following obligations and disclaimer of warranty, use and 6.\" redistribution of this software, in source or object code forms, with or 7.\" without modifications are expressly permitted by Sandvine Inc.; provided, 8.\" however, that: --- 17 unchanged lines hidden (view full) --- 26.\" PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR 27.\" SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30.\" THIS SOFTWARE, EVEN IF SANDVINE IS ADVISED OF THE POSSIBILITY OF SUCH 31.\" DAMAGE. 32.\" 33.\" Author: Dave Chapeskie <dchapeskie@sandvine.com> | 1.\" ng_source.4 2.\" Copyright 2002 Sandvine Inc. 3.\" All rights reserved. 4.\" 5.\" Subject to the following obligations and disclaimer of warranty, use and 6.\" redistribution of this software, in source or object code forms, with or 7.\" without modifications are expressly permitted by Sandvine Inc.; provided, 8.\" however, that: --- 17 unchanged lines hidden (view full) --- 26.\" PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR 27.\" SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30.\" THIS SOFTWARE, EVEN IF SANDVINE IS ADVISED OF THE POSSIBILITY OF SUCH 31.\" DAMAGE. 32.\" 33.\" Author: Dave Chapeskie <dchapeskie@sandvine.com> |
34.\" $FreeBSD: head/share/man/man4/ng_source.4 106272 2002-10-31 23:26:02Z julian $ | 34.\" $FreeBSD: head/share/man/man4/ng_source.4 106273 2002-10-31 23:36:16Z julian $ |
35.\" 36.Dd November 1, 2002 37.Dt NG_SOURCE 4 38.Os 39.Sh NAME 40.Nm ng_source 41.Nd netgraph discard node type 42.Sh SYNOPSIS --- 35 unchanged lines hidden (view full) --- 78.Nm source 79node has two hooks: 'input' and 'output'. The 'output' 80hook must remain connected, its disconnection will shutdown the node. 81.Sh CONTROL MESSAGES 82This node type supports the generic control messages as well as the following, 83which must be sent with the 84.Em NGM_SOURCE_COOKIE 85attached. | 35.\" 36.Dd November 1, 2002 37.Dt NG_SOURCE 4 38.Os 39.Sh NAME 40.Nm ng_source 41.Nd netgraph discard node type 42.Sh SYNOPSIS --- 35 unchanged lines hidden (view full) --- 78.Nm source 79node has two hooks: 'input' and 'output'. The 'output' 80hook must remain connected, its disconnection will shutdown the node. 81.Sh CONTROL MESSAGES 82This node type supports the generic control messages as well as the following, 83which must be sent with the 84.Em NGM_SOURCE_COOKIE 85attached. |
86.Bl -tag -width ######## | 86.Bl -tag -width ###### |
87.It NGM_SOURCE_GET_STATS | 87.It NGM_SOURCE_GET_STATS |
88"getstats": | 88.Bl -tag -width ######### 89.It "getstats": |
89Returns a structure containing the following fields: 90.\".Bl -bullet -compact -offset 2n | 90Returns a structure containing the following fields: 91.\".Bl -bullet -compact -offset 2n |
91.Bl -tag -width ######## | 92.Bl -tag -width ##### |
92.It outOctets: 93The number of octets/bytes sent out the 'output' hook. 94.It outFrames: 95The number of frames/packets sent out the 'output' hook. 96.It queueOctets: 97The number of octets queued from the 'input' hook. 98.It queueFrames: 99The number of frames queued from the 'input' hook. 100.It startTime: 101The time the last start message was recieved. 102.It endTime: 103The time the last end message was recieved or 104the output packet count was reached. 105.It elapsedTime: 106Either endTime-startTime or current time - startTime. 107.El | 93.It outOctets: 94The number of octets/bytes sent out the 'output' hook. 95.It outFrames: 96The number of frames/packets sent out the 'output' hook. 97.It queueOctets: 98The number of octets queued from the 'input' hook. 99.It queueFrames: 100The number of frames queued from the 'input' hook. 101.It startTime: 102The time the last start message was recieved. 103.It endTime: 104The time the last end message was recieved or 105the output packet count was reached. 106.It elapsedTime: 107Either endTime-startTime or current time - startTime. 108.El |
109.El |
|
108.It NGM_SOURCE_CLR_STATS 109"clrstats": 110Clears and resets the statistics returned by getstats (except 111queueOctects and queueFrames). 112.It NGM_SOURCE_GETCLR_STATS 113"getclrstats": 114As getstats but clears the statistics at the same time. 115.It NGM_SOURCE_START --- 149 unchanged lines hidden --- | 110.It NGM_SOURCE_CLR_STATS 111"clrstats": 112Clears and resets the statistics returned by getstats (except 113queueOctects and queueFrames). 114.It NGM_SOURCE_GETCLR_STATS 115"getclrstats": 116As getstats but clears the statistics at the same time. 117.It NGM_SOURCE_START --- 149 unchanged lines hidden --- |