Changeset 44 for tags/REL-0.0.11beta
- Timestamp:
- 08/30/07 00:53:49 (16 years ago)
- Location:
- tags/REL-0.0.11beta/trunk
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
tags/REL-0.0.11beta/trunk/conf/rules.txt
r42 r44 13 13 # in table 6 14 14 15 N test_MPLS 16 O socket 10.0.0.1 1111 17 C 46 = 5 15 # Example 16 # Dump on 10.0.01:1111 all MPLS flow (field 46 = 5) 17 #N test_MPLS 18 #O socket 10.0.0.1 1111 19 #C 46 = 5 18 20 19 # This rule depends on functionnality not present in this beta release 21 # Example 22 # This rule depends on functionnality not present in this release 20 23 # from TCP flows 21 24 # prefix aggregation 22 25 # five minutes 23 26 # record in/out octets 24 N TCPVolumetry25 O file ascii /tmp/output2.txt26 A P27 R 4 1 R 4 2527 #N TCPVolumetry 28 #O file ascii /tmp/output2.txt 29 #A P 30 #R 4 1 R 4 25 28 31 29 # This rule depends on functionnality not present in this beta release 32 # Example 33 # This rule depends on functionnality not present in this release 30 34 # get all flows whom size between 15 & 16 Mo 31 35 # record all fields in a file 32 N Get_From_Size33 O file bin /tmp/output.txt34 C 1 > 15 C 1 < 1636 #N Get_From_Size 37 #O file bin /tmp/output.txt 38 #C 1 > 15 C 1 < 16 35 39 -
tags/REL-0.0.11beta/trunk/src/dataFlowSet.c
r42 r44 173 173 cpt++; 174 174 j = 0; 175 pos = (pftmp->fieldType)* 10+j;175 pos = (pftmp->fieldType)*MAX_RULES_PER_FIELD+j; 176 176 field_size = (int) pftmp->fieldLength; 177 177 178 178 /* special case: check yes on all flows from one router (phantom field nb 0) */ 179 while ( ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+j))) != NULL ) { 179 /* FIXME : this code is repeated, perhaps past before */ 180 while ( ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+j))) != NULL ) { 180 181 if ( (((RuleDefPtr)(*(myPtrs->rulesAddressPtr+j)))->value->stor.lvalue) 181 182 == myPtrs->pcktPtr->ipH->srcAdd ) … … 834 835 /* NEW transfert type */ 835 836 for ( ; tmpRL; tmpRL=tmpRL->next){ 836 if (tmpRL->id == tmpRuleList->id){ 837 if (tmpRL->id == tmpRuleList->id){ 837 838 s = sendMessage(tmpRL->host->sockId, myMsg.text, sizeof(myMsg.text), 838 839 tmpRL->host->hostAddressPtr); … … 844 845 } /* end if check */ 845 846 tmpRuleList = tmpRuleList->next; 847 tmpRL = myPtrs->rulesListPtr; /* ticket #11 */ 846 848 secondPftmp = tmp->lastField; 847 849 } /* end while tmpRuleList */ -
tags/REL-0.0.11beta/trunk/src/renetcol.c
r41 r44 167 167 } 168 168 tmp = NULL; 169 /* printRule(rulesListPtr); */ 170 /* exit(1); */ 169 #ifdef DEBUG 170 printRule(rulesListPtr); 171 #endif 172 171 173 172 174 fprintf(stderr, "renetcol: I become a deamon, next messages via syslogd. By.\n"); … … 330 332 setCache(myPtrs.rulesListPtr); 331 333 sendReadRulesSignal(myQueue); 334 #ifdef DEBUG 335 printRule(myPtrs.rulesListPtr); 336 #endif 332 337 } 333 338 … … 356 361 RuleDefPtr def = NULL; 357 362 363 #ifdef DEBUG 364 fprintf(stderr,"Cache for Rules\n"); 365 #endif 358 366 while (tmp) { 359 367 def = tmp->def; … … 365 373 rulesAddress[def->fieldType][i] = def; 366 374 def = def->next; 367 } 375 #ifdef DEBUG 376 fprintf(stderr,"%d: %d ", def->fieldType, i); 377 #endif 378 } 379 #ifdef DEBUG 380 fprintf(stderr,"\n"); 381 #endif 368 382 tmp = tmp->next; 369 383 } -
tags/REL-0.0.11beta/trunk/tool/check.sh
r37 r44 11 11 killall renetcolAgg 12 12 sleep 1 13 /home/maintenance/renetcol-0.0. 9/src/renetcolMsgCtl /home/maintenance/renetcol-0.0.9/src/renetcol13 /home/maintenance/renetcol-0.0.11beta/src/renetcolMsgCtl /home/maintenance/renetcol-0.0.11beta/src/renetcol 14 14 echo "renetcolMsgCtl started" 15 15 sleep 2 16 /home/maintenance/renetcol-0.0. 9/src/renetcol /home/maintenance/renetcol-0.0.9/src/info_routeur_netflow.txt /home/maintenance/renetcol-0.0.9/src/donneesblocsadresses2 /home/maintenance/renetcol-0.0.9/src/rules.txt16 /home/maintenance/renetcol-0.0.11beta/src/renetcol /home/maintenance/renetcol-0.0.11beta/src/info_routeur_netflow.txt /home/maintenance/renetcol-0.0.11beta/src/donneesblocsadresses2 /home/maintenance/renetcol-0.0.11beta/src/rules.txt 17 17 echo "renetcol restarted" 18 /home/maintenance/renetcol-0.0. 9/src/renetcolSender /home/maintenance/renetcol-0.0.9/src/renetcol 1 /home/maintenance/renetcol-0.0.9/src/rules.txt18 /home/maintenance/renetcol-0.0.11beta/src/renetcolSender /home/maintenance/renetcol-0.0.11beta/src/renetcol 1 /home/maintenance/renetcol-0.0.11beta/src/rules.txt 19 19 echo "renetcolSender restarted" 20 /home/maintenance/renetcol-0.0. 9/src/renetcolAgg20 /home/maintenance/renetcol-0.0.11beta/src/renetcolAgg 21 21 else 22 22 echo "All is up"