diff options
Diffstat (limited to 'net/quagga/files/patch-cvs-6-RTF_DONE')
-rw-r--r-- | net/quagga/files/patch-cvs-6-RTF_DONE | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/quagga/files/patch-cvs-6-RTF_DONE b/net/quagga/files/patch-cvs-6-RTF_DONE new file mode 100644 index 000000000000..0cdd1d5d3b56 --- /dev/null +++ b/net/quagga/files/patch-cvs-6-RTF_DONE @@ -0,0 +1,20 @@ +--- zebra/kernel_socket.c.orig 13 Aug 2007 16:03:07 -0000 1.45 ++++ zebra/kernel_socket.c 17 Aug 2007 12:38:10 -0000 +@@ -741,6 +741,8 @@ + /* Read destination and netmask and gateway from rtm message + structure. */ + flags = rtm_read_mesg (rtm, &dest, &mask, &gate, ifname, &ifnlen); ++ if (!(flags & RTF_DONE)) ++ return; + if (IS_ZEBRA_DEBUG_KERNEL) + zlog_debug ("%s: got rtm of type %d (%s)", __func__, rtm->rtm_type, + LOOKUP (rtm_type_str, rtm->rtm_type)); +@@ -794,8 +796,6 @@ + { + char buf[INET_ADDRSTRLEN], gate_buf[INET_ADDRSTRLEN]; + int ret; +- if (!(flags & RTF_DONE)) +- return; + if (! IS_ZEBRA_DEBUG_RIB) + return; + ret = rib_lookup_ipv4_route (&p, &gate); |