X-Git-Url: http://git.asbjorn.biz/?p=debian%2Fdhcpd-pools.git;a=blobdiff_plain;f=src%2Fdhcpd-pools.h;h=a17c6b87a19a3010bb4c6a19d8fd1569e8c96b65;hp=4c4e79d1c608efa1f57da31a474c4e865e04dcb8;hb=171ff1d7045de1059556f674470aa87a853563f0;hpb=17429ef85bfb4bdf51f4a659443fe4c31c972928 diff --git a/src/dhcpd-pools.h b/src/dhcpd-pools.h index 4c4e79d..a17c6b8 100644 --- a/src/dhcpd-pools.h +++ b/src/dhcpd-pools.h @@ -59,6 +59,13 @@ struct range_t unsigned long int touched; unsigned long int backups; }; +struct macaddr_t +{ + char *ethernet; + char *ip; + struct macaddr_t *next; +}; + /* Global variables */ static int const true = 1; static int const false = 0; @@ -86,6 +93,8 @@ unsigned long int num_touches; unsigned long int *backups; unsigned long int num_backups; +struct macaddr_t *macaddr; + /* Function prototypes */ int prepare_memory (void); int parse_leases (void); @@ -96,6 +105,7 @@ int do_counting (void); void flip_ranges(struct range_t *ranges, struct range_t *tmp_ranges); /* General support functions */ void *safe_malloc (const size_t size); +inline char *safe_strdup(const char *str); void print_version (void); void usage (int status); /* qsort required functions... */