blob: e23d9d4fee90fdbfe2fd6503fd7205574c9a01d6 [file] [log] [blame]
Russ Dill61fb4892002-10-14 21:41:28 +00001/* dhcpc.h */
2#ifndef _DHCPC_H
3#define _DHCPC_H
4
Russ Dill61fb4892002-10-14 21:41:28 +00005#define INIT_SELECTING 0
6#define REQUESTING 1
7#define BOUND 2
8#define RENEWING 3
9#define REBINDING 4
10#define INIT_REBOOT 5
11#define RENEW_REQUESTED 6
12#define RELEASED 7
13
14
15struct client_config_t {
16 char foreground; /* Do not fork */
17 char quit_after_lease; /* Quit after obtaining lease */
18 char abort_if_no_lease; /* Abort if no lease */
19 char background_if_no_lease; /* Fork to background if no lease */
20 char *interface; /* The name of the interface to use */
21 char *pidfile; /* Optionally store the process ID */
22 char *script; /* User script to run at dhcp events */
23 unsigned char *clientid; /* Optional client id to use */
24 unsigned char *hostname; /* Optional hostname to use */
25 int ifindex; /* Index number of the interface to use */
26 unsigned char arp[6]; /* Our arp address */
27};
28
29extern struct client_config_t client_config;
30
31
32#endif