Removed portion of brmon.c which received BPDUs through netlink.
authorSrinivas Aji <Aji_Srinivas@emc.com>
Thu, 29 Nov 2007 17:38:12 +0000 (23:08 +0530)
committerSrinivas Aji <Aji_Srinivas@emc.com>
Wed, 27 Feb 2008 18:03:50 +0000 (23:33 +0530)
   At one time, BPDUs were being received through netlink using a kernel
   patch. We now receive and send BPDUs through PF_PACKET sockets, so this
   code is not needed anymore.

Signed-off-by: Srinivas Aji <Aji_Srinivas@emc.com>
brmon.c

diff --git a/brmon.c b/brmon.c
index 4afe5e1..d29e7f5 100644 (file)
--- a/brmon.c
+++ b/brmon.c
@@ -96,14 +96,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;