vnstat
2.9
About: vnStat is a console-based network traffic monitor (using the /proc filesystem).
![]() ![]() |
Go to the source code of this file.
Functions | |
int | iflistadd (iflist **ifl, const char *iface, const uint32_t bandwidth) |
int | iflistsearch (iflist **ifl, const char *iface) |
void | iflistfree (iflist **ifl) |
int iflistadd | ( | iflist ** | ifl, |
const char * | iface, | ||
const uint32_t | bandwidth | ||
) |
Definition at line 4 of file iflist.c.
References iflist::bandwidth, iflist::interface, iflist::next, and strncpy_nt().
Referenced by cleanremovedinterfaces(), and db_getiflist_sorted().
void iflistfree | ( | iflist ** | ifl | ) |
Definition at line 43 of file iflist.c.
References iflist::next.
Referenced by addinterfaces(), cleanremovedinterfaces(), db_removeoldentries_top(), filldatabaselist(), getifliststring(), handledatabase(), handleifselection(), handleshowdata(), rescandatabaseforinterfaces(), showdbiflist(), and showiflist().
int iflistsearch | ( | iflist ** | ifl, |
const char * | iface | ||
) |
Definition at line 30 of file iflist.c.
References iflist::interface, and iflist::next.
Referenced by handleifselection().