diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-04-04 16:03:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-05 02:22:27 +0200 |
commit | b078f0df676233fc7ebc1ab270bd11ef5824bb64 (patch) | |
tree | 14eb5b201cfd451cf5c9df173ffb84be7cf62857 /net/bridge/br_netlink.c | |
parent | bridge: split rcu and no-rcu cases of fdb lookup (diff) | |
download | linux-b078f0df676233fc7ebc1ab270bd11ef5824bb64.tar.xz linux-b078f0df676233fc7ebc1ab270bd11ef5824bb64.zip |
bridge: add netlink notification on forward entry changes
This allows applications to query and monitor bridge forwarding
table in the same method used for neighbor table. The forward table
entries are returned in same structure format as used by the ioctl.
If more information is desired in future, the netlink method is
extensible.
Example (using bridge extensions to iproute2)
# br monitor
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_netlink.c')
-rw-r--r-- | net/bridge/br_netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index f8bf4c7f842c..cedcafd115f3 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -196,6 +196,7 @@ int __init br_netlink_init(void) /* Only the first call to __rtnl_register can fail */ __rtnl_register(PF_BRIDGE, RTM_SETLINK, br_rtm_setlink, NULL); + __rtnl_register(PF_BRIDGE, RTM_GETNEIGH, NULL, br_fdb_dump); return 0; } |