ng_bridge.4 (207680) | ng_bridge.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_bridge.4 207680 2010-05-05 22:06:05Z zec $ | 35.\" $FreeBSD: head/share/man/man4/ng_bridge.4 231564 2012-02-12 18:29:56Z ed $ |
36.\" 37.Dd May 5, 2010 38.Dt NG_BRIDGE 4 39.Os 40.Sh NAME 41.Nm ng_bridge 42.Nd Ethernet bridging netgraph node type 43.Sh SYNOPSIS --- 59 unchanged lines hidden (view full) --- 103This command takes a 104.Dv "struct ng_bridge_config" 105as an argument: 106.Bd -literal -offset 0n 107/* Node configuration structure */ 108struct ng_bridge_config { 109 u_char ipfw[NG_BRIDGE_MAX_LINKS]; /* enable ipfw */ 110 u_char debugLevel; /* debug level */ | 36.\" 37.Dd May 5, 2010 38.Dt NG_BRIDGE 4 39.Os 40.Sh NAME 41.Nm ng_bridge 42.Nd Ethernet bridging netgraph node type 43.Sh SYNOPSIS --- 59 unchanged lines hidden (view full) --- 103This command takes a 104.Dv "struct ng_bridge_config" 105as an argument: 106.Bd -literal -offset 0n 107/* Node configuration structure */ 108struct ng_bridge_config { 109 u_char ipfw[NG_BRIDGE_MAX_LINKS]; /* enable ipfw */ 110 u_char debugLevel; /* debug level */ |
111 u_int32_t loopTimeout; /* link loopback mute time */ 112 u_int32_t maxStaleness; /* max host age before nuking */ 113 u_int32_t minStableAge; /* min time for a stable host */ | 111 uint32_t loopTimeout; /* link loopback mute time */ 112 uint32_t maxStaleness; /* max host age before nuking */ 113 uint32_t minStableAge; /* min time for a stable host */ |
114}; 115.Ed 116.Pp 117The 118.Dv ipfw 119array enables 120.Xr ipfirewall 4 121processing of IP packets received on the corresponding links. --- 28 unchanged lines hidden (view full) --- 150This command takes a four byte link number as an argument and 151returns a 152.Dv "struct ng_bridge_link_stats" 153containing statistics for the corresponding link, which must be 154currently connected: 155.Bd -literal -offset 0n 156/* Statistics structure (one for each link) */ 157struct ng_bridge_link_stats { | 114}; 115.Ed 116.Pp 117The 118.Dv ipfw 119array enables 120.Xr ipfirewall 4 121processing of IP packets received on the corresponding links. --- 28 unchanged lines hidden (view full) --- 150This command takes a four byte link number as an argument and 151returns a 152.Dv "struct ng_bridge_link_stats" 153containing statistics for the corresponding link, which must be 154currently connected: 155.Bd -literal -offset 0n 156/* Statistics structure (one for each link) */ 157struct ng_bridge_link_stats { |
158 u_int64_t recvOctets; /* total octets rec'd on link */ 159 u_int64_t recvPackets; /* total pkts rec'd on link */ 160 u_int64_t recvMulticasts; /* multicast pkts rec'd on link */ 161 u_int64_t recvBroadcasts; /* broadcast pkts rec'd on link */ 162 u_int64_t recvUnknown; /* pkts rec'd with unknown dest addr */ 163 u_int64_t recvRunts; /* pkts rec'd less than 14 bytes */ 164 u_int64_t recvInvalid; /* pkts rec'd with bogus source addr */ 165 u_int64_t xmitOctets; /* total octets xmit'd on link */ 166 u_int64_t xmitPackets; /* total pkts xmit'd on link */ 167 u_int64_t xmitMulticasts; /* multicast pkts xmit'd on link */ 168 u_int64_t xmitBroadcasts; /* broadcast pkts xmit'd on link */ 169 u_int64_t loopDrops; /* pkts dropped due to loopback */ 170 u_int64_t loopDetects; /* number of loop detections */ 171 u_int64_t memoryFailures; /* times couldn't get mem or mbuf */ | 158 uint64_t recvOctets; /* total octets rec'd on link */ 159 uint64_t recvPackets; /* total pkts rec'd on link */ 160 uint64_t recvMulticasts; /* multicast pkts rec'd on link */ 161 uint64_t recvBroadcasts; /* broadcast pkts rec'd on link */ 162 uint64_t recvUnknown; /* pkts rec'd with unknown dest addr */ 163 uint64_t recvRunts; /* pkts rec'd less than 14 bytes */ 164 uint64_t recvInvalid; /* pkts rec'd with bogus source addr */ 165 uint64_t xmitOctets; /* total octets xmit'd on link */ 166 uint64_t xmitPackets; /* total pkts xmit'd on link */ 167 uint64_t xmitMulticasts; /* multicast pkts xmit'd on link */ 168 uint64_t xmitBroadcasts; /* broadcast pkts xmit'd on link */ 169 uint64_t loopDrops; /* pkts dropped due to loopback */ 170 uint64_t loopDetects; /* number of loop detections */ 171 uint64_t memoryFailures; /* times couldn't get mem or mbuf */ |
172}; 173.Ed 174.It Dv NGM_BRIDGE_CLR_STATS 175This command takes a four byte link number as an argument and 176clears the statistics for that link. 177.It Dv NGM_BRIDGE_GETCLR_STATS 178Same as 179.Dv NGM_BRIDGE_GET_STATS , --- 34 unchanged lines hidden --- | 172}; 173.Ed 174.It Dv NGM_BRIDGE_CLR_STATS 175This command takes a four byte link number as an argument and 176clears the statistics for that link. 177.It Dv NGM_BRIDGE_GETCLR_STATS 178Same as 179.Dv NGM_BRIDGE_GET_STATS , --- 34 unchanged lines hidden --- |