yury pakhomenko - 2008-05-13

Logged In: YES
user_id=2082275
Originator: YES

a dirty work around before the right solution arrives:

sflowPlugin.c:
in function static void handleSflowSample(SFSample *sample, int deviceId) :

* change queuePacket((u_char*)deviceId,&pkthdr,sample->header); to
int jip = 0;
for( ; jip < sample->meanSkipCount; jip ++ )queuePacket((u_char*)deviceId,&pkthdr,sample->header);

* change myGlobals.device[deviceId].samplingRate = sample->meanSkipCount; to
myGlobals.device[deviceId].samplingRate = 1;