dhcpcd-discuss

Hook events on timeout

Jonas Ramstrand

Fri Oct 18 09:48:20 2019

Hi Roy / list

I have a scenario where I want to use required option, but if I don’t get
an ACK after 3 times I want to fallback without –require.

Now I’m having a timer in my application to check for a valid lease to
exit/restart dhcpcd. But I’ve now implemented to check for hook events in
my application. So plan is to use --timeout, but I don’t get any
hook-events to use when timed out. I see traces: “timed out” and “dhcpcd
exited”, but would expect hook-events “STOPPED” and/or “TIMEOUT”.

Starting with dhcpcd-command “dhcpcd wlan0 --nolink --noipv4ll --timeout 10
--debug --require 43”

Thanks!

//Jonas

Follow-Ups:
Re: Hook events on timeoutRoy Marples
Archive administrator: postmaster@marples.name