[pkg-wpa-devel] Bug#363347: wpasupplicant: ifdown doesn't work
correctly when using wpacli-action-dhclient script
Felix Homann
fexpop at onlinehome.de
Tue Apr 18 18:34:09 UTC 2006
retitle 363347 wpacli-action-dhclient breaks ifdown and thereby ifup and zeroconf
severity 363347 important
quit
After further investigaion I found that the described behaviour has a major effect on
ifup and zeroconf as well. I therefore rename the bug and increase its severity.
Here's what happens.
1. Effect on ifup
=========
Bring the interface up once, then ifdown it. Subsequent ifups will be successful even if
they should fail (if e.g. the AP is unreachable or you turned your radio off). ifconfig will
show the interface as configured with the old IP.
2. Effect on zeroconf
=============
If you configure zeroconf to be used as fallback only it will only allocate a Link Local address
if there isn't already an IP address in the global scope:
---------------------------------------------
# From /etc/network/if-up.d/zeroconf:
# should we only allocate an address if we do not already have one?
if [ -n "$FALLBACK" ]; then
/bin/ip addr show $IFACE scope global | grep -q "inet"
IP=$?
if [ $IP -eq 0 ]; then
/bin/ip route add 169.254.0.0/16 dev $IFACE
exit 0
fi
fi
---------------------------------------------
If the interface isn't brought down correctly zeroconf will never allocate a LL address.
Regards,
Felix
More information about the Pkg-wpa-devel
mailing list