in reply to Simplest way to craft an icmpv6 echo packet

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";

Replies are listed 'Best First'.
Re^2: Simplest way to craft an icmpv6 echo packet
by ewhitt (Scribe) on Sep 04, 2010 at 23:45 UTC
    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?