summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorPaul de Weerd <weerd@cvs.openbsd.org>2013-03-13 16:28:06 +0000
committerPaul de Weerd <weerd@cvs.openbsd.org>2013-03-13 16:28:06 +0000
commitf62853346ec10e012a124b4ccd07e88cf70e8c62 (patch)
treefb8988f9a42ef8571bfb0923034c96c5bc6e2d63 /sbin
parentccf47fb680fac10be79afb6d68f720a531b3c953 (diff)
Make sure dhclient doesn't delete IPv6 routes.
OK krw@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/kroute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c
index 5d4df3ef091..bcb8292f855 100644
--- a/sbin/dhclient/kroute.c
+++ b/sbin/dhclient/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.43 2013/03/11 16:01:02 krw Exp $ */
+/* $OpenBSD: kroute.c,v 1.44 2013/03/13 16:28:05 weerd Exp $ */
/*
* Copyright 2012 Kenneth R Westerback <krw@openbsd.org>
@@ -133,8 +133,8 @@ priv_flush_routes_and_arp_cache(struct imsg_flush_routes *imsg)
continue;
sa = (struct sockaddr *)(next + rtm->rtm_hdrlen);
- if (sa->sa_family == AF_KEY)
- continue; /* Don't flush SPD */
+ if (sa->sa_family == AF_KEY || sa->sa_family == AF_INET6)
+ continue; /* Don't flush SPD or INET6 routes */
populate_rti_info(rti_info, rtm);