Skip Menu |

This queue is for tickets about the Net-Frame-Layer-ICMPv6 CPAN distribution.

Report information
The Basics
Id: 124015
Status: resolved
Priority: 0/
Queue: Net-Frame-Layer-ICMPv6

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

Bug Information
Severity: (no value)
Broken in: 1.10
Fixed in: (no value)



Subject: SYNOPSIS code throws an error
This code from the SYNOPSIS throws the following error: use Net::Frame::Simple; use Net::Frame::Layer::ICMPv6 qw(:consts); my $icmp = Net::Frame::Layer::ICMPv6->new( type => NF_ICMPv6_TYPE_ECHO_REQUEST, code => NF_ICMPv6_CODE_ZERO, checksum => 0, ); # Build an ICMPv6 echo-request use Net::Frame::Layer::ICMPv6::Echo; my $echo = Net::Frame::Layer::ICMPv6::Echo->new(payload => 'echo'); my $echoReq = Net::Frame::Simple->new(layers => [ $icmp, $echo ]); print $echoReq->print."\n"; Can't call method "dst" on an undefined value at /home/ahartmai/perl5/perlbrew/perls/26.1/lib/site_perl/5.26.1/Net/Frame/Layer/ICMPv6.pm line 213. I'm trying to send ICMPv6 echo request packets through a raw socket and want to use this module for crafting the packets and also for parsing the responses. My current workaround is to send $icmp->pack . $echo->pack which works but isn't very nice code.
On Thu Jan 04 17:04:16 2018, ABRAXXA wrote: [..] Show quoted text
> > Can't call method "dst" on an undefined value at > /home/ahartmai/perl5/perlbrew/perls/26.1/lib/site_perl/5.26.1/Net/Frame/Layer/ICMPv6.pm > line 213. > > I'm trying to send ICMPv6 echo request packets through a raw socket
[..] Hi, please take a look at the examples directory in the distribution archive. Especially the icmp-echo-send.pl program. Regards,
Out.
So you think an incorrect synopsis is a good idea and not worth fixing?
Have you tried the program in examples directory? Does it work for you?
No more response from requestor and examples directory answer the question.
The Synopsis is still incorrect but if you don't want to fix it, I don't care as I don't use the module where the maintainer doesn't answer a ticket for 18 months.
On Sat May 25 11:55:40 2019, ABRAXXA wrote: Show quoted text
> The Synopsis is still incorrect but if you don't want to fix it, I > don't care as I don't use the module where the maintainer doesn't > answer a ticket for 18 months.
Fair enough. I develop for myself, and chose to give it away for free to the community. Maybe I should keep my code for myself because some people don't like to read examples?