diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 23:43:28 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 23:43:28 +0000 |
commit | e2d3ded3549edd58fe3b39f2254c65f0808bcac2 (patch) | |
tree | 90e9aecef63439d80859ce43876e6a68001c8d14 /networking/udhcp/dhcpc.h | |
parent | 30d7a346e68bb7f0cb916e6c1e75dd75822d88a8 (diff) | |
download | busybox-w32-e2d3ded3549edd58fe3b39f2254c65f0808bcac2.tar.gz busybox-w32-e2d3ded3549edd58fe3b39f2254c65f0808bcac2.tar.bz2 busybox-w32-e2d3ded3549edd58fe3b39f2254c65f0808bcac2.zip |
udhcpc: convert to getopt32
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r-- | networking/udhcp/dhcpc.h | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h index d5c8a4ba5..fd17917d0 100644 --- a/networking/udhcp/dhcpc.h +++ b/networking/udhcp/dhcpc.h | |||
@@ -13,22 +13,24 @@ | |||
13 | #define RELEASED 7 | 13 | #define RELEASED 7 |
14 | 14 | ||
15 | struct client_config_t { | 15 | struct client_config_t { |
16 | char foreground; /* Do not fork */ | 16 | /* TODO: combine flag fields into single "unsigned opt" */ |
17 | char quit_after_lease; /* Quit after obtaining lease */ | 17 | /* (can be set directly to the result of getopt32) */ |
18 | char release_on_quit; /* perform release on quit */ | 18 | char foreground; /* Do not fork */ |
19 | char abort_if_no_lease; /* Abort if no lease */ | 19 | char quit_after_lease; /* Quit after obtaining lease */ |
20 | char background_if_no_lease; /* Fork to background if no lease */ | 20 | char release_on_quit; /* perform release on quit */ |
21 | char *interface; /* The name of the interface to use */ | 21 | char abort_if_no_lease; /* Abort if no lease */ |
22 | char *pidfile; /* Optionally store the process ID */ | 22 | char background_if_no_lease; /* Fork to background if no lease */ |
23 | char *script; /* User script to run at dhcp events */ | 23 | char *interface; /* The name of the interface to use */ |
24 | uint8_t *clientid; /* Optional client id to use */ | 24 | char *pidfile; /* Optionally store the process ID */ |
25 | uint8_t *vendorclass; /* Optional vendor class-id to use */ | 25 | char *script; /* User script to run at dhcp events */ |
26 | uint8_t *hostname; /* Optional hostname to use */ | 26 | uint8_t *clientid; /* Optional client id to use */ |
27 | uint8_t *fqdn; /* Optional fully qualified domain name to use */ | 27 | uint8_t *vendorclass; /* Optional vendor class-id to use */ |
28 | int ifindex; /* Index number of the interface to use */ | 28 | uint8_t *hostname; /* Optional hostname to use */ |
29 | int retries; /* Max number of request packets */ | 29 | uint8_t *fqdn; /* Optional fully qualified domain name to use */ |
30 | int timeout; /* Number of seconds to try to get a lease */ | 30 | int ifindex; /* Index number of the interface to use */ |
31 | uint8_t arp[6]; /* Our arp address */ | 31 | int retries; /* Max number of request packets */ |
32 | int timeout; /* Number of seconds to try to get a lease */ | ||
33 | uint8_t arp[6]; /* Our arp address */ | ||
32 | }; | 34 | }; |
33 | 35 | ||
34 | extern struct client_config_t client_config; | 36 | extern struct client_config_t client_config; |