dhcpcd-discuss

Re: dhcpcd 7 - beta3 observations

Roy Marples

Thu Apr 20 16:25:57 2017

Hi Kenny

On 19/04/2017 16:20, Kenny Napier wrote:
>    I have been using version 6.11.5.   I decided to look ahead at
> beta 3.  I ran into a few items that I wanted to mention.
> 
> The '-n' option causes a issue if used with other options.
> I was doing dhcpcd -b -n -f <conf file>  because I wanted it to kill the
> existing instance and
> start up a new instance with changes to the conf file.
> Using beta3 this results in a error attempting to set the mtu.
> The output shows this error.
> 
>    eth0: if_setmtu: Bad file descriptor.
>    wlan0: if_setmtu : Bad file descriptor.
> 
> I believe this happens because the -n causes it to skip setting up some
> required sockets.
> I think this happens with  'if_opensockets(..)' in dhcpcd.c

Should be fixed with this diff:
https://dev.marples.name/D106

If it works, create an account there and accept the revision .... or
just email here and I'll merge it to trunk.

> A minor issue was the debug output had a few places that said
> 'No such file or directory' after a label.    It looks like it was
> failing to open some type of
> log file.  

Could you paste the output here please?
https://dev.marples.name/paste/

Or if it's small, paste here.
I probably use the wrong logging call when moving to the new logger.

Thanks

Roy

Follow-Ups:
Re: dhcpcd 7 - beta3 observationsRoy Marples
Re: dhcpcd 7 - beta3 observationsRoy Marples
References:
dhcpcd 7 - beta3 observationsKenny Napier
Archive administrator: postmaster@marples.name