diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/networking/dhcp/flush-if.patch | 6 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 1 |
2 files changed, 4 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. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f6fda91ed12f..e6b419001172 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1504,6 +1504,7 @@ let zsync = callPackage ../tools/compression/zsync { }; + ### SHELLS |