Show
Ignore:
Timestamp:
02/12/09 17:54:45 (14 years ago)
Author:
andreu
Message:

IPV6 links aggregation UP

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/routers_mgmt.c

    r95 r96  
    164164  char tad[16]; 
    165165  int index = 0; 
     166  int i = 0; 
    166167  unsigned short n0, n1, n2, n3; 
    167168  unsigned char buffer4[4]; 
     
    201202        exit(1); 
    202203      } 
     204      for (i=0; i<MAX_INDEX_BY_ROUTER; i++) { 
     205        routerTmp->snmpIndexType[i] = 2; 
     206        routerTmp->snmpIndexID[i] = 0; 
     207      }       
    203208      snmpCpt = 0; 
    204209    }else{ 
     210      if (snmpCpt==0){ 
     211        routerTmp->snmpIndexType[0] = 1; 
     212        routerTmp->snmpIndexID[0] = 0; 
     213        snmpCpt++; 
     214      } 
    205215      if ( strspn(line, "I") == 1 ) { 
    206216        if (sscanf(line, "%s %s %s\n", 
     
    217227          routerTmp->snmpIndexID[snmpCpt] = index; 
    218228          routerTmp->snmpIndexType[snmpCpt] = 0; 
     229/*        fprintf(stderr, "snmpCpt %hu --> 0 \n", snmpCpt); */ 
    219230        } else if ( strcmp(tid, "C") == 0 ) { 
    220231          routerTmp->snmpIndexList[index] = 1; 
    221232          routerTmp->snmpIndexID[snmpCpt] = index; 
    222233          routerTmp->snmpIndexType[snmpCpt] = 1; 
     234/*        fprintf(stderr, "snmpCpt %hu --> 1 , indexSNMP: %hu\n", snmpCpt, index); */ 
    223235        } else { 
    224236          fprintf(stderr, "Error in file %s, line %d : bad code B or C \n",  
     
    226238          exit(1); 
    227239        } 
     240        snmpCpt++; 
    228241      } else { 
    229242        fprintf(stderr, "Error in file %s, line %d : bad index line \n",