Commit 204e15ea authored by Damien Lucas's avatar Damien Lucas

. Changed ML address in FAQ

. Removed all occurences of 24 as number of ports
  (The number of ports of a switch is zwitch->nb_ports not 24
   and the unit of a switch is switch->unit not 1) ...
parent 91cb63bc
......@@ -573,11 +573,10 @@ ERR_CODE DB_switchs_insert(struct DB_db * db, VS_SwitchId ip,
/* ACHTUNG !!! if the request fails (not possible currently), don't forget
* to free(z.glop) */
unsigned int j;
struct SNMP_machines_elt *y;
for (j=1;j<=24;j++)
for (j=1;j<=z.glop->zwitch->nb_ports;j++)
if (!(z.glop->zwitch->ports[j].flags&(PF_BBPORT|PF_AOBPORT|PF_ATMPORT
04/28/2001 - BBP: initial version of the FAQ
04/29/2001 - nitrox: corrected mailing-list address
Table Of Contents
......@@ -199,7 +200,7 @@ VLAN server hardly matches our needs, so it won't probably match yours. We will
probably have to add new features or at least support for your switches in order
for this to work. So, contact our users mailing-list:
Precisely describe your network topology, even if you don't know how you can use
the VLAN server exactly and we will discuss what we can do. But first read the
......@@ -223,7 +224,7 @@ switches.
Adding support for new switches is trivial in most cases. If you need support
for a certain type of switches, just contact the developpers:
You will be asked for some information about the MIB of your switches, and
support will probably be added promptly.
......@@ -237,7 +238,7 @@ have to write some additional code before you can use it. So if you plan to use
it or just wonder whether you can use it or not, you should contact our users
mailing list:
2.6 Does the current version catch SNMP traps from switches ?
......@@ -331,7 +331,7 @@ inline static unsigned int Callback_Portid(struct snmp_session *session,
char buffer[SPRINT_MAX_LEN];
unsigned long long int port;
unsigned int i,j,unit;
unsigned int i,unit;
......@@ -374,21 +374,20 @@ inline static unsigned int Callback_Portid(struct snmp_session *session,
/* We reached end of the walk
* Let's see if the init was correctly done
* (We only test the first 24 ports of the unit 1
* (We only test the nb_ports ports of the unit n
* we are not sure that the others ports do exist) */
for (j=1;j<2;j++)
/* Consider here init failed */
VS_log(LOGERROR,SNMP,"Switch %s init: Walk on PORTids failed",\
/* Consider here init failed */
VS_log(LOGERROR,SNMP,"Switch %s init: Walk on PORTids failed",\
return 2;
return 2;
/* When this part is reached init is correctly done */
VS_log(LOGDEBUG,SNMP,"Walk on Portids successed.(CR: %u)",\
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment