This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: getdomainname


Corinna Vinschen wrote:
> 
> Hi Pierre,
> 
> On Tue, Jun 17, 2003 at 10:05:48PM -0400, Pierre A. Humblet wrote:
> > +     FIXME: Are the registry names language dependent?
> 
> AFAIK, they aren't.  At least they are the same on my german versions
> of 98 and NT4.

OK, I will delete that comment.

> > +     FIXME: Handle DHCP on Win95. The DhcpDomain(s) may be available
> > +     in ..VxD\DHCP\DhcpInfoXX\OptionInfo, RFC 1533 format */
> 
> Yes, it is.  I'm not quite sure what the other values in the OptionInfo
> field are.  

I have figured them out, but that's not the end of the story. 
I don't know how to map the XX in DhcpInfoXX to a specific interface, 
and I don't know how to determine if the interface is up. 
Once that is figured out, there is another weird hex value in DhcpInfoXX 
in which the lease times are imbedded, in seconds since 1980, 
with a 1 hour offset that I can't account for.
Considering that all of this only matters on Win95 running DHCP,
I will let it simmer on my backburner.

> Weird, though, that `ipconfig /all' still prints the domain
> given in MSTCP, even if it's different from the DHCP domain.

Yes, the locally configured domain takes precedence over the DHCP
domain. I have not figured out what happens when DHCP is running
on several interfaces, providing different domain names on each.  

Pierre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]