mirror of
https://gitee.com/openharmony/third_party_libnl
synced 2024-11-30 13:40:43 +00:00
3bf503d30c
The rtnl_neigh_get() function can not be used to look up a fdb entry in the neigh cache. This is due to that the function searches among destination addresses (NDA_DST) and not among link layer addresses (NDA_LLADDR), which is used by fdb entries. A fdb entry can also exist in several vlans, so a vlan id parameter is also needed to find a unique entry. This commit adds a function, rtnl_neigh_get_by_vlan() which searches the neigh cache for a specific neighbour (fdb) entry by interface index, link layer address and vlan id. Signed-off-by: Jonas Johansson <jonas.johansson@westermo.se> Signed-off-by: Thomas Haller <thaller@redhat.com> http://lists.infradead.org/pipermail/libnl/2016-May/002124.html https://github.com/thom311/libnl/pull/98 |
||
---|---|---|
.. | ||
cli | ||
fib_lookup | ||
genl | ||
idiag | ||
netfilter | ||
route | ||
xfrm | ||
.gitignore | ||
addr.c | ||
attr.c | ||
cache_mngr.c | ||
cache_mngt.c | ||
cache.c | ||
data.c | ||
error.c | ||
handlers.c | ||
hash.c | ||
hashtable.c | ||
Makefile.am | ||
msg.c | ||
nl.c | ||
object.c | ||
socket.c | ||
utils.c | ||
version.c |