ng_car.4 (210933) | ng_car.4 (231564) |
---|---|
1.\" Copyright (c) 2005 Nuno Antunes <nuno.antunes@gmail.com> 2.\" Copyright (c) 2007 Alexander Motin <mav@FreeBSD.org> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" | 1.\" Copyright (c) 2005 Nuno Antunes <nuno.antunes@gmail.com> 2.\" Copyright (c) 2007 Alexander Motin <mav@FreeBSD.org> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" |
26.\" $FreeBSD: head/share/man/man4/ng_car.4 210933 2010-08-06 14:33:42Z joel $ | 26.\" $FreeBSD: head/share/man/man4/ng_car.4 231564 2012-02-12 18:29:56Z ed $ |
27.\" 28.Dd March 11, 2007 29.Dt NG_CAR 4 30.Os 31.Sh NAME 32.Nm ng_car 33.Nd Committed Access Rate netgraph node type 34.Sh SYNOPSIS --- 83 unchanged lines hidden (view full) --- 118.It Dv NGM_CAR_SET_CONF Pq Li setconf 119Set node configuration to the specified at 120.Vt "struct ng_car_bulkconf" 121.It Dv NGM_CAR_GET_CONF Pq Li getconf 122Return current node configuration as 123.Vt "struct ng_car_bulkconf" 124.Bd -literal 125struct ng_car_hookconf { | 27.\" 28.Dd March 11, 2007 29.Dt NG_CAR 4 30.Os 31.Sh NAME 32.Nm ng_car 33.Nd Committed Access Rate netgraph node type 34.Sh SYNOPSIS --- 83 unchanged lines hidden (view full) --- 118.It Dv NGM_CAR_SET_CONF Pq Li setconf 119Set node configuration to the specified at 120.Vt "struct ng_car_bulkconf" 121.It Dv NGM_CAR_GET_CONF Pq Li getconf 122Return current node configuration as 123.Vt "struct ng_car_bulkconf" 124.Bd -literal 125struct ng_car_hookconf { |
126 u_int64_t cbs; /* Committed burst size */ 127 u_int64_t ebs; /* Exceeded/Peak burst size */ 128 u_int64_t cir; /* Committed information rate */ 129 u_int64_t pir; /* Peak information rate */ 130 u_int8_t green_action; /* Action for green packets */ 131 u_int8_t yellow_action; /* Action for yellow packets */ 132 u_int8_t red_action; /* Action for red packets */ 133 u_int8_t mode; /* operation mode */ 134 u_int8_t opt; /* mode options */ | 126 uint64_t cbs; /* Committed burst size */ 127 uint64_t ebs; /* Exceeded/Peak burst size */ 128 uint64_t cir; /* Committed information rate */ 129 uint64_t pir; /* Peak information rate */ 130 uint8_t green_action; /* Action for green packets */ 131 uint8_t yellow_action; /* Action for yellow packets */ 132 uint8_t red_action; /* Action for red packets */ 133 uint8_t mode; /* operation mode */ 134 uint8_t opt; /* mode options */ |
135}; 136 137/* possible actions (..._action) */ 138enum { 139 NG_CAR_ACTION_FORWARD = 1, 140 NG_CAR_ACTION_DROP 141}; 142 --- 13 unchanged lines hidden (view full) --- 156 struct ng_car_hookconf downstream; 157}; 158.Ed 159.It Dv NGM_CAR_GET_STATS Pq Li getstats 160Return node statistics as 161.Vt "struct ng_car_bulkstats" 162.Bd -literal 163struct ng_car_hookstats { | 135}; 136 137/* possible actions (..._action) */ 138enum { 139 NG_CAR_ACTION_FORWARD = 1, 140 NG_CAR_ACTION_DROP 141}; 142 --- 13 unchanged lines hidden (view full) --- 156 struct ng_car_hookconf downstream; 157}; 158.Ed 159.It Dv NGM_CAR_GET_STATS Pq Li getstats 160Return node statistics as 161.Vt "struct ng_car_bulkstats" 162.Bd -literal 163struct ng_car_hookstats { |
164 u_int64_t passed_pkts; 165 u_int64_t droped_pkts; 166 u_int64_t green_pkts; 167 u_int64_t yellow_pkts; 168 u_int64_t red_pkts; 169 u_int64_t errors; | 164 uint64_t passed_pkts; 165 uint64_t droped_pkts; 166 uint64_t green_pkts; 167 uint64_t yellow_pkts; 168 uint64_t red_pkts; 169 uint64_t errors; |
170}; 171 172struct ng_car_bulkstats { 173 struct ng_car_hookstats upstream; 174 struct ng_car_hookstats downstream; 175}; 176.Ed 177.It Dv NGM_CAR_CLR_STATS Pq Li clrstats --- 37 unchanged lines hidden --- | 170}; 171 172struct ng_car_bulkstats { 173 struct ng_car_hookstats upstream; 174 struct ng_car_hookstats downstream; 175}; 176.Ed 177.It Dv NGM_CAR_CLR_STATS Pq Li clrstats --- 37 unchanged lines hidden --- |