dhcpd-pools
3.0
ISC dhcpd lease usage analyser
|
The main(), and core initialization. More...
#include <config.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <stdio.h>
#include <limits.h>
#include "close-stream.h"
#include "closeout.h"
#include "error.h"
#include "progname.h"
#include "quote.h"
#include "xalloc.h"
#include "dhcpd-pools.h"
Functions | |
static int | return_limit (const char c) |
An option argument parser to populate state header_limit and number_limit values. More... | |
static void | prepare_memory (struct conf_t *state) |
Run time initialization. More... | |
static void | skip_arg_parse (struct conf_t *state, char *optarg) |
The –skip option argument parser. More... | |
static char | parse_command_line_opts (struct conf_t *state, int argc, char **argv) |
Command line options parser. More... | |
int | main (int argc, char **argv) |
Start of execution. More... | |
Variables | |
int(* | parse_ipaddr )(struct conf_t *state, const char *restrict src, union ipaddr_t *restrict dst) |
void(* | copy_ipaddr )(union ipaddr_t *restrict dst, const union ipaddr_t *restrict src) |
const char *(* | ntop_ipaddr )(const union ipaddr_t *ip) |
double(* | get_range_size )(const struct range_t *r) |
int(* | xstrstr )(struct conf_t *state, const char *restrict str) |
int(* | ipcomp )(const union ipaddr_t *restrict a, const union ipaddr_t *restrict b) |
int(* | leasecomp )(const struct leases_t *restrict a, const struct leases_t *restrict b) |
void(* | add_lease )(struct conf_t *state, union ipaddr_t *ip, enum ltype type) |
struct leases_t *(* | find_lease )(struct conf_t *state, union ipaddr_t *ip) |
The main(), and core initialization.
int main | ( | int | argc, |
char ** | argv | ||
) |
Start of execution.
This will mostly call other functions one after another.
Referenced by _getopt_long_only_r().
|
static |
|
static |
Run time initialization.
Global allocations, counter initializations, etc are here.
Referenced by main().
|
static |
An option argument parser to populate state header_limit and number_limit values.
Referenced by parse_command_line_opts().
|
static |
The –skip option argument parser.
Referenced by parse_command_line_opts().
Referenced by parse_leases(), and set_ipv_functions().
Referenced by add_lease_v4(), add_lease_v6(), parse_cidr(), parse_config(), and set_ipv_functions().
Referenced by parse_leases(), and set_ipv_functions().
double(* get_range_size) (const struct range_t *r) |
Referenced by comp_max(), do_counting(), range_output_helper(), ret_percent(), ret_tcperc(), and set_ipv_functions().
Referenced by comp_ip(), do_counting(), rangecomp(), reorder_last_first(), and set_ipv_functions().
Referenced by prepare_data(), and set_ipv_functions().
const char*(* ntop_ipaddr) (const union ipaddr_t *ip) |
Referenced by cidr_last_v4(), must_put_range(), output_alarming(), output_csv(), output_html(), output_json(), output_txt(), output_xml(), and set_ipv_functions().
Referenced by parse_cidr(), parse_config(), parse_ipaddr_init(), parse_leases(), and set_ipv_functions().
Referenced by parse_leases(), and set_ipv_functions().