From 741d86705c844713da06a1d648810bb963777363 Mon Sep 17 00:00:00 2001 From: Srinivas Aji Date: Thu, 29 Nov 2007 23:08:12 +0530 Subject: [PATCH] Removed portion of brmon.c which received BPDUs through netlink. 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 --- brmon.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/brmon.c b/brmon.c index 4afe5e1..d29e7f5 100644 --- 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; -- 2.39.2