diff options
| author | Roy Marples <roy@marples.name> | 2008-06-30 16:02:56 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-06-30 16:02:56 +0000 |
| commit | 757520c586a98cdea4e1ef571cd9e448f9f9c72b (patch) | |
| tree | a78240510356ea585feab8d8c5cfb39b3b6b4d39 /dhcpcd.h | |
| parent | a72cb83891d74115890ee40761d4cd6e87cbf689 (diff) | |
| download | dhcpcd-757520c586a98cdea4e1ef571cd9e448f9f9c72b.tar.xz | |
Add support for vendor encapsulated options. Also, MINIAL define now disables all configurable options.
Diffstat (limited to 'dhcpcd.h')
| -rw-r--r-- | dhcpcd.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -39,11 +39,12 @@ #include "common.h" #define DEFAULT_TIMEOUT 30 -#define DEFAULT_LEASETIME 3600 /* 1 hour */ +#define DEFAULT_LEASETIME 3600 /* 1 hour */ #define CLASSID_MAX_LEN 48 #define CLIENTID_MAX_LEN 48 #define USERCLASS_MAX_LEN 255 +#define VENDOR_MAX_LEN 255 #ifdef THERE_IS_NO_FORK extern char dhcpcd[PATH_MAX]; @@ -72,9 +73,12 @@ struct options { char interface[IF_NAMESIZE]; char hostname[MAXHOSTNAMELEN]; int fqdn; - char classid[CLASSID_MAX_LEN + 1]; + uint8_t classid[CLASSID_MAX_LEN + 1]; char clientid[CLIENTID_MAX_LEN + 1]; - char userclass[USERCLASS_MAX_LEN + 1]; + uint8_t userclass[USERCLASS_MAX_LEN + 1]; +#ifdef ENABLE_VENDOR + uint8_t vendor[VENDOR_MAX_LEN + 1]; +#endif uint8_t reqmask[256 / 8]; uint8_t nomask[256 / 8]; uint32_t leasetime; |
