From: Roy Marples Date: Wed, 10 Apr 2019 20:46:07 +0000 (+0100) Subject: DHCP: Dont really add static address in test mode X-Git-Tag: v7.2.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a296d294de701b04ef65a3a55cbda9970a39940;p=thirdparty%2Fdhcpcd.git DHCP: Dont really add static address in test mode --- diff --git a/src/dhcp.c b/src/dhcp.c index d0f9a453..ca2dac12 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -2464,7 +2464,8 @@ static void dhcp_arp_bind(struct interface *ifp) { - if (dhcp_arp_address(ifp) == 1) + if (ifp->ctx->options & DHCPCD_TEST || + dhcp_arp_address(ifp) == 1) dhcp_bind(ifp); } #endif