search for: port_role

Displaying 4 results from an estimated 4 matches for "port_role".

2007 Apr 18
1
[Bridge] STP Explanation (2)
...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->bpdu_body.flags.topo_change_ack; buf[12] = bpdu->bpdu_body.root_id.prio[0]; buf[1...
2007 Apr 18
0
[Bridge] STP Explanation
...tp 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 char peut ?tre assimil? ? un octet unsigne...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...arch(port_speed, fc_port_speed_names) static int show_fc_fc4s (char *buf, u8 *fc4_list) { int i, len=0; for (i = 0; i < FC_FC4_LIST_SIZE; i++, fc4_list++) len += sprintf(buf + len , "0x%02x ", *fc4_list); len += sprintf(buf + len, "\n"); return len; } /* Convert FC_PORT_ROLE bit values to ascii string name */ static const struct { u32 value; char *name; } fc_port_role_names[] = { { FC_PORT_ROLE_FCP_TARGET, "FCP Target" }, { FC_PORT_ROLE_FCP_INITIATOR, "FCP Initiator" }, { FC_PORT_ROLE_IP_PORT, "IP Port" }, }; fc_bitfield_name_se...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...arch(port_speed, fc_port_speed_names) static int show_fc_fc4s (char *buf, u8 *fc4_list) { int i, len=0; for (i = 0; i < FC_FC4_LIST_SIZE; i++, fc4_list++) len += sprintf(buf + len , "0x%02x ", *fc4_list); len += sprintf(buf + len, "\n"); return len; } /* Convert FC_PORT_ROLE bit values to ascii string name */ static const struct { u32 value; char *name; } fc_port_role_names[] = { { FC_PORT_ROLE_FCP_TARGET, "FCP Target" }, { FC_PORT_ROLE_FCP_INITIATOR, "FCP Initiator" }, { FC_PORT_ROLE_IP_PORT, "IP Port" }, }; fc_bitfield_name_se...