Displaying 2 results from an estimated 2 matches for "bpdu_type_tcn".
2007 Apr 18
1
[Bridge] STP Explanation (2)
...----------------------------------
/* called under bridge lock */
void br_send_tcn_bpdu(struct net_bridge_port *p)
{
unsigned char buf[4];
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_TCN;
br_send_bpdu(p, buf, 4);
}
static unsigned char header[3] = {0x00, 0x00, 0x02};
------------------------------------------------------------------------
please tell me what do you think of because if i'm getting the wrong way, i prefer to know it quickly. ^^
regards,
Simon Henry
---------...
2007 Apr 18
0
[Bridge] [PATCH] bridge: random extra bytes on STP TCN packet
...en Hemminger <shemminger@osdl.org>
diff -Naur a/net/bridge/br_stp_bpdu.c b/net/bridge/br_stp_bpdu.c
--- a/net/bridge/br_stp_bpdu.c 2006-09-03 23:40:08.000000000 +0530
+++ b/net/bridge/br_stp_bpdu.c 2006-09-03 23:40:33.000000000 +0530
@@ -121,7 +121,7 @@
buf[1] = 0;
buf[2] = 0;
buf[3] = BPDU_TYPE_TCN;
- br_send_bpdu(p, buf, 7);
+ br_send_bpdu(p, buf, 4);
}
/*