mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-06 07:44:57 +03:00
Add the possibility to send the Virtual Hub Name to an external DHCP server
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user