diff options
author | Mykhaylo Yehorov <yehorov@gmail.com> | 2015-02-10 00:47:35 +0300 |
---|---|---|
committer | Mykhaylo Yehorov <yehorov@gmail.com> | 2015-02-10 00:47:35 +0300 |
commit | ffddfe1ad381659f7233e3c5c6966613e17a8e55 (patch) | |
tree | e9bb1f34e5e6856c6e4068c01685c9d2b09a222a /src/Mayaqua | |
parent | 67fbd5657441d1f5e1adcb53961205740073340b (diff) |
Add the possibility to send the Virtual Hub Name to an external DHCP server
Diffstat (limited to 'src/Mayaqua')
-rw-r--r-- | src/Mayaqua/TcpIp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Mayaqua/TcpIp.h b/src/Mayaqua/TcpIp.h index 2353b37a..c358138e 100644 --- a/src/Mayaqua/TcpIp.h +++ b/src/Mayaqua/TcpIp.h @@ -623,6 +623,7 @@ struct ICMPV6_HEADER_INFO #define DHCP_ID_CLIENT_ID 0x3d
#define DHCP_ID_VENDOR_ID 0x3c
#define DHCP_ID_REQ_PARAM_LIST 0x37
+#define DHCP_ID_USER_CLASS 0x4d
#define DHCP_ID_CLASSLESS_ROUTE 0x79
#define DHCP_ID_MS_CLASSLESS_ROUTE 0xF9
#define DHCP_ID_PRIVATE 0xFA
@@ -794,6 +795,8 @@ struct DHCP_CLASSLESS_ROUTE_TABLE DHCP_CLASSLESS_ROUTE Entries[MAX_DHCP_CLASSLESS_ROUTE_ENTRIES]; // Entries
};
+#define MAX_USER_CLASS_LEN 255
+
// DHCP option list
struct DHCP_OPTION_LIST
{
@@ -803,6 +806,10 @@ struct DHCP_OPTION_LIST // Client request
UINT RequestedIp; // Requested IP address
char Hostname[MAX_HOST_NAME_LEN + 1]; // Host name
+ char UserClass[MAX_USER_CLASS_LEN + 1]; // User class
+ // RFC3003 defines that User Class option is array of text strings,
+ // but the most popular DHCP clients and servers,
+ // i.e. ISC DHCP and Microsoft DHCP Server, consider it a text string
// Server response
UINT ClientAddress; // Client address
|