aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r--networking/udhcp/dhcpc.h34
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
15struct client_config_t { 15struct 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
34extern struct client_config_t client_config; 36extern struct client_config_t client_config;