search for: topo_chang

Displaying 2 results from an estimated 2 matches for "topo_chang".

Did you mean: 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 learning = 0; int forwarding = 0; int agreement = 0; int topo_change_ack = 0; }bpdu_flag; typedef struct { unsigned char protocol[2]= {0x00,0x00}; // le type unsigned ch...
2007 Apr 18
1
[Bridge] STP Explanation (2)
...nd_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; buf[5] = bpdu->bpdu_body.flags.proposal; buf[6] = bpdu->bpdu_body.flags.port_role[0]; buf[7] = bpdu->bpdu_body.flags.port_role[1]; buf[8] = bpdu->bpdu_body.flags.learning; buf[9] = bpdu->bpdu_body.flags.forwarding; buf[10] = bpdu->bpdu_body.flags.agreement; buf[11] = bpdu...