diff options
author | roopa <roopa@cumulusnetworks.com> | 2012-11-14 19:33:51 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2012-11-15 18:42:47 (GMT) |
commit | cb25338ac35b5174f03c19e00733d9366f6b9482 (patch) | |
tree | 1b633930f4bfa34cce0734f6ab1e007da4068735 /include | |
parent | 64fcb47a36ec12d7e7f00605f6a8952ce985dd08 (diff) | |
download | libnl-cb25338ac35b5174f03c19e00733d9366f6b9482.zip libnl-cb25338ac35b5174f03c19e00733d9366f6b9482.tar.gz libnl-cb25338ac35b5174f03c19e00733d9366f6b9482.tar.bz2 |
Add master support to rtnl_neigh for AF_BRIDGE objects
AF_BRIDGE neigh objects can be uniquely identified by
the family, lladdr and bridge ifindex. This patch adds
bridge ifindex to AF_BRIDGE neigh objects.
Things will be ok even without this patch with just family and
lladdr if we assume that we will have unique lladdr's
accross bridges in a system.
Kernel does not send the bridge ifindex in the AF_BRIDGE
fdb/neigh message. This patch tries to get that info by a
link cache lookup and adds it to the bridge neigh object
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Reviewed-by: Nolan Leake <nolan@cumulusnetworks.com>
Reviewed-by: Shrijeet Mukherjee <shm@cumulusnetworks.com>
Reviewed-by: Wilson Kok <wkok@cumulusnetworks.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink-types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/netlink-types.h b/include/netlink-types.h index 01b4505..02ecf04 100644 --- a/include/netlink-types.h +++ b/include/netlink-types.h @@ -205,6 +205,7 @@ struct rtnl_neigh struct rtnl_ncacheinfo n_cacheinfo; uint32_t n_state_mask; uint32_t n_flag_mask; + uint32_t n_master; }; |