openbsd-ports/net/quagga/patches/patch-zebra_kernel_socket_c
2010-07-09 11:46:02 +00:00

24 lines
851 B
Plaintext

$OpenBSD: patch-zebra_kernel_socket_c,v 1.6 2010/07/09 11:46:02 sthen Exp $
--- zebra/kernel_socket.c.orig Wed Dec 9 12:37:12 2009
+++ zebra/kernel_socket.c Sun Jun 20 13:58:21 2010
@@ -136,7 +136,7 @@ const struct message rtm_type_str[] =
{RTM_REDIRECT, "RTM_REDIRECT"},
{RTM_MISS, "RTM_MISS"},
{RTM_LOCK, "RTM_LOCK"},
-#ifdef OLDADD
+#ifdef RTM_OLDADD
{RTM_OLDADD, "RTM_OLDADD"},
#endif /* RTM_OLDADD */
#ifdef RTM_OLDDEL
@@ -728,9 +728,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));