usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / miniupnpd / getifstats.h
blobe14b853f5764e001220317f28b21a1396566715d
1 /* MiniUPnP project
2 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
3 * (c) 2006-2008 Thomas Bernard
4 * This software is subject to the conditions detailed
5 * in the LICENCE file provided within the distribution */
7 #ifndef GETIFSTATS_H_INCLUDED
8 #define GETIFSTATS_H_INCLUDED
10 struct ifdata {
11 unsigned long opackets;
12 unsigned long ipackets;
13 unsigned long obytes;
14 unsigned long ibytes;
15 unsigned long baudrate;
18 /* getifstats()
19 * Fill the ifdata structure with statistics for network interface ifname.
20 * Return 0 in case of success, -1 for bad arguments or any error */
21 int
22 getifstats(const char * ifname, struct ifdata * data);
24 #endif