From tgraf at infradead.org  Wed Sep  2 12:43:32 2009
From: tgraf at infradead.org (Thomas Graf)
Date: Wed, 2 Sep 2009 12:43:32 -0400
Subject: Patch for unexpectedly aligned messages
In-Reply-To: <c338c7960908261428t1c689e9dt340d03741316fa2@mail.gmail.com>
References: <c338c7960908261428t1c689e9dt340d03741316fa2@mail.gmail.com>
Message-ID: <20090902164332.GA31352@bombadil.infradead.org>

On Wed, Aug 26, 2009 at 04:28:01PM -0500, Marc de Kruijf wrote:
> I have been using the libnl's generic netlink support for my user
> application.  I found the following bug, where nlmsg_ok() in lib/msg.c would
> incorrectly return 'true' when the input argument 'remaining' was a negative
> number.  This happens when the message is not aligned the way that libnl
> expects (although it is still legal).
> 
> In the comparison of the signed and unsigned numbers on line 284, the signed
> number gets converted to an unsigned number, which is unexpected and
> naturally produces a bug.  My patch is below.  The cast is ugly, but it
> fixes the problem.

Applied, thanks a lot Marc.


From tgraf at infradead.org  Wed Sep  2 12:45:42 2009
From: tgraf at infradead.org (Thomas Graf)
Date: Wed, 2 Sep 2009 12:45:42 -0400
Subject: rtnl_addr caching broken
In-Reply-To: <4A8D530E.4020902@redhat.com>
References: <4A8D530E.4020902@redhat.com>
Message-ID: <20090902164542.GB31352@bombadil.infradead.org>

On Thu, Aug 20, 2009 at 09:43:42AM -0400, Dan Winship wrote:
> It seems like rtnl_addr caches are currently broken; addresses go in but
> they don't come out, because addr_obj_ops is set up to require
> ADDR_ATTR_PEER to be set, but that's not set for most addresses, and so
> non-point-to-point addresses compare as not equal to themselves and so
> they can never be removed from the cache. Or am I doing something wrong?

Applied, thanks Dan.


From tgraf at infradead.org  Wed Sep  2 15:11:28 2009
From: tgraf at infradead.org (Thomas Graf)
Date: Wed, 2 Sep 2009 15:11:28 -0400
Subject: [PATCH] Add support for getting and deleting queueing classes
In-Reply-To: <4A647DA0.3050804@gmail.com>
References: <4A647DA0.3050804@gmail.com>
Message-ID: <20090902191128.GC31352@bombadil.infradead.org>

On Mon, Jul 20, 2009 at 04:22:24PM +0200, Jose Ignacio Naranjo wrote:
> I miss something for searching and deleting classes, as is already done  
> with qdiscs. I simply 'translated' the qdiscs functions, but I don't  
> know if there is another solution already implemented or even they work  
> perfectly (I didn't stress the functions, just standard tests and they  
> worked properly). If you want me to do more testing or change something,  
> please tell me what to do.
>
> It is my very first patch using git, so I hope everything is all right.

Great work, patch applied. Thanks Jose!


From m.b.lankhorst at gmail.com  Fri Sep  4 08:54:58 2009
From: m.b.lankhorst at gmail.com (Maarten Lankhorst)
Date: Fri, 04 Sep 2009 14:54:58 +0200
Subject: [PATCH] Fix building on systems that dont have libnl installed
Message-ID: <4AA10E22.90408@gmail.com>

Working on cross-lfs i was trying to build libnl for a foreign 
architecture, which failed because we didn't link directly to some 
libraries. This patch adds a explicit dependency to all netlink 
libraries to the binaries.
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libnl.patch
Type: text/x-diff
Size: 3642 bytes
Desc: not available
URL: <http://bombadil.infradead.org/pipermail/libnl/attachments/20090904/25963dc8/attachment.bin>

From m.b.lankhorst at gmail.com  Fri Sep  4 09:10:14 2009
From: m.b.lankhorst at gmail.com (Maarten Lankhorst)
Date: Fri, 04 Sep 2009 15:10:14 +0200
Subject: [PATCH] Fix installing on systems that dont have libnl installed
Message-ID: <4AA111B6.8040308@gmail.com>

Apparently the order in which libraries are installed matters, install 
libnl-route before installing libnl_nf since the latter depends on the 
former.
---

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libnl2.patch
Type: text/x-diff
Size: 386 bytes
Desc: not available
URL: <http://bombadil.infradead.org/pipermail/libnl/attachments/20090904/11bd0c6f/attachment.bin>

From wouter at debian.org  Tue Sep 15 14:50:10 2009
From: wouter at debian.org (Wouter Verhelst)
Date: Tue, 15 Sep 2009 20:50:10 +0200
Subject: Querying?
Message-ID: <20090915185010.GA15120@celtic.nixsys.be>

Hi,

I've been writing some stuff using libnl, and it seems to come along
nicely. That is, as long as I want to set a network interface address
from userland, or play with some flags, or something similar.

However, I can't seem to figure out how to query stuff from the kernel.
I'd like to be able to tell the kernel things like 'give me a list of
network intefaces you have', 'what addresses have been assigned to
interface X', or 'tell me when something happens' -- the equivalent of
'ip monitor'.

Is this actually possible with libnl? If so, what should I be doing?

-- 
The biometric identification system at the gates of the CIA headquarters
works because there's a guard with a large gun making sure no one is
trying to fool the system.
  http://www.schneier.com/blog/archives/2009/01/biometrics.html


