openbsd-ports/net/quagga/patches/patch-zebra_kernel_socket_c
sthen 0ced1886e6 Update to quagga 0.99.22, merged from diffs from myself and Brad. Also:
- replace MESSAGE with some @sample'd config files
- install rc.d scripts
- multicast code still ported from older version (new one needs RFC3678)
2013-04-18 20:29:08 +00:00

24 lines
851 B
Plaintext

$OpenBSD: patch-zebra_kernel_socket_c,v 1.8 2013/04/18 20:29:08 sthen Exp $
--- zebra/kernel_socket.c.orig Sat Jan 26 21:25:34 2013
+++ zebra/kernel_socket.c Tue Feb 26 01:21:12 2013
@@ -155,7 +155,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
@@ -768,9 +768,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));