~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to src/patches/iproute2-2.4.7-netlink.patch

  • Committer: ipfire
  • Date: 2006-02-15 21:15:54 UTC
  • Revision ID: git-v1:cd1a2927226c734d96478e12bb768256fb64a06a


git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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);