]> granicus.if.org Git - libnl/commit
neigh: Remove check for AF_UNSPEC in rtnl_neigh_get()
authorThomas Graf <tgraf@suug.ch>
Fri, 1 Feb 2013 09:41:45 +0000 (10:41 +0100)
committerThomas Graf <tgraf@suug.ch>
Fri, 1 Feb 2013 09:45:01 +0000 (10:45 +0100)
commit8571f58f23763d8db7365d02c9b27832ad3d7005
treecfbebfbcf15375b36e8fff405433498935ee6d3f
parent2005c2ecacdf5e1ba5be630c85f1288eeb8ad6af
neigh: Remove check for AF_UNSPEC in rtnl_neigh_get()

This check was introduces to not accidently return AF_BRIDGE objects
to unaware API users as they do differ in structure. However, such
objects are only available if explicitely requests using the
NL_CACHE_AF_ITER flag or by using arg1 == AF_BRIDGE for the cache.

Therefore remove this check and allow rtnl_neigh_get() to be used to
fetch any neighbor object of a cache.

Reported-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/route/neigh.c