git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #45912 from xeji/p/dhcpcd

dhcpcd: 6.11.5 -> 7.0.8

commita92cfb57256d05a76db6f58913270b92e198382c authorSamuel Dionne-Riel <samuel@dionne-riel.com> dateSun 2 Sep 2018, 15:28 (8 years ago) parent0dd7a0f13c3986
2 files changed+16−3
nixos/tests/networking.nix+14−1 pkgs/tools/networking/dhcpcd/default.nix+2−2
nixos/tests/networking.nix+14−1
@@ -11,6 +11,7 @@ let
1111 let
1212 vlanIfs = range 1 (length config.virtualisation.vlans);
1313 in {
14+ environment.systemPackages = [ pkgs.iptables ]; # to debug firewall rules
1415 virtualisation.vlans = [ 1 2 3 ];
1516 boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = true;
1617 networking = {
@@ -320,9 +321,14 @@ let
320321 name = "MACVLAN";
321322 nodes.router = router;
322323 nodes.client = { pkgs, ... }: with pkgs.lib; {
324+ environment.systemPackages = [ pkgs.iptables ]; # to debug firewall rules
323325 virtualisation.vlans = [ 1 ];
324326 networking = {
325327 useNetworkd = networkd;
328+ firewall.logReversePathDrops = true; # to debug firewall rules
329+ # reverse path filtering rules for the macvlan interface seem
330+ # to be incorrect, causing the test to fail. Disable temporarily.
331+ firewall.checkReversePath = false;
326332 firewall.allowPing = true;
327333 useDHCP = true;
328334 macvlans.macvlan.interface = "eth1";
@@ -341,9 +347,16 @@ let
341347 $client->waitUntilSucceeds("ip addr show dev eth1 | grep -q '192.168.1'");
342348 $client->waitUntilSucceeds("ip addr show dev macvlan | grep -q '192.168.1'");
343349
344− # Print diagnosting information
350+ # Print lots of diagnostic information
351+ $router->log('**********************************************');
345352 $router->succeed("ip addr >&2");
353+ $router->succeed("ip route >&2");
354+ $router->execute("iptables-save >&2");
355+ $client->log('==============================================');
346356 $client->succeed("ip addr >&2");
357+ $client->succeed("ip route >&2");
358+ $client->execute("iptables-save >&2");
359+ $client->log('##############################################');
347360
348361 # Test macvlan creates routable ips
349362 $client->waitUntilSucceeds("ping -c 1 192.168.1.1");
pkgs/tools/networking/dhcpcd/default.nix+2−2
@@ -3,11 +3,11 @@
33stdenv.mkDerivation rec {
44 # when updating this to >=7, check, see previous reverts:
55 # nix-build -A nixos.tests.networking.scripted.macvlan.x86_64-linux nixos/release-combined.nix
6− name = "dhcpcd-6.11.5";
6+ name = "dhcpcd-7.0.8";
77
88 src = fetchurl {
99 url = "mirror://roy/dhcpcd/${name}.tar.xz";
10− sha256 = "17nnhxmbdcc7k2mh6sgvxisqcqbic5540xbig363ds97gvf795kg";
10+ sha256 = "1df95lv3cbs3dk718a2vyvzmv7qhpgcxzagb27ylmav96f48x5ln";
1111 };
1212
1313 nativeBuildInputs = [ pkgconfig ];