Skip Menu |

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

Report information
The Basics
Id: 55163
Status: resolved
Priority: 0/
Queue: Net-Pcap

People
Owner: Nobody in particular
Requestors: iarnell [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.16
Fixed in: 0.18



Subject: typo in eg/pcapdump
There's a silly typo in eg/pcapdump; UDP frames are incorrectly marked as being TCP. Attached patch from Jose Pedro Oliveira fixes it.
Subject: net-pcap-0.16-eg-pcapdump.patch
diff -ruN Net-Pcap-0.16-orig/eg/pcapdump Net-Pcap-0.16/eg/pcapdump --- Net-Pcap-0.16-orig/eg/pcapdump 2008-01-01 09:12:30.000000000 +0000 +++ Net-Pcap-0.16/eg/pcapdump 2010-03-02 16:21:42.278072411 +0000 @@ -129,7 +129,7 @@ } elsif ($ipframe->{proto} == IP_PROTO_UDP) { my $udpframe = NetPacket::UDP->decode($ipframe->{data}); - $proto = "TCP"; + $proto = "UDP"; $src_port = $udpframe->{src_port}; $dest_port = $udpframe->{dest_port}; $payload = $udpframe->{data};
Subject: Re: [rt.cpan.org #55163] typo in eg/pcapdump
Date: Wed, 28 Nov 2012 22:05:24 +0100
To: bug-Net-Pcap [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Iain Arnell wrote via RT: Show quoted text
> There's a silly typo in eg/pcapdump; UDP frames are incorrectly marked > as being TCP. Attached patch from Jose Pedro Oliveira fixes it.
Thanks, applied. » https://github.com/maddingue/Net-Pcap/commit/5536d23c8051e57975a326a420009eaa57b3c5c2 -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.