netstat
struct netstat *ns_before, *ns_after;
struct netstat *ns_after, *ns_before;
struct netstat *ns_after, *ns_before;
struct netstat;
extern struct netstat *netstat_read(void);
extern void netstat_free(struct netstat *ns);
extern void netstat_print_diff(struct netstat *nsa, struct netstat *nsb);
extern uint64_t netstat_get(struct netstat *ns,
struct netstat *ns = netstat_read();
static void snmp6_read(FILE *fnetstat, struct netstat **dest)
struct netstat *type = lookup_get(*dest, snmp6_name, strlen(snmp6_name));
struct netstat *netstat_read(void)
struct netstat *ret = 0;
struct netstat *next;
void netstat_free(struct netstat *ns)
struct netstat *prev = ns;
__netstat_print_diff(uint64_t a, struct netstat *nsb, size_t i)
static struct netstat *lookup_type(struct netstat *ns,
void netstat_print_diff(struct netstat *nsa, struct netstat *nsb)
uint64_t netstat_get(struct netstat *ns, const char *name, bool *not_found)
static struct netstat *lookup_get(struct netstat *ns,
struct netstat *ret;
ret = malloc(sizeof(struct netstat));
static struct netstat *lookup_get_column(struct netstat *ns, const char *line)
static void netstat_read_type(FILE *fnetstat, struct netstat **dest, char *line)
struct netstat *type = lookup_get_column(*dest, line);
struct netstat *ns;
struct netstat *ns_before, *ns_after;
static void netstats_check(struct netstat *before, struct netstat *after,
struct netstat *ns_before, *ns_after;
struct netstat *ns_before, *ns_after;