From patchwork Mon Oct 17 18:12:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ed Swierk X-Patchwork-Id: 120280 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2CD01B7090 for ; Tue, 18 Oct 2011 05:20:41 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751943Ab1JQSUh (ORCPT ); Mon, 17 Oct 2011 14:20:37 -0400 Received: from c-98-248-32-191.hsd1.ca.comcast.net ([98.248.32.191]:59813 "EHLO meep" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751198Ab1JQSUg (ORCPT ); Mon, 17 Oct 2011 14:20:36 -0400 X-Greylist: delayed 512 seconds by postgrey-1.27 at vger.kernel.org; Mon, 17 Oct 2011 14:20:36 EDT Received: by meep (Postfix, from userid 1000) id 06081E3280; Mon, 17 Oct 2011 11:12:07 -0700 (PDT) Subject: bridge: allow forwarding LLDP frames From: Ed Swierk To: , , , X-Mailer: mail (GNU Mailutils 2.2) Message-Id: <20111017181207.06081E3280@meep> Date: Mon, 17 Oct 2011 11:12:07 -0700 (PDT) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org LLDP frames have reserved destination MAC address 01-80-C2-00-00-0E, which by default are not forwarded by 802.1d-compliant bridges. In certain situations, like when creating a transparent link-layer relay between a pair of interfaces, it may be useful to configure a bridge interface to forward LLDP and other control frames in the 01-80-C2-00-00-xx range rather than filtering them. Stephen Hemminger's recent patch allows the user to set a sysfs attribute /sys/class/net/brX/bridge/group_fwd_mask to enable forwarding of normally filtered addresses, with certain exceptions. This patch eliminates the restriction on LLDP frames, allowing the user to override the default behavior of filtering them. Signed-off-by: Ed Swierk --- -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index a248fe6..b016dd8 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -31,8 +31,8 @@ /* Control of forwarding link local multicast */ #define BR_GROUPFWD_DEFAULT 0 -/* Don't allow forwarding control protocols like STP and LLDP */ -#define BR_GROUPFWD_RESTRICTED 0x4007u +/* Don't allow forwarding control protocols like STP */ +#define BR_GROUPFWD_RESTRICTED 0x0007u /* Path to usermode spanning tree program */ #define BR_STP_PROG "/sbin/bridge-stp"