summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphessler <phessler@openbsd.org>2016-09-15 12:51:20 +0000
committerphessler <phessler@openbsd.org>2016-09-15 12:51:20 +0000
commitf1a5d741f78087299e3f01c78154ab187770a9b4 (patch)
treefdb8252ca05d2a7ff2365461bad16e862c9b3888
parentprotect a kernel only structure with _KERNEL, means userland doesn't (diff)
downloadwireguard-openbsd-f1a5d741f78087299e3f01c78154ab187770a9b4.tar.xz
wireguard-openbsd-f1a5d741f78087299e3f01c78154ab187770a9b4.zip
Add RTM_INVALIDATE as a route message, to keep the kernel and userland
lists in sync. OK mpi@
-rw-r--r--sbin/route/route.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 1892e2a1984..71496a29c9a 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.190 2016/09/04 09:41:03 claudio Exp $ */
+/* $OpenBSD: route.c,v 1.191 2016/09/15 12:51:20 phessler Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -1240,6 +1240,7 @@ char *msgtypes[] = {
"RTM_IFINFO: iface status change",
"RTM_IFANNOUNCE: iface arrival/departure",
"RTM_DESYNC: route socket overflow",
+ "RTM_INVALIDATE: invalidate cache of L2 route",
"RTM_BFD: bidirectional forwarding detection",
};