]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: add netlink notification on forward entry changes
authorstephen hemminger <shemminger@vyatta.com>
Mon, 4 Apr 2011 14:03:30 +0000 (14:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2011 00:22:27 +0000 (17:22 -0700)
commitbc4407aa0b445a3e76686c0a9aee305d56f30030
tree14eb5b201cfd451cf5c9df173ffb84be7cf62857
parent6ccfeb95858e14f7ea047ceea6fa6d5ca6e186d8
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>
net/bridge/br_fdb.c
net/bridge/br_netlink.c
net/bridge/br_private.h