diff options
-rw-r--r-- | networking/udhcp/common.c | 4 | ||||
-rw-r--r-- | networking/udhcp/common.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index fc4de5716..59cf723ee 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -54,6 +54,8 @@ const struct dhcp_optflag dhcp_optflags[] = { | |||
54 | { OPTION_STRING , 0x43 }, /* DHCP_BOOT_FILE */ | 54 | { OPTION_STRING , 0x43 }, /* DHCP_BOOT_FILE */ |
55 | //TODO: not a string, but a set of LASCII strings: | 55 | //TODO: not a string, but a set of LASCII strings: |
56 | // { OPTION_STRING , 0x4D }, /* DHCP_USER_CLASS */ | 56 | // { OPTION_STRING , 0x4D }, /* DHCP_USER_CLASS */ |
57 | { OPTION_STRING , 0x64 }, /* DHCP_PCODE */ | ||
58 | { OPTION_STRING , 0x65 }, /* DHCP_TCODE */ | ||
57 | #if ENABLE_FEATURE_UDHCP_RFC3397 | 59 | #if ENABLE_FEATURE_UDHCP_RFC3397 |
58 | { OPTION_DNS_STRING | OPTION_LIST , 0x77 }, /* DHCP_DOMAIN_SEARCH */ | 60 | { OPTION_DNS_STRING | OPTION_LIST , 0x77 }, /* DHCP_DOMAIN_SEARCH */ |
59 | { OPTION_SIP_SERVERS , 0x78 }, /* DHCP_SIP_SERVERS */ | 61 | { OPTION_SIP_SERVERS , 0x78 }, /* DHCP_SIP_SERVERS */ |
@@ -121,6 +123,8 @@ const char dhcp_option_strings[] ALIGN1 = | |||
121 | "tftp" "\0" /* DHCP_TFTP_SERVER_NAME*/ | 123 | "tftp" "\0" /* DHCP_TFTP_SERVER_NAME*/ |
122 | "bootfile" "\0" /* DHCP_BOOT_FILE */ | 124 | "bootfile" "\0" /* DHCP_BOOT_FILE */ |
123 | // "userclass" "\0" /* DHCP_USER_CLASS */ | 125 | // "userclass" "\0" /* DHCP_USER_CLASS */ |
126 | "tzstr" "\0" /* DHCP_PCODE */ | ||
127 | "tzdbstr" "\0" /* DHCP_TCODE */ | ||
124 | #if ENABLE_FEATURE_UDHCP_RFC3397 | 128 | #if ENABLE_FEATURE_UDHCP_RFC3397 |
125 | "search" "\0" /* DHCP_DOMAIN_SEARCH */ | 129 | "search" "\0" /* DHCP_DOMAIN_SEARCH */ |
126 | // doesn't work in udhcpd.conf since OPTION_SIP_SERVERS | 130 | // doesn't work in udhcpd.conf since OPTION_SIP_SERVERS |
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h index b68f9394e..9d1f71aae 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h | |||
@@ -149,6 +149,8 @@ enum { | |||
149 | //#define DHCP_BOOT_FILE 0x43 /* 67: same as 'file' field */ | 149 | //#define DHCP_BOOT_FILE 0x43 /* 67: same as 'file' field */ |
150 | //#define DHCP_USER_CLASS 0x4d /* 77: RFC 3004. set of LASCII strings. "I am a printer" etc */ | 150 | //#define DHCP_USER_CLASS 0x4d /* 77: RFC 3004. set of LASCII strings. "I am a printer" etc */ |
151 | #define DHCP_FQDN 0x51 /* 81: client asks to update DNS to map its FQDN to its new IP */ | 151 | #define DHCP_FQDN 0x51 /* 81: client asks to update DNS to map its FQDN to its new IP */ |
152 | //#define DHCP_PCODE 0x64 /* 100: RFC 4833. IEEE 1003.1 TZ string */ | ||
153 | //#define DHCP_TCODE 0x65 /* 101: RFC 4833. Reference to the TZ database string */ | ||
152 | //#define DHCP_DOMAIN_SEARCH 0x77 /* 119: RFC 3397. set of ASCIZ string, DNS-style compressed */ | 154 | //#define DHCP_DOMAIN_SEARCH 0x77 /* 119: RFC 3397. set of ASCIZ string, DNS-style compressed */ |
153 | //#define DHCP_SIP_SERVERS 0x78 /* 120: RFC 3361. flag byte, then: 0: domain names, 1: IP addrs */ | 155 | //#define DHCP_SIP_SERVERS 0x78 /* 120: RFC 3361. flag byte, then: 0: domain names, 1: IP addrs */ |
154 | //#define DHCP_STATIC_ROUTES 0x79 /* 121: RFC 3442. (mask,ip,router) tuples */ | 156 | //#define DHCP_STATIC_ROUTES 0x79 /* 121: RFC 3442. (mask,ip,router) tuples */ |