for addresses configured on the system, and prevents userland from
deleting them. Just skip those routes when flushing.
Problem noticed by mlarkin@, ok henning@ mpi@ claudio@ sthen@ deraadt@
-/* $OpenBSD: route.c,v 1.168 2014/06/23 03:46:16 guenther Exp $ */
+/* $OpenBSD: route.c,v 1.169 2014/07/24 17:45:35 jca Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
print_rtmsg(rtm, rtm->rtm_msglen);
if ((rtm->rtm_flags & (RTF_GATEWAY|RTF_STATIC|RTF_LLINFO)) == 0)
continue;
+ if ((rtm->rtm_flags & RTF_LOCAL) != 0)
+ continue;
sa = (struct sockaddr *)(next + rtm->rtm_hdrlen);
if (af && sa->sa_family != af)
continue;