]> git.ipfire.org Git - people/ms/rstp.git/commitdiff
Remove code for passing STP BPDU via netlink
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 18 May 2011 22:48:59 +0000 (15:48 -0700)
committerStephen Hemminger <shemminger@vyatta.com>
Wed, 18 May 2011 22:48:59 +0000 (15:48 -0700)
EMC implemented a mechanism of passing BPDU via netlink
that was never accepted in upstream kernel.

brmon.c

diff --git a/brmon.c b/brmon.c
index fb54be3d4d71072af09ce62f0f1e122684e2c323..f1fb44d3594349533080c8cc9cc391d1868a0cbf 100644 (file)
--- a/brmon.c
+++ b/brmon.c
@@ -88,14 +88,6 @@ static int dump_msg(const struct sockaddr_nl *who, struct nlmsghdr *n,
         if (tb[IFLA_MASTER] && af_family != AF_BRIDGE)
           return 0;
 
-        /* Check for BPDU */
-        if (tb[IFLA_PRIORITY] && af_family == AF_BRIDGE) {
-          bridge_bpdu_rcv(ifi->ifi_index,
-                   RTA_DATA(tb[IFLA_PRIORITY]),
-                   RTA_PAYLOAD(tb[IFLA_PRIORITY]));
-          return 0;
-        }
-
        if (tb[IFLA_IFNAME] == NULL) {
                fprintf(stderr, "BUG: nil ifname\n");
                return -1;