summaryrefslogtreecommitdiffstats
path: root/dhcpcd.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-07-04 13:02:33 +0000
committerRoy Marples <roy@marples.name>2008-07-04 13:02:33 +0000
commitb953fded8ba0795e58a6a49b8cd4ecccce1ca2c8 (patch)
tree0b26d1f228ff9d6f6e76a3ad63136fd60fac27c2 /dhcpcd.h
parent4b8e7d3f26b2ce7dc53b519388b60b761783a633 (diff)
downloaddhcpcd-b953fded8ba0795e58a6a49b8cd4ecccce1ca2c8.tar.xz
Remove ENABLE_DUID and introduce MINIMAL, which removes all non essential userland options, knocking around 6k off the binary size.
Diffstat (limited to 'dhcpcd.h')
-rw-r--r--dhcpcd.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/dhcpcd.h b/dhcpcd.h
index 4f2c841c..10d23ffb 100644
--- a/dhcpcd.h
+++ b/dhcpcd.h
@@ -71,17 +71,11 @@ extern char *dhcpcd_skiproutes;
struct options {
char interface[IF_NAMESIZE];
- char hostname[MAXHOSTNAMELEN];
- int fqdn;
- uint8_t classid[CLASSID_MAX_LEN + 1];
- char clientid[CLIENTID_MAX_LEN + 1];
- uint8_t userclass[USERCLASS_MAX_LEN + 1];
- uint8_t vendor[VENDOR_MAX_LEN + 1];
+ int metric;
uint8_t reqmask[256 / 8];
uint8_t nomask[256 / 8];
uint32_t leasetime;
time_t timeout;
- int metric;
int options;
struct in_addr request_address;
@@ -90,6 +84,15 @@ struct options {
char **environ;
char script[PATH_MAX];
char pidfile[PATH_MAX];
+
+#ifndef MINIMAL
+ char hostname[MAXHOSTNAMELEN];
+ int fqdn;
+ uint8_t classid[CLASSID_MAX_LEN + 1];
+ char clientid[CLIENTID_MAX_LEN + 1];
+ uint8_t userclass[USERCLASS_MAX_LEN + 1];
+ uint8_t vendor[VENDOR_MAX_LEN + 1];
+#endif
};
#endif