Hi All,

For one of customers, our sflow v5 parsing code shows the output interface index number as 0. Due to this we are unable to classify the out going traffic. We have handled both normal and expanded format. Is there any special handling required to get this out from the packet.

Current parsing code is

       if(nfaEng_Expanded) {
           flow.inputPortFormat = getInt32();
           flow.inputPort = getInt32();
           flow.outputPortFormat = getInt32();
           flow.outputPort = getInt32();
       }
       else {
           int inp, outp;
           inp = getInt32();
           outp = getInt32();
           flow.inputPortFormat = inp >> 30;
           flow.outputPortFormat = outp >> 30;
           flow.inputPort = inp & 0x3fffffff;
           flow.outputPort = outp & 0x3fffffff;
       }
Your help is highly appreciated.

Thanks
Raj

Reply via email to