inet: Clear IP addresses when interface is set down
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 16 Aug 2012 09:21:34 +0000 (12:21 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 17 Aug 2012 13:13:13 +0000 (16:13 +0300)
commit9b0851196880a79fbcca76616c27bb9d16ba94c7
treeddcead0cc16a12b9f98b005fdc4f9f9c3b231b9c
parent4d33afaed53d7ca3fcc7522be526a09a5bef3a0a
inet: Clear IP addresses when interface is set down

Clear interface IPv4 address by setting it to 0.0.0.0. IPv6
addresses are cleared automatically when the IFF_DYNAMIC flag is
set at the time the interface is brought down.

By removing the IP address and netmask, netlink properly reports
new addresses assigned by DHCPv4.
src/inet.c