Displaying 20 results from an estimated 100 matches similar to: "[Bridge] setting STP values via brctl"
2007 Apr 18
0
[Bridge] [PATCH] (4/11) bridge - ioctl cleanup and consolidation
Merge the ioctl stub calls that just end up calling the sub-function
to do the actual ioctl. Move br_get_XXX_ifindices into the ioctl file
as well where they can be static.
diff -Nru a/net/bridge/br_device.c b/net/bridge/br_device.c
--- a/net/bridge/br_device.c 2004-05-20 10:51:05 -07:00
+++ b/net/bridge/br_device.c 2004-05-20 10:51:05 -07:00
@@ -19,21 +19,6 @@
#include <asm/uaccess.h>
2023 May 15
3
[Bridge] [PATCH net-next 1/2] bridge: Add a limit on FDB entries
On 15/05/2023 11:50, Johannes Nixdorf wrote:
> A malicious actor behind one bridge port may spam the kernel with packets
> with a random source MAC address, each of which will create an FDB entry,
> each of which is a dynamic allocation in the kernel.
>
> There are roughly 2^48 different MAC addresses, further limited by the
> rhashtable they are stored in to 2^31. Each entry is
2007 Apr 18
0
[Bridge] STP Explanation
Hi,
I'm trying to modify the stp kernel files in order to implements the RSTP. I've already modify the bpdu format like this :
------------------------------------------------------------------------------------------------------------------------------------
typedef struct
{
int topo_change = 0;
int proposal = 0;
int port_role[2] = {0,0} ; //role du port ?metteur du BPDU
2007 Apr 18
0
[Bridge] [PATCH 2.6] Fix message age in bridge STP config packets
This is a revised version of Kishore's patch to set message age appropriately
in STP configuration packets.
Signed-off-by: Kishore A K <KishoreAK@myw.ltindia.com>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
diff -Nru a/net/bridge/br_stp.c b/net/bridge/br_stp.c
--- a/net/bridge/br_stp.c 2004-06-29 14:45:50 -07:00
+++ b/net/bridge/br_stp.c 2004-06-29 14:45:50 -07:00
@@
2007 Apr 18
1
[Bridge] [PATCH 2.4] Bridge STP message age
This is the 2.4 version which incorporates the observations from Kishore
about 2.6. The existing 2.4 code set the age properly, but did not increment
correctly for HZ=1000 and could send a stale (expired) configuration.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
diff -Nru a/net/bridge/br_stp.c b/net/bridge/br_stp.c
--- a/net/bridge/br_stp.c 2004-06-29 15:30:32 -07:00
+++
2023 May 15
5
[Bridge] [PATCH net-next 1/2] bridge: Add a limit on FDB entries
A malicious actor behind one bridge port may spam the kernel with packets
with a random source MAC address, each of which will create an FDB entry,
each of which is a dynamic allocation in the kernel.
There are roughly 2^48 different MAC addresses, further limited by the
rhashtable they are stored in to 2^31. Each entry is of the type struct
net_bridge_fdb_entry, which is currently 128 bytes big.
2007 Apr 18
1
[Bridge] STP Explanation (2)
I saw some big mistakes, here's the correct version :
--------------------------------------------------------------------
void br_send_config_bpdu(struct net_bridge_port *p, struct bpdu *bpdu)
{
unsigned char buf[42];
buf[0] = bpdu->bpdu_header.protocol[0]; //0x00
buf[1] = bpdu->bpdu_header.protocol[1]; //0x00
buf[2] = bpdu->bpdu_header.version; //0x02
buf[3] =
2007 Apr 18
4
[Bridge] [Patch] [2.6.7] Bridge - Fix BPDU message_age
Fixes message_age field update in config BPDUs. Also checks whether the BPDU
message age has exceeded bridge max age before transmitting config BPDUs.
Signed-off-by: Kishore A K <KishoreAK@myw.ltindia.com>
Index: linux-2.6.7/net/bridge/br_stp.c
=============================================================
--- linux-2.6.7/net/bridge/br_stp.c.orig 2004-06-17 20:17:27.000000000 +0530
+++
2007 Apr 18
0
[Bridge] [PATCH] Crash on "brctl stp br0"
Hello!
"brctl stp br0" would crash brctl provided that br0 is a bridge. This is
caused by incorrect number of arguments in the commands table. "stp" needs
at least 2 arguments after "stp". The patch against version 1.0.4 is
attached.
--
Regards,
Pavel Roskin
-------------- next part --------------
--- brctl/brctl_cmd.c
+++ brctl/brctl_cmd.c
@@ -394,7 +394,7 @@
2007 Apr 18
2
[Bridge] [RFC] bridge kernel API change
Here is the proposed revision to the bridge utilities
interface to the kernel. The driving force is that the
existing interface can't easily be converted to 32/64 bit
compat. Right now, the bridge-utils (brctl) tries to handle
32bit command on 64 bit kernel, but the code is limited to sparc
and wrong.
Here is what I am thinking.
get version - not needed?
get bridges -
2007 Aug 14
3
[Bridge] Re: BUG: when using 'brctl stp'
Bridge locking for /sys/class/net/br0/bridge/stp_enabled
was wrong. Another bug in bridge utilities makes it such that
this interface, meant it wasn't being used. The locking needs to be removed
from set_stp_state(), the lock is already acquired down in
br_stp_start()/br_stp_stop.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
--- a/net/bridge/br_sysfs_br.c
2007 Apr 18
1
[Bridge] When I add br0 (brctl addbr br0), and I show bridge list (brctl show) it's eth0 which is in the list. It's a bug ?
All is in subject.
Example :
root@harobed:~ # brctl show
bridge name bridge id STP enabled interfaces
root@harobed:~ # ifconfig
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:H?te
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16510 errors:0 dropped:0 overruns:0 frame:0
2006 Dec 16
1
where can I find source code of bridge control utility (brctl).(bridge-utils-0.9.5.tar.gz)
Hi All,
Can anybody suggests where can I find source code of bridge control utility
(brctl).(bridge-utils-0.9.5.tar.gz)
Regards
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
2007 Apr 18
1
[Bridge] why ./brctl showmacs br0 display nothing?
hi:
my box use eth0 connect my pc. but I type command "./brctl showmacs br0", no mac addr display and the" brctl showmacs program" not exit,always exec
# ./brctl show
bridge name bridge id STP enabled interfaces
br0 8000.000123456789 no eth0
hdlc0
# ./brctl showmacs br0
2007 Apr 18
1
[Bridge] two fields are missing in brctl output when using /sys
I've noticed for a while that
# brctl showstp
output is showing 0 for port_no and port_id
It seems that somewhere in 2.6 sysfs land the following items got
printed in hexadecimal, and brctl code was parsing for decimal only
doug:/sys/class/net/eth0/brport# cat port_id
0x8001
doug:/sys/class/net/eth0/brport# cat port_no
0x1
The following patch to bridge-utils (git and 1.2 release) lets
2007 Apr 18
0
[Bridge] Re: brctl, Ethernet Bridging, openvpn, Universal TUN/TAP devices
On Thu, 2 Dec 2004 14:13:33 +0100
ncrfgs <ncrfgs@tin.it> wrote:
> Hi,
>
> I'm using the great 802.1d Ethernet Bridging support via
> brctl along with Universal TUN/TAP devices created with
> openvpn on a GNU system with a vanilla 2.6.8.1 Linux
> kernel.
>
>
> To start it:
>
> /usr/sbin/brctl addbr br${X}
> /sbin/ifconfig brX
2007 Apr 18
0
[Bridge] swithing trunk (tagged 802.1q traffic) with brctl
Hello,
My name is Ferm?n Gal?n and I work as Research Engineer at CTTC, Spain. I'm
trying to configure a bridge with brctl to switch VLAN tagged traffic
(802.1q), but I'm getting some problems.
In particular, I've a physical interface (eth2) connected to a Cisco trunk
port (so, the traffic to/from eth2 is tagged). I've added eth2 to a bridge
('brctl addif somebrige
2009 Feb 28
0
[Bridge] core dump in latest brctl
Here's a simple way to crash brctl (Fedora 8's brctl and tonight's git
tree):
[root at grok2 brctl]# ./brctl addbr bridge
[root at grok2 brctl]# ./brctl show
bridge name bridge id STP enabled interfaces
. Segmentation fault (core dumped)
Take it easy,
Ben
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc
2007 Apr 18
0
[Bridge] Need help: brctl and isis packets
Hello all,
First thanks to all for helping me. I have an issue to bring up bridging
isis packets using BRCTL.
As i am quite a newbie, maybe this is not possible or maybe I forget to
load modules so that the bridging I am trying to put in place work
properly.
Here is the configuration I used:
I1 ------ eth1 (physical interface of my linux machine)
----------- BRIDGE ----------- n1-eth0 (tuntap
2007 Apr 18
1
[Bridge] BR2684-rt and brctl
Hello,
I am wondering if any of you knows how to add BR2684-rt nas
interfaces into a Ethernet bridge, I know that brctl will work with
BR2684-br, but not for BR2684-rt.
Many thanks!
Hai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux-foundation.org/pipermail/bridge/attachments/20070307/392c8ffd/attachment-0002.htm