mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-13 11:14:59 +03:00
Cedar: DHCP server now assigns static IPv4 address, if present in user note
This works for all VPN protocols. In SessionMain(): for DHCPDISCOVER and DHCPREQUEST frames, write the static IP address (which is retrieved from the user notes) in the SIADDR field of DHCPHEADER. In VirtualDhcpServer(): for DHCPDISCOVER and DHCPREQUEST frames, read the static IP address from the SIADDR field of DHCPHEADER and assign it to the client.
This commit is contained in:
@ -339,6 +339,9 @@ void CancelList(LIST *o);
|
||||
bool IsPriorityHighestPacketForQoS(void *data, UINT size);
|
||||
UINT GetNextDelayedPacketTickDiff(SESSION *s);
|
||||
|
||||
UINT PrepareDHCPRequestForStaticIPv4(SESSION *s, BLOCK *b);
|
||||
void ClearDHCPLeaseRecordForIPv4(SESSION *s, UINT static_ip);
|
||||
|
||||
#endif // SESSION_H
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user