diff options
author | Russ Dill <Russ.Dill@asu.edu> | 2002-10-14 21:41:28 +0000 |
---|---|---|
committer | Russ Dill <Russ.Dill@asu.edu> | 2002-10-14 21:41:28 +0000 |
commit | 61fb48930f45aa536584b2047f9e703186e8f69f (patch) | |
tree | e3b93e0a694be81939f8c4762553c43ffdb9b10b /networking/udhcp/dhcpc.h | |
parent | 9060a7315980bb05f42eab76b88746d43e138188 (diff) | |
download | busybox-w32-61fb48930f45aa536584b2047f9e703186e8f69f.tar.gz busybox-w32-61fb48930f45aa536584b2047f9e703186e8f69f.tar.bz2 busybox-w32-61fb48930f45aa536584b2047f9e703186e8f69f.zip |
added full udhcp integration
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r-- | networking/udhcp/dhcpc.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h new file mode 100644 index 000000000..52157f5c8 --- /dev/null +++ b/networking/udhcp/dhcpc.h | |||
@@ -0,0 +1,34 @@ | |||
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 | |||
17 | struct 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 | |||
31 | extern struct client_config_t client_config; | ||
32 | |||
33 | |||
34 | #endif | ||