dhcpcd-discuss

Re: EXPIRE and RELEASE

Roy Marples

Sun Mar 11 21:15:39 2018

Hi Neal

On 09/03/2018 04:04, Neal P. Murphy wrote:
A Smoothwall Express user recently encountered a slight problem with his ISP. dhcpcd produced reason EXPIRE, which my script doesn't handle. Nor does it handle RELEASE. But in my IPv6 testing, it does handle EXPIRE6 and RELEASE6.

Query: should EXPIRE(6) and RELEASE(6) do the same thing? (In the case of Smoothwall, basically clear /etc/resolv.conf, clear the local store of address/mask/gateway/etc. and 'active' status.) They indicate different reasons for taking action, but should the action for IPV4 and IPv6, respectively, be the same for each?

EXPIRE and RELEASE should do the same thing.
To make it easy, I introduced some more variables recently, deffo in 7.0 so you can do this:

if $if_up; then
	add_stuff
elif $if_down; then
	remove_stuff
fi

Roy

Follow-Ups:
Re: EXPIRE and RELEASENeal P. Murphy
References:
EXPIRE and RELEASENeal P. Murphy
Archive administrator: postmaster@marples.name