Deleted Added
full compact
ng_one2many.4 (219127) ng_one2many.4 (231564)
1.\" Copyright (c) 2000 Whistle Communications, 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 Whistle Communications;
7.\" provided, however, that:
8.\" 1. Any and all reproductions of the source or object code must include the

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

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 WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
31.\" OF SUCH DAMAGE.
32.\"
33.\" Author: Archie Cobbs <archie@FreeBSD.org>
34.\"
1.\" Copyright (c) 2000 Whistle Communications, 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 Whistle Communications;
7.\" provided, however, that:
8.\" 1. Any and all reproductions of the source or object code must include the

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

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 WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
31.\" OF SUCH DAMAGE.
32.\"
33.\" Author: Archie Cobbs <archie@FreeBSD.org>
34.\"
35.\" $FreeBSD: head/share/man/man4/ng_one2many.4 219127 2011-03-01 13:10:56Z ae $
35.\" $FreeBSD: head/share/man/man4/ng_one2many.4 231564 2012-02-12 18:29:56Z ed $
36.\"
37.Dd March 1, 2011
38.Dt NG_ONE2MANY 4
39.Os
40.Sh NAME
41.Nm ng_one2many
42.Nd packet multiplexing netgraph node type
43.Sh SYNOPSIS

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

151.Bl -tag -width foo
152.It Dv NGM_ONE2MANY_SET_CONFIG
153Sets the node configuration using a
154.Dv "struct ng_one2many_link_config"
155as the control message argument:
156.Bd -literal
157/* Node configuration structure */
158struct ng_one2many_config {
36.\"
37.Dd March 1, 2011
38.Dt NG_ONE2MANY 4
39.Os
40.Sh NAME
41.Nm ng_one2many
42.Nd packet multiplexing netgraph node type
43.Sh SYNOPSIS

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

151.Bl -tag -width foo
152.It Dv NGM_ONE2MANY_SET_CONFIG
153Sets the node configuration using a
154.Dv "struct ng_one2many_link_config"
155as the control message argument:
156.Bd -literal
157/* Node configuration structure */
158struct ng_one2many_config {
159 u_int32_t xmitAlg; /* how to distribute packets */
160 u_int32_t failAlg; /* how to detect link failure */
159 uint32_t xmitAlg; /* how to distribute packets */
160 uint32_t failAlg; /* how to detect link failure */
161 u_char enabledLinks[NG_ONE2MANY_MAX_LINKS];
162};
163.Ed
164.Pp
165Currently, the valid settings for the
166.Dv xmitAlg
167field are
168.Dv NG_ONE2MANY_XMIT_ROUNDROBIN

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

182returns a
183.Dv "struct ng_one2many_link_stats"
184containing statistics for the corresponding
185.Dv many
186link, which may or may not be currently connected:
187.Bd -literal
188/* Statistics structure (one for each link) */
189struct ng_one2many_link_stats {
161 u_char enabledLinks[NG_ONE2MANY_MAX_LINKS];
162};
163.Ed
164.Pp
165Currently, the valid settings for the
166.Dv xmitAlg
167field are
168.Dv NG_ONE2MANY_XMIT_ROUNDROBIN

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

182returns a
183.Dv "struct ng_one2many_link_stats"
184containing statistics for the corresponding
185.Dv many
186link, which may or may not be currently connected:
187.Bd -literal
188/* Statistics structure (one for each link) */
189struct ng_one2many_link_stats {
190 u_int64_t recvOctets; /* total octets rec'd on link */
191 u_int64_t recvPackets; /* total pkts rec'd on link */
192 u_int64_t xmitOctets; /* total octets xmit'd on link */
193 u_int64_t xmitPackets; /* total pkts xmit'd on link */
190 uint64_t recvOctets; /* total octets rec'd on link */
191 uint64_t recvPackets; /* total pkts rec'd on link */
192 uint64_t xmitOctets; /* total octets xmit'd on link */
193 uint64_t xmitPackets; /* total pkts xmit'd on link */
194};
195.Ed
196.Pp
197To access statistics for the
198.Dv one
199link, use the link number
200.Dv -1 .
201.It Dv NGM_ONE2MANY_CLR_STATS

--- 76 unchanged lines hidden ---
194};
195.Ed
196.Pp
197To access statistics for the
198.Dv one
199link, use the link number
200.Dv -1 .
201.It Dv NGM_ONE2MANY_CLR_STATS

--- 76 unchanged lines hidden ---