dhcpd-pools  2.28
ISC dhcpd lease usage analyser
Functions
getdata.c File Reference

Functions to read data from dhcpd.conf and dhcdp.leases files. More...

#include <config.h>
#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include "error.h"
#include "xalloc.h"
#include "dhcpd-pools.h"
#include "defaults.h"
Include dependency graph for getdata.c:

Functions

int parse_leases (void)
 Lease file parser. More...
 
static int is_interesting_config_clause (char const *restrict s)
 Keyword search in dhcpd.conf file. More...
 
void parse_config (int is_include, const char *restrict config_file, struct shared_network_t *restrict shared_p)
 The dhcpd.conf file parser. More...
 

Detailed Description

Functions to read data from dhcpd.conf and dhcdp.leases files.

Function Documentation

static int is_interesting_config_clause ( char const *restrict  s)
static

Keyword search in dhcpd.conf file.

Parameters
sA line from the dhcpd.conf file.
Returns
Indicator what configuration was found.

Referenced by parse_config().

Here is the call graph for this function:

void parse_config ( int  is_include,
const char *restrict  config_file,
struct shared_network_t *restrict  shared_p 
)

The dhcpd.conf file parser.

FIXME: This spaghetti monster function need to be rewrote at least ones.

Here is the call graph for this function:

int parse_leases ( void  )

Lease file parser.

The parser can only read ISC DHCPD dhcpd.leases file format.

Referenced by main().

Here is the call graph for this function: