* dhclient: don't flush IPv6 addresses/routes.

svn path=/nixpkgs/trunk/; revision=26455
This commit is contained in:
Eelco Dolstra 2011-03-22 12:55:55 +00:00
parent df786c07dc
commit 7cbb426eae
2 changed files with 4 additions and 3 deletions

View File

@ -10,9 +10,9 @@ diff --exclude '*~' -rc dhcp-4.1.0p1-orig/client/scripts/linux dhcp-4.1.0p1/clie
+ # Delete the old addresses, routes and ARP information for this
+ # interface.
+ flush_if() {
+ ${ip} address flush dev $interface
+ ${ip} route flush dev $interface
+ ${ip} neighbour flush dev $interface
+ ${ip} -4 address flush dev $interface
+ ${ip} -4 route flush dev $interface
+ ${ip} -4 neighbour flush dev $interface
+ }
+
# Invoke the local dhcp client enter hooks, if they exist.

View File

@ -1504,6 +1504,7 @@ let
zsync = callPackage ../tools/compression/zsync { };
### SHELLS