Monero
Loading...
Searching...
No Matches
getifstats.h
Go to the documentation of this file.
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 */
6
7#ifndef GETIFSTATS_H_INCLUDED
8#define GETIFSTATS_H_INCLUDED
9
10struct ifdata {
11 unsigned long opackets;
12 unsigned long ipackets;
13 unsigned long obytes;
14 unsigned long ibytes;
15 unsigned long baudrate;
16};
17
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 */
21int
22getifstats(const char * ifname, struct ifdata * data);
23
24#endif
25
int getifstats(const char *ifname, struct ifdata *data)
Definition getifstats.c:25
Definition getifstats.h:10
unsigned long obytes
Definition getifstats.h:13
unsigned long ipackets
Definition getifstats.h:12
unsigned long ibytes
Definition getifstats.h:14
unsigned long baudrate
Definition getifstats.h:15
unsigned long opackets
Definition getifstats.h:11
static const char * ifname
Definition testipfwrdr.c:17
std::string data
Definition base58.cpp:37