33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
$OpenBSD: patch-zebra_kernel_socket_c,v 1.15 2018/07/11 20:25:12 sthen Exp $
|
|
Index: zebra/kernel_socket.c
|
|
--- zebra/kernel_socket.c.orig
|
|
+++ zebra/kernel_socket.c
|
|
@@ -198,11 +198,15 @@ const struct message rtm_type_str[] =
|
|
{RTM_DELETE, "RTM_DELETE"},
|
|
{RTM_CHANGE, "RTM_CHANGE"},
|
|
{RTM_GET, "RTM_GET"},
|
|
+#ifdef RTM_LOSING
|
|
{RTM_LOSING, "RTM_LOSING"},
|
|
+#endif
|
|
{RTM_REDIRECT, "RTM_REDIRECT"},
|
|
{RTM_MISS, "RTM_MISS"},
|
|
+#ifdef RTM_LOCK
|
|
{RTM_LOCK, "RTM_LOCK"},
|
|
-#ifdef OLDADD
|
|
+#endif /* RTM_LOCK */
|
|
+#ifdef RTM_OLDADD
|
|
{RTM_OLDADD, "RTM_OLDADD"},
|
|
#endif /* RTM_OLDADD */
|
|
#ifdef RTM_OLDDEL
|
|
@@ -836,9 +840,7 @@ rtm_read_mesg (struct rt_msghdr *rtm,
|
|
|
|
/* rt_msghdr version check. */
|
|
if (rtm->rtm_version != RTM_VERSION)
|
|
- zlog (NULL, LOG_WARNING,
|
|
- "Routing message version different %d should be %d."
|
|
- "This may cause problem\n", rtm->rtm_version, RTM_VERSION);
|
|
+ return 0;
|
|
|
|
/* Be sure structure is cleared */
|
|
memset (dest, 0, sizeof (union sockunion));
|