summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-11-23 19:29:34 +0000
committerRoy Marples <roy@marples.name>2016-11-23 19:29:34 +0000
commitcba913417b2e6951862137a91adec5321551bccc (patch)
tree4161f1c1dd7f8656c62d9c2999aaa354db8a9ccb
parente19698faa8257d55d2f24887e591ba1525c818f5 (diff)
downloaddhcpcd-cba913417b2e6951862137a91adec5321551bccc.tar.xz
Only clear the address family routes we're re-loading.
-rw-r--r--if-bsd.c2
1 files changed, 1 insertions, 1 deletions
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;