Wingate Registry values

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Wingate Registry values

Postby ngrayson » 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
ngrayson
Senior Member
 
Posts: 178
Joined: Sep 28 03 12:13 am
Location: UK

Re: Wingate Registry values

Postby adrien » 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
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Wingate Registry values

Postby ngrayson » Jan 12 09 9:49 pm

Many thanks Adrien.

I'll go play :-)

Regards
Neil
ngrayson
Senior Member
 
Posts: 178
Joined: Sep 28 03 12:13 am
Location: UK


Return to WinGate

Who is online

Users browsing this forum: No registered users and 20 guests

cron