[PATCH 13/13] idiag: add a oo_compare() function for idiag_msg objects

Thomas Haller thaller at redhat.com
Mon Nov 24 09:50:14 PST 2014


On Mon, 2014-11-24 at 17:17 +0000, Thomas Graf wrote:
> On 11/24/14 at 05:14pm, Thomas Haller wrote:
> > Having a oo_keygen() function only makes sense together with a
> > oo_compare() function because after hashing, you still have to compare
> > the objects for equality (in case of hash collission).
> > 
> > Signed-off-by: Thomas Haller <thaller at redhat.com>
> 
> Acked-by: Thomas Graf <tgraf at suug.ch>
> 
> Can we add a check to the register function or a build assert
> to catch this?


good idea. Patch follows separately.


Thomas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20141124/00a9bac2/attachment.sig>


More information about the libnl mailing list