-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathargs.h
More file actions
26 lines (20 loc) · 654 Bytes
/
args.h
File metadata and controls
26 lines (20 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdint.h>
#include <time.h>
#include "dhcpserver.h"
#define NAME "dhcpserver"
#define VERSION "v. 0.1"
#define USAGE_TXT \
NAME " - " VERSION "\n" \
"usage: [-a first,last] [-d device] [-o opt,value]\n" \
" [-p time] [-s mac,ip] server_address\n"
/*
* Usage description:
* -a: specify the pool of free addresses to allocate
* -d: network device name to use
* -o: specify a DHCP option for the pool
* -p: time in the pending state (in seconds)
* -s: specify a static binding
*/
/* Prototypes */
void usage(char *msg, int exit_status);
void parse_args(int argc, char *argv[], address_pool *pool);