search for: bpdu

Displaying 20 results from an estimated 35 matches for "bpdu".

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] = BPDU_TYPE_CONFIG; buf[4] = bpdu->bpdu_body.flags.topo_change;...
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 initialis? ? UNKNOWN int...
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/b...
2007 Apr 18
0
[Bridge] [PATCH 2.6] Fix message age in bridge STP config packets
...inger@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 @@ -18,6 +18,11 @@ #include "br_private.h" #include "br_private_stp.h" +/* since time values in bpdu are in jiffies and then scaled (1/256) + * before sending, make sure that is at least one. + */ +#define MESSAGE_AGE_INCR ((HZ < 256) ? 1 : (HZ/256)) + static const char *br_port_state_names[] = { [BR_STATE_DISABLED] = "disabled", [BR_STATE_LISTENING] = "listening", @@...
2007 Apr 18
1
[Bridge] BPDU's not passing through bridge when STP is disabled
I have noticed a change in the linux bridge implementation between 2.1.15 and 2.1.17. Specifically, I do not think BPDU's (generated from another bridge) are passed across the bridge when STP is disabled. I think this relates to the LLC handling of BPDU's directly invoking br_bpdu_rcv. In 2.6.15, the br_handle_frame function would pass a BPDU to the br_handle_frame_finish function which would transmit...
2007 Apr 18
1
[Bridge] [PATCH 2.4] Bridge STP message age
...ger@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 +++ b/net/bridge/br_stp.c 2004-06-29 15:30:32 -07:00 @@ -20,7 +20,10 @@ #include "br_private.h" #include "br_private_stp.h" - +/* since time values in bpdu are in jiffies and then scaled (1/256) + * before sending, make sure that is at least one. + */ +#define MESSAGE_AGE_INCR ((HZ < 256) ? 1 : (HZ/256)) /* called under ioctl_lock or bridge lock */ int br_is_root_bridge(struct net_bridge *br) @@ -160,24 +163,26 @@ bpdu.root_path_cost = br-&gt...
2013 Sep 09
3
[Bridge] [PATCH 1/1] bridge: fix message_age_timer calculation
This changes the message_age_timer calculation to use the BPDU's max age as opposed to the local bridge's max age. This is in accordance with section 8.6.2.3.2 Step 2 of the 802.1D-1998 sprecification. With the current implementation, when running with very large bridge diameters, convergance will not always occur even if a root bridge is configured...
2007 Apr 18
1
[Bridge] Network seperation and ethernet bridge...
Hello all, I would like to know if it is possible to have 2 bridge instances running - one for the internal network and the other for the external network. What I need to explain is that I need the internal bridge to go though the Linux Kernel and pass its packets to the external network bridge. I am also hopeful that the internal network bridge will not need an IP address as I am hoping to
2007 Apr 18
0
[Bridge] BPDU Hello time
Hi, I tried to send the BDPU at less than 1 second in a STP implementation. When I look at STP info with brctl in tells me that the bpdu are send under the second but in fact it's "only" every second. Is it because we can't send BPDU less than 1 second or something else ? Thanks for your response HENRY Simon ------------------------------------------ Faites un voeu et puis Voila ! www.voila.fr
2007 Apr 18
2
[Bridge] tg3 bridge problems
...ecting to two switches. So far I didn't have any problems with it, but now a very strange thing happens with a new server I'm installing. The server is an ibm x346 having two onboard BCM5721 cards, the switches are cisco 3550, and I've tested with kernel versions 2.6.10 and 2.4.28. The bpdu's from the cisco switches simply cannot be seen on the server, causing loops in l2 traffic. I've tested with sticking a hub between the c3550 and the server, the switch sends out the bpdu's, but they are not seen by linux (running tethereal). This happens only on eth0, on eth1 everythin...
2009 Jan 02
1
[Bridge] RSTPD user mode daemon segfaults with kernel 2.6.24
Hi, I have downloaded rstp from sourceforge and I get a segfaults when running the daemon. This is the line where the problem arises: TST(ifc->master->stp_up,); just at the beginning of function: void bridge_bpdu_rcv(int if_index, const unsigned char *data, int len) in file bridge_track.c -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.linux-foundation.org/pipermail/bridge/attachments/20090102/82987da3/attachment.htm
2007 Aug 23
3
[Bridge] bridge problem when one interface is in blocking mode
Hi, We have a simple bridge setup but the ping (and other network traffic) does not work reliably. After tracing the code, it looks like a software bug. Since bridge software is been running by thousands of people. I guess I am wrong. Anyway, here is the problem. There are 2 boxes and each one has 2 interfaces, 1 ethernet and 1 wifi. STP is enabled for the bridge to avoid the loop. So the box 1
2015 Jan 24
3
VLAN issue
...put an > address on eth0.48 then the packets get tagged by Linux but if the > switch port is not configured to receive the packets for VLAN 48 as > tagged then it will simply drop these packets and you will not get > connectivity. > Additionally, the switch should gripe about 802.1q BPDUs. Check the in-memory system log (or syslog server if you have configured that). show logging | i 1Q Example: 1w1d: %SPANTREE-2-RECV_1Q_NON_TRUNK: Received 802.1Q BPDU on non trunk FastEthernet0/2 on vlan 100. > > So getting the actual VLAN config of the switch port would help to > det...
2008 Apr 09
0
[Bridge] STP on hardware switch
...s component has 2 network interfaces. One is connected to a 5 ports switch. eth0 eth1 => switch port1,2,3,4 I want to make a bridge with these 5 ports but my problem is that the network driver only install 2 interfaces. The KS8695 network switch can be configured to tag ingress packet (such as BPDU) so I can know where come from packets. So my problem is that I will modify the driver to have 5 network interfaces instead of 2 and filter BPDU packets with hardware. But I can't find how bridge layer tells the network driver to change his state. I explain myself : the KS8695 switch can be co...
2007 Apr 18
0
[Bridge] [PATCH] typo in br_stp.c: propgating -> propagating
...004-07-19 14:43:44.000000000 +0300 +++ linux-2.5/net/bridge/br_stp.c 2004-07-19 14:53:15.000000000 +0300 @@ -299,7 +299,7 @@ int isroot = br_is_root_bridge(br); pr_info("%s: topology change detected, %s\n", br->dev->name, - isroot ? "propgating" : "sending tcn bpdu"); + isroot ? "propagating" : "sending tcn bpdu"); if (isroot) { br->topology_change = 1;
2023 Jul 11
3
[Bridge] [PATCH v1 net] bridge: Return an error when enabling STP in netns.
...ast 956553768 12861249 0 0 0 12861249 <-. Keep TX: bytes packets errors dropped carrier collsns | increasing 1027834 11951 0 0 0 0 <-' rapidly This is because llc_rcv() drops all packets in non-root netns and BPDU is dropped. Let's show an error when enabling STP in netns. # unshare -n # ip link add br0 type bridge # ip link set br0 type bridge stp_state 1 Error: bridge: STP can't be enabled in non-root netns. Note this commit will be reverted later when we namespacify the whole LLC infra....
2007 Apr 18
1
[Bridge] eth2.100: received packet with own address as source address
...two specific ports mentioned above. This confuses me: 1) All VLANs (except for 102) are in an identical configuration 2) No other VLANs exhibit the same kernel message 3) I have another machine, running 2.6.18-rc2 with the same config and no kernel message Is this message specifically related to BPDU frames, or is it pertaining to any Ethernet frame on the port? Here is the STP config for one of the bridges. What's the next step to troubleshoot this? vlan200 bridge id 5dc0.0007e90f40c1 designated root 5dc0.0007e90f40c1 root port 0...
2008 Mar 07
7
[Bridge] bridge, vlan and *no* stp/bpdu
Hello list, I've posted here about this before, but I realise that it may have been assumed that the bridged vlans simply put a switch port in a blocking state and left my question ignored. So to recap. I have two tg3 interfaces named 'in' and 'out' and a bridge named 'br0' My vlan trunk is on the 'in' side of the network, and set as in.2, in.3 ... The
2023 Jul 12
2
[Bridge] [PATCH v1 net] bridge: Return an error when enabling STP in netns.
...0 0 12861249 <-. Keep >> TX: bytes packets errors dropped carrier collsns | increasing >> 1027834 11951 0 0 0 0 <-' rapidly >> >> This is because llc_rcv() drops all packets in non-root netns and BPDU >> is dropped. >> >> Let's show an error when enabling STP in netns. >> >> # unshare -n >> # ip link add br0 type bridge >> # ip link set br0 type bridge stp_state 1 >> Error: bridge: STP can't be enabled in non-root netns. >> &g...
2007 Apr 18
3
[Bridge] 802.1D/Linux STP issue
...t; > so here's a review of what i've come across: > > first lets start with the bug in the 802.1D-1998 spec > > 1998 - 8.6.2.2 Record Configuration Information - Use > you will notice that if the path cost ever goes up and everything > else is held constant, the BPDU will be dropped and the network not > react to the change, and the dropping of the BPDUs will make it seem > like the link is down. > > now lets look at the equivalent section in the 8021.D-2004 spec: > > 2004 - 17.6 Priority vector calculations > > as you can see h...