[openbeosnetteam] Re: DHCP Client needed, what would stand in the way?

Please do not forget that some interfaces want to set up a nameserver from
kernel-level. ;)
There should be some better way to set up the nameservers than writing an
entry into resolv.conf like Syllable's dhcp.

Waldemar

> On Sat, 19 Jul 2003 15:43:24 GMT, "Philippe Houdoin"
> <philippe.houdoin@xxxxxxx> said:
> > > I'm interested in getting a DHCP/BOOTP client (and eventually server)
> > > going under OBOS; is there anything that's "in the way" right now?
> >
> > I don't think so.
> > Thanks to volunteer !
> > ;-)
> >
> > > Any necessary stuff in libnet or elsewhere not done yet?
> >
> > Sure. I don't really know what's the best way to implement dhcp (client
> > side at last).
> > Guess we'll need:
> > - a bootp/dhcp kernel protocol module, listening incoming bootp packets
> > and handling
> > leases expiration.
> > - enhance interfaces support to accept dynamic IP address setting, thru
> > previous module.
> > - to modify ifconfig to turn on/off this dynamic IP address support for
> > an interface.
> >
> > But I don't look deeply on DHCP/BOOTP, so that just guessing...
> >
> > -Philippe
> >
>
> Actually what I was thinking was more along the lines of a userland app
> that would call ifconfig to configure the interface based on the DHCP
> info. However, I'm *really* new to this, so I'm open to suggestions. I
> was also going to look at the dhcpcd source for Linux, but in looking at
> the license info, it's GPL'd. Nothing against the GPL, but we're working
> with the MIT-style license, so I thought it might be best not to look
> (and thus not have to credit it.) Fortunatly RFC 2131 (the current
> primary one for DHCP) is rather thorough about what exactly should happen
> between client and server.
>
> My basic plan is as follows:
>     1) Figure out what network device we're using.
>     2) Start following the RFC's comm tree. DHCPDISCOVER, DHCPACK, get an
>     address, check it, and then apply it.
>     3) Wait until the proper time to start renewing (would it be easiest
>     to implement as a daemon that slept until it was time to renew?)
>     AND/OR
>     4) DHCPRELEASE the address when shutting down.
>
> > --
> > Fortune Cookie Says:
> >
> > Clothes make the man.  Naked people have little or no influence on
> > society.
> > -- Mark Twain
> >
> >
> >
> -- 
>   Bryan Bates
>   bryanbates@xxxxxxxxxxxx
>
> -- 
> http://www.fastmail.fm - Email service worth paying for. Try it for free
>
>


Other related posts: