"Fossies" - the Fresh Open Source Software Archive

Member "vnstat-2.9/src/ifinfo.h" (26 Jul 2021, 839 Bytes) of package /linux/misc/vnstat-2.9.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ifinfo.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.7_vs_2.8.

    1 #ifndef IFINFO_H
    2 #define IFINFO_H
    4 #include "iflist.h"
    6 #if defined(BSD_VNSTAT)
    7 #include <net/if.h>
    8 #endif
   10 int getifinfo(const char *iface);
   11 int getifliststring(char **ifacelist, int showspeed);
   12 int getiflist(iflist **ifl, const int getspeed, const int validate);
   13 #if defined(__linux__) || defined(CHECK_VNSTAT)
   14 int getiflist_linux(iflist **ifl, const int getspeed, const int validate);
   15 #elif defined(BSD_VNSTAT)
   16 int getiflist_bsd(iflist **ifl, const int getspeed, const int validate);
   17 #endif
   18 int readproc(const char *iface);
   19 int readsysclassnet(const char *iface);
   20 #if defined(BSD_VNSTAT)
   21 int getifdata(const char *iface, struct if_data *ifd);
   22 int readifaddrs(const char *iface);
   23 #endif
   24 uint32_t getifspeed(const char *iface);
   25 int isifavailable(const char *iface);
   26 int isifvalid(const char *iface);
   27 int istun(const char *iface);
   29 #endif