From: Roy Marples Date: Wed, 23 Nov 2016 19:29:34 +0000 (+0000) Subject: Only clear the address family routes we're re-loading. X-Git-Tag: v7.0.0-beta1~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba913417b2e6951862137a91adec5321551bccc;p=thirdparty%2Fdhcpcd.git Only clear the address family routes we're re-loading. --- diff --git a/if-bsd.c b/if-bsd.c index 5d8b2db4..0e033d17 100644 --- a/if-bsd.c +++ b/if-bsd.c @@ -576,7 +576,7 @@ if_initrt(struct dhcpcd_ctx *ctx, int af) char *buf, *p, *end; struct rt rt; - rt_headclear(&ctx->kroutes, AF_UNSPEC); + rt_headclear(&ctx->kroutes, af); mib[0] = CTL_NET; mib[1] = PF_ROUTE;