Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wpa_supplicant before dhcpcd



On Sat, Aug 23, 2008 at 09:39:31AM +1000, Daniel Carosone wrote:
> On Fri, Aug 22, 2008 at 09:52:54PM +0200, Joerg Sonnenberger wrote:
> > On Fri, Aug 22, 2008 at 02:44:38PM -0500, David Young wrote:
> > > > At least dhclient at the moment can't be used that way as it will bitch
> > > > if it is already running.
> > > 
> > > Yes, it can.  I believe that your assumptions are different than mine.
> > 
> > ifconfig_bge0=dhcp
> > ifconfig_wpi0=dhcp
> > 
> > This can't easily work with dhclient as you can have only one instance
> > of dhclient at the same time.
> 
> 
> Why can you have only one instance?  Because dhclient has a control
> socket, and multiple instances started using the same default socket
> collide. 
> 
> Why does dhclient have a control socket?  So that the running instance
> can have changes made to it, like adding and removing interfaces,
> releasing and restarting leases, etc.
> 
> How does this help rc configuration like this?  rc starts one
> dhclient, and each of the ifconfig_* lines like above triggers the
> appropriate helper which sends the appropriate control messages.
> 
> Since we're talking about assumptions, these are my assumptions (and I
> suspect are close to David's) based on descriptions in dhclient and
> omshell manpages.

I had assumed that the ifconfig_* lines could guide rc.subr(8) as it
augmented the dhclient_flags variable with the help of a shell subroutine
that /etc/rc.d/dhclient would provide for the purpose.

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933 ext 24


Home | Main Index | Thread Index | Old Index