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