mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 16:26:22 +00:00
+ fixed bug #400: adjusted rtread_sysctl.c:route_read()
This commit is contained in:
parent
9eda90ce80
commit
882968e0a2
@ -1,3 +1,9 @@
|
|||||||
|
2007-09-06 Denis Ovsienko
|
||||||
|
|
||||||
|
* rtread_sysctl.c: (route_read) Set RTF_DONE on the routing
|
||||||
|
messages when fetching initial kernel FIB, so rtm_read()
|
||||||
|
doesn't skip them.
|
||||||
|
|
||||||
2007-08-21 Denis Ovsienko
|
2007-08-21 Denis Ovsienko
|
||||||
|
|
||||||
* ioctl_solaris.c: (if_get_mtu) Don't break things if either
|
* ioctl_solaris.c: (if_get_mtu) Don't break things if either
|
||||||
|
@ -68,6 +68,8 @@ route_read (void)
|
|||||||
for (end = buf + bufsiz; buf < end; buf += rtm->rtm_msglen)
|
for (end = buf + bufsiz; buf < end; buf += rtm->rtm_msglen)
|
||||||
{
|
{
|
||||||
rtm = (struct rt_msghdr *) buf;
|
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);
|
rtm_read (rtm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user