Skip Menu |

This queue is for tickets about the Net-sFlow CPAN distribution.

Report information
The Basics
Id: 99119
Status: resolved
Priority: 0/
Queue: Net-sFlow

People
Owner: Nobody in particular
Requestors: ACFEREN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.11
Fixed in: (no value)

Attachments


Subject: All details discarded when an unknown format is found
This is related to Bug 99118. I've attached a screenshot to illustrate the issue. Wireshark currently can't decode format 7 either, but wireshark still gives results for the Generic counters and Ethernet interface counters in the sample. When _decodeCounterRecord returns if there is an error the last sample is popped off of @sFlowSamples. Unfortunately, that last sample also also contains the successfully decoded values. changing pop @sFlowSamples; to pop @sFlowSamples unless $error =~ /rest of the datagram skipped/; Seems to resolve the problem, but perhaps there is a better solution. Regardless of the exact solution I think the change needs to be made every place where samples are popped on error.
Subject: Screenshot from 2014-09-24 12:11:49.png
Screenshot from 2014-09-24 12:11:49.png
Subject: Re: [rt.cpan.org #99119] All details discarded when an unknown format is found
Date: Tue, 16 Dec 2014 06:11:32 +0100
To: bug-Net-sFlow [...] rt.cpan.org
From: "E. Jasinska" <elisa [...] jasinska.de>
This will currently indeed discard the entire datagram if one sample has an unknown type. I vaguely recall there was a reason why I did that, but I can't think of it anymore. Let me have another look and see if there is anything I can do. Same as for the related bug (99118), if you happen to have data you could share with me which I could test this against, that would be very helpful. Thanks! Elisa On Sep 24, 2014, at 6:32 PM, Andrew Feren via RT <bug-Net-sFlow@rt.cpan.org> wrote: Show quoted text
> Wed Sep 24 12:32:39 2014: Request 99119 was acted upon. > Transaction: Ticket created by ACFEREN > Queue: Net-sFlow > Subject: All details discarded when an unknown format is found > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: ACFEREN@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=99119 > > > > This is related to Bug 99118. I've attached a screenshot to illustrate the issue. Wireshark currently can't decode format 7 either, but wireshark still gives results for the Generic counters and Ethernet interface counters in the sample. > > When _decodeCounterRecord returns if there is an error the last sample is popped off of @sFlowSamples. Unfortunately, that last sample also also contains the successfully decoded values. > > changing > > pop @sFlowSamples; > > to > > pop @sFlowSamples unless $error =~ /rest of the datagram skipped/; > > Seems to resolve the problem, but perhaps there is a better solution. > > Regardless of the exact solution I think the change needs to be made every place where samples are popped on error. > <Screenshot from 2014-09-24 12:11:49.png>
will be fixed 0.12