Switch to full style
Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems
Post a reply

Wingate Registry values

Jan 12 09 2:10 am

Guys,

Can you help?

I'm trying to write a small app which gives me more understanding of the DHCP server settings in the registry. In my network I actually reserve IP by MAC address.

In the Registry, are the IP addresses. (oddly they dont all seem to be there all the time).

For each IP Key, there are the subkeys below.

ClientStatus - This seems to be Enumerated what do the values mean?
Computername - How is this populated?
IPAddress - Obvious this is user programed and the reservation.
Leaseduration - This appears to be set to the Global max except for in some cases where its set to 1 ?
MacAddress - Obvious this is as programmed by me.
ScopeID - I'm guessing Enumerated from list of scopes IP subnet (I only uses 1 so its always 0)
TimeStamp - IS this when it was allocated? What units does it indicate?

Any help you can give gratefully received.

Best Regards
Neil

Re: Wingate Registry values

Jan 12 09 1:22 pm

Client status is an enum

eDHCPClientStatusAvailable = 0,
eDHCPClientStatusOffered,
eDHCPClientStatusBound,
eDHCPClientStatusExpired,
eDHCPClientStatusReserved

2 is bound, 3 is expired. Expired normally changes the duration also to 1. Available means the IP address is available for reuse.

Times are based on seconds since an epoch of 1 Jan 1970 32 bit (e.g. timestamp)

Computername comes from the initial discovery packet sent by the client. Some clients (e.g. non-windows) don't fill this in.

LeaseDuration is time in seconds for the lease, if it's from a reservation it's set to infinite (0xFFFFFFFF I think).

Scope ID relates to the scope that allocated the lease. See HKLM\Software\Qbik Software\WinGate\Services\DHCP Service\Database\Scopes

Re: Wingate Registry values

Jan 12 09 9:49 pm

Many thanks Adrien.

I'll go play :-)

Regards
Neil
Post a reply