summaryrefslogtreecommitdiff
path: root/zebra/rtread_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/rtread_sysctl.c')
-rw-r--r--zebra/rtread_sysctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/rtread_sysctl.c b/zebra/rtread_sysctl.c
index 88527b37..b8f5bde7 100644
--- a/zebra/rtread_sysctl.c
+++ b/zebra/rtread_sysctl.c
@@ -68,6 +68,8 @@ route_read (void)
for (end = buf + bufsiz; buf < end; buf += rtm->rtm_msglen)
{
rtm = (struct rt_msghdr *) buf;
+ /* We must set RTF_DONE here, so rtm_read() doesn't ignore the message. */
+ SET_FLAG (rtm->rtm_flags, RTF_DONE);
rtm_read (rtm);
}