18ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt/* 28ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * Common stats definitions for clients of dongle 38ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * ports 48ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * 5832523286e7a5d2fb5ea9f4b87659508d44cdf45Dmitry Shmidt * Copyright (C) 1999-2012, Broadcom Corporation 68ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * 7832523286e7a5d2fb5ea9f4b87659508d44cdf45Dmitry Shmidt * Unless you and Broadcom execute a separate written software license 88ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * agreement governing use of this software, this software is licensed to you 98ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * under the terms of the GNU General Public License version 2 (the "GPL"), 108ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * available at http://www.broadcom.com/licenses/GPLv2.php, with the 118ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * following added to such license: 128ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * 138ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * As a special exception, the copyright holders of this software give you 148ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * permission to link this software with independent modules, and to copy and 158ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * distribute the resulting executable under terms of your choice, provided that 168ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * you also meet, for each linked independent module, the terms and conditions of 178ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * the license of that module. An independent module is a module which is not 188ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * derived from this software. The special exception does not apply to any 198ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * modifications of the software. 208ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * 218ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * Notwithstanding the above, under no circumstances may you combine this 228ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * software in any way with any other Broadcom software provided under a license 238ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * other than the GPL, without Broadcom's express prior written consent. 248ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt * 25832523286e7a5d2fb5ea9f4b87659508d44cdf45Dmitry Shmidt * $Id: dngl_stats.h 241182 2011-02-17 21:50:03Z $ 268ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt */ 278ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt 288ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt#ifndef _dngl_stats_h_ 298ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt#define _dngl_stats_h_ 308ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt 318ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidttypedef struct { 328ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt unsigned long rx_packets; /* total packets received */ 338ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt unsigned long tx_packets; /* total packets transmitted */ 348ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt unsigned long rx_bytes; /* total bytes received */ 358ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt unsigned long tx_bytes; /* total bytes transmitted */ 368ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt unsigned long rx_errors; /* bad packets received */ 378ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt unsigned long tx_errors; /* packet transmit problems */ 388ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt unsigned long rx_dropped; /* packets dropped by dongle */ 398ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt unsigned long tx_dropped; /* packets dropped by dongle */ 408ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt unsigned long multicast; /* multicast packets received */ 418ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt} dngl_stats_t; 428ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt 438ce1727333a1c411bb88330d69f82386a118c6bfDmitry Shmidt#endif /* _dngl_stats_h_ */ 44