ewhitt has asked for the wisdom of the Perl Monks concerning the following question:

What is the simplest module to craft an icmpv6 echo packet? I only need to send icmpv6 echo packets and not wait for the echo-replies. Suggestions?
  • Comment on Simplest way to craft an icmpv6 echo packet

Replies are listed 'Best First'.
Re: Simplest way to craft an icmpv6 echo packet
by Anonymous Monk on Sep 04, 2010 at 08:34 UTC
Re: Simplest way to craft an icmpv6 echo packet
by Khen1950fx (Canon) on Sep 04, 2010 at 20:35 UTC
    Maybe this will help.
    #!/usr/bin/perl use strict; use warnings; use Net::Frame::Simple; use Net::Frame::Layer::ICMPv6::Echo; my $echo = Net::Frame::Layer::ICMPv6::Echo->new( 'payload' => 'echo'); my $echoReq = Net::Frame::Simple->new( 'layers' => [$echo]); print $echoReq->print."\n";
      Thanks everyone. I will look more into Net::Frame. I need to be able to send this packet out the NIC and not print it. I take it Net::Frame can do this as well?
Re: Simplest way to craft an icmpv6 echo packet
by stevieb (Canon) on Sep 05, 2010 at 23:29 UTC

    kudos on your interest in IPv6...

    I'll be monitoring this thread for its responses, as I have significant interest in the protocol. I've yet needed any modules for a specific IPv6 task, as I've (so far, thankfully) been able to use the underlying OS to do its bidding for me. Good luck!

    Steve