2 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
3 * (c) 2006 Thomas Bernard
4 * This software is subject to the conditions detailed
5 * in the LICENCE file provided within the distribution */
9 #include "../getifstats.h"
12 main(int argc
, char * * argv
)
16 printf("usage: %s if_name\n", argv
[0]);
19 r
= getifstats(argv
[1], &data
);
21 printf("getifstats() failed\n");
24 printf("ipackets = %10lu opackets = %10lu\n",
25 data
.ipackets
, data
.opackets
);
26 printf("ibytes = %10lu obytes = %10lu\n",
27 data
.ibytes
, data
.obytes
);
28 printf("baudrate = %10lu\n", data
.baudrate
);