diff options
| author | Roy Marples <roy@marples.name> | 2008-07-04 13:02:33 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-07-04 13:02:33 +0000 |
| commit | b953fded8ba0795e58a6a49b8cd4ecccce1ca2c8 (patch) | |
| tree | 0b26d1f228ff9d6f6e76a3ad63136fd60fac27c2 /dhcpcd.h | |
| parent | 4b8e7d3f26b2ce7dc53b519388b60b761783a633 (diff) | |
| download | dhcpcd-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.h | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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 |
