Changeset 47 for trunk/src/dataFlowSet.c
- Timestamp:
- 08/30/07 17:46:34 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dataFlowSet.c
r36 r47 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 ) … … 791 792 * In a first time (until release 0.0.7, the information was sent via 792 793 * the process renetcolSender with an IPC message queue. But, the perf 793 * of IPC Msg was very bad with a system compilation by default.794 * So now, we send information directly from here.794 * of IPC Msg was very bad with a default system compilation. 795 * So, now, we send information directly from here. 795 796 */ 796 797 tmpRuleList = myPtrs->rulesListPtr; … … 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 */