From 10f57ef1ab9b4fca639cb2383bc04616fafba5ef Mon Sep 17 00:00:00 2001 From: "org[shemminger]!shemminger" Date: Mon, 7 Jun 2004 22:04:04 +0000 Subject: [PATCH] Import patch iproute2-2.4.7-netlink.patch (Logical change 1.9) --- lib/libnetlink.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libnetlink.c b/lib/libnetlink.c index a1f39d40..4beeca65 100644 --- a/lib/libnetlink.c +++ b/lib/libnetlink.c @@ -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);