]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/iproute2-2.4.7-netlink.patch
Wir kehren zurueck zu Kudzu, da hwinfo noch mehr Aerger macht.
[people/teissler/ipfire-2.x.git] / src / patches / iproute2-2.4.7-netlink.patch
CommitLineData
cd1a2927
MT
1--- iproute2/lib/libnetlink.c.orig 2003-08-10 15:02:10.000000000 +1000
2+++ iproute2/lib/libnetlink.c 2003-10-13 19:36:41.000000000 +1000
3@@ -169,7 +169,8 @@
4 while (NLMSG_OK(h, status)) {
5 int err;
6
7- if (h->nlmsg_pid != rth->local.nl_pid ||
8+ if (nladdr.nl_pid != 0 ||
9+ h->nlmsg_pid != rth->local.nl_pid ||
10 h->nlmsg_seq != rth->dump) {
11 if (junk) {
12 err = junk(&nladdr, h, arg2);
13@@ -277,7 +278,8 @@
14 exit(1);
15 }
16
17- if (h->nlmsg_pid != rtnl->local.nl_pid ||
18+ if (nladdr.nl_pid != peer ||
19+ h->nlmsg_pid != rtnl->local.nl_pid ||
20 h->nlmsg_seq != seq) {
21 if (junk) {
22 err = junk(&nladdr, h, jarg);