Import patch iproute2-2.4.7-netlink.patch

(Logical change 1.9)
This commit is contained in:
org[shemminger]!shemminger 2004-06-07 22:04:04 +00:00
parent e51962ebf4
commit 10f57ef1ab

View File

@ -164,7 +164,8 @@ int rtnl_dump_filter(struct rtnl_handle *rth,
while (NLMSG_OK(h, status)) {
int err;
if (h->nlmsg_pid != rth->local.nl_pid ||
if (nladdr.nl_pid != 0 ||
h->nlmsg_pid != rth->local.nl_pid ||
h->nlmsg_seq != rth->dump) {
if (junk) {
err = junk(&nladdr, h, arg2);
@ -272,7 +273,8 @@ int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
exit(1);
}
if (h->nlmsg_pid != rtnl->local.nl_pid ||
if (nladdr.nl_pid != peer ||
h->nlmsg_pid != rtnl->local.nl_pid ||
h->nlmsg_seq != seq) {
if (junk) {
err = junk(&nladdr, h, jarg);