]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/network/IONetworkStats.h
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
30 #ifndef _IONETWORKSTATS_H
31 #define _IONETWORKSTATS_H
33 /*! @header IONetworkStats.h
34 @discussion Generic network statistics. */
36 //------------------------------------------------------------------------
37 // Generic network statistics. Common to all network interfaces.
39 // WARNING: This structure must match the statistics field in
40 // ifnet->if_data. This structure will overlay a portion of ifnet.
42 /*! @typedef IONetworkStats
43 @discussion Generic network statistics structure.
44 @field inputPackets count input packets.
45 @field inputErrors count input errors.
46 @field outputPackets count output packets.
47 @field outputErrors count output errors.
48 @field collisions count collisions on CDMA networks. */
58 /*! @defined kIONetworkStatsKey
59 @discussion Defines the name of an IONetworkData that contains
62 #define kIONetworkStatsKey "IONetworkStatsKey"
64 //------------------------------------------------------------------------
65 // Output queue statistics.
67 /*! @typedef IOOutputQueueStats
68 @discussion Statistics recorded by IOOutputQueue objects.
69 @field capacity queue capacity.
70 @field size current size of the queue.
71 @field peakSize peak size of the queue.
72 @field dropCount number of packets dropped.
73 @field outputCount number of output packets.
74 @field retryCount number of retries.
75 @field stallCount number of queue stalls. */
88 /*! @defined kIOOutputQueueStatsKey
89 @discussion Defines the name of an IONetworkData that contains
90 an IOOutputQueueStats. */
92 #define kIOOutputQueueStatsKey "IOOutputQueueStatsKey"
94 #endif /* !_IONETWORKSTATS_H */