mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 10:50:18 +00:00
2003-11-17 Jay Fenlason <fenlason@redhat.com>
* zebra/rt_netlink.c: netlink_parse_info() ignore messages which are not from kernel. Reported to RH by Herbert Xu. See http://rhn.redhat.com/errata/RHSA-2003-307.html and CAN-2003-0858.
This commit is contained in:
parent
42d14d9850
commit
b84d3a1b6e
@ -290,6 +290,13 @@ netlink_parse_info (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *),
|
||||
nl->name, msg.msg_namelen);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* JF: Ignore messages that aren't from the kernel */
|
||||
if ( snl.nl_pid != 0 )
|
||||
{
|
||||
zlog ( NULL, LOG_ERR, "Ignoring message from pid %u", snl.nl_pid );
|
||||
continue;
|
||||
}
|
||||
|
||||
for (h = (struct nlmsghdr *) buf; NLMSG_OK (h, status);
|
||||
h = NLMSG_NEXT (h, status))
|
||||
|
Loading…
Reference in New Issue
Block a user