- Timestamp:
- 12/29/10 15:10:44 (12 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dataFlowSet.c
r146 r147 77 77 #endif 78 78 struct AggCache agCache; 79 struct DoSCache dosCache; 79 struct DoSCache dosCache; 80 dosCache.packets = 1; 81 dosCache.bytes = 1; 82 dosCache.endTime = 1; 83 dosCache.startTime = 1; 84 dosCache.sampling = myPtrs->currentRouterPtr->sampled; 80 85 int bool = 0; /* in IPV4 Agg mode enabled, we need to now if it's an IPv4 */ 81 86 int isIPv6 = 0; … … 1461 1466 && ((dosCache.bytes)/(dosCache.packets) < RATIO_DOS ) ) { 1462 1467 jdos = 0; 1463 while ( ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+jdos))) != NULL ) {1464 posdos = 69*MAX_RULES_PER_FIELD+jdos;1468 posdos = 69*MAX_RULES_PER_FIELD+jdos; 1469 while ( ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+posdos))) != NULL ) { 1465 1470 ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+posdos)))->check = 1; 1466 1471 jdos++; 1472 posdos = 69*MAX_RULES_PER_FIELD+jdos; 1467 1473 } 1468 1474 } … … 1471 1477 & ((dosCache.bytes)/(dosCache.packets) < RATIO_DOS ) ) { 1472 1478 jdos = 0; 1473 while ( ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+jdos))) != NULL ) {1474 posdos = 69*MAX_RULES_PER_FIELD+jdos;1479 posdos = 69*MAX_RULES_PER_FIELD+jdos; 1480 while ( ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+posdos))) != NULL ) { 1475 1481 ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+posdos)))->check = 1; 1476 1482 jdos++; 1483 posdos = 69*MAX_RULES_PER_FIELD+jdos; 1477 1484 } 1478 1485 } 1479 1486 } 1487 dosCache.packets = 1; 1488 dosCache.bytes = 1; 1489 dosCache.endTime = 1; 1490 dosCache.startTime = 1; 1480 1491 1481 1492 /*