about summary refs log tree commit diff
path: root/pkgs/tools/networking/dhcp
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2011-03-22 12:55:55 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2011-03-22 12:55:55 +0000
commit7cbb426eae1d804963744177f9d2e95221329e2e (patch)
tree857cf53a0e7a0e2fa643757e3f202602b18a8284 /pkgs/tools/networking/dhcp
parentdf786c07dc4c453a65c0b8195c07b06a2952eb05 (diff)
downloadnixlib-7cbb426eae1d804963744177f9d2e95221329e2e.tar
nixlib-7cbb426eae1d804963744177f9d2e95221329e2e.tar.gz
nixlib-7cbb426eae1d804963744177f9d2e95221329e2e.tar.bz2
nixlib-7cbb426eae1d804963744177f9d2e95221329e2e.tar.lz
nixlib-7cbb426eae1d804963744177f9d2e95221329e2e.tar.xz
nixlib-7cbb426eae1d804963744177f9d2e95221329e2e.tar.zst
nixlib-7cbb426eae1d804963744177f9d2e95221329e2e.zip
* dhclient: don't flush IPv6 addresses/routes.
svn path=/nixpkgs/trunk/; revision=26455
Diffstat (limited to 'pkgs/tools/networking/dhcp')
-rw-r--r--pkgs/tools/networking/dhcp/flush-if.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/networking/dhcp/flush-if.patch b/pkgs/tools/networking/dhcp/flush-if.patch
index a6d914231ee4..ff72248b0abb 100644
--- a/pkgs/tools/networking/dhcp/flush-if.patch
+++ b/pkgs/tools/networking/dhcp/flush-if.patch
@@ -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.