Changeset 83 for trunk/src/dataFlowSet.c
- Timestamp:
- 11/06/08 16:37:23 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dataFlowSet.c
r80 r83 672 672 if ( myPtrs->currentRouterPtr->snmpIndexList[agCache.inputSnmp] == 1 ) { 673 673 #endif 674 675 /* OUT ("traffic from the prefix/subnet") */ 676 #if defined(MULTISAMPLING) 677 if (myPtrs->currentRouterPtr->sampled != res->sampling ){ 678 res->bytesNbOUT += agCache.bytes*myPtrs->currentRouterPtr->sampled/res->sampling; 679 res->pktsNbOUT += agCache.pkts*myPtrs->currentRouterPtr->sampled/res->sampling; 680 /* (res->flowNbOUT)++; FIXME : FIND SOMETHING*/ 681 }else{ 682 res->bytesNbOUT += agCache.bytes; 683 res->pktsNbOUT += agCache.pkts; 684 (res->flowNbOUT)++; 685 } 686 #else 674 687 if (myPtrs->currentRouterPtr->sampled != 0 ){ 675 /* OUT ("traffic from the prefix/subnet") */676 688 res->bytesNbOUT += agCache.bytes; 677 689 res->pktsNbOUT += agCache.pkts; … … 682 694 res->sampling = myPtrs->currentRouterPtr->sampled; 683 695 } 696 #endif 684 697 #if defined(IPV4AGGIDSNMP) 685 698 prefixKey.beginning = agCache.v4AdD>>(32-agCache.maskD)<<(32-agCache.maskD); … … 697 710 } 698 711 } 712 #if defined(MULTISAMPLING) 713 if (myPtrs->currentRouterPtr->sampled != res3->sampling ){ 714 res3->bytesNbIN += agCache.bytes*myPtrs->currentRouterPtr->sampled/res3->sampling; 715 res3->pktsNbIN += agCache.pkts*myPtrs->currentRouterPtr->sampled/res3->sampling; 716 /* (res3->flowNbIN)++; FIXME : FIND SOMETHING */ 717 }else{ 718 res3->bytesNbIN += agCache.bytes; 719 res3->pktsNbIN += agCache.pkts; 720 (res3->flowNbIN)++; 721 } 722 #else 699 723 if (myPtrs->currentRouterPtr->sampled != 0 ){ 700 724 /* IN ("traffic to the prefix/subnet") */ … … 707 731 res3->sampling = myPtrs->currentRouterPtr->sampled; 708 732 } 733 #endif 709 734 } 710 735 #endif