diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-04-04 10:03:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-04 20:22:28 -0400 |
commit | 36fd2b63e3b4336744cf3f6a6c9543ecbec334a7 (patch) | |
tree | 0793a71cf90d8bb3ea1573564ad5bed485324396 /net/bridge/br_private.h | |
parent | b078f0df676233fc7ebc1ab270bd11ef5824bb64 (diff) |
bridge: allow creating/deleting fdb entries via netlink
Use RTM_NEWNEIGH and RTM_DELNEIGH to allow updating of entries
in bridge forwarding table. This allows manipulating static entries
which is not possible with existing tools.
Example (using bridge extensions to iproute2)
# br fdb add 00:02:03:04:05:06 dev eth0
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 884d245a205a..4bbe0d14c9a2 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -355,6 +355,8 @@ extern void br_fdb_update(struct net_bridge *br, | |||
355 | struct net_bridge_port *source, | 355 | struct net_bridge_port *source, |
356 | const unsigned char *addr); | 356 | const unsigned char *addr); |
357 | extern int br_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb); | 357 | extern int br_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb); |
358 | extern int br_fdb_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg); | ||
359 | extern int br_fdb_delete(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg); | ||
358 | 360 | ||
359 | /* br_forward.c */ | 361 | /* br_forward.c */ |
360 | extern void br_deliver(const struct net_bridge_port *to, | 362 | extern void br_deliver(const struct net_bridge_port *to, |