]> granicus.if.org Git - libnl/commit
genl: Update mt_id of cache ops when resolving genl id
authorThomas Graf <tgraf@suug.ch>
Mon, 1 Apr 2013 09:16:34 +0000 (11:16 +0200)
committerThomas Graf <tgraf@suug.ch>
Mon, 1 Apr 2013 09:21:22 +0000 (11:21 +0200)
commitad545f2854458f98498e0cfed136845ef029a115
tree014931e930eecd85b80418aa521df11ffa192164
parentaad041c46f6f0720bff8e8727e8ff39f2196d2a8
genl: Update mt_id of cache ops when resolving genl id

The cache layer uses the message type array stored in the cache
ops to lookup which cache a message belongs to. Update to the
the message array with the resolved generic netlink id to make
it compatible with the caching API.

Allows to use nl_cache_refill() and others for generic netlink
based caches with dynamic generic netlink ids.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/genl/mngt.c