[NETFRAME] IPv4 checksum not being computed
Carlos Vicente
cvicente at network-services.uoregon.edu
Thu Apr 24 18:38:14 CEST 2008
Thanks much.
I will give Net::Frame a try later.
Is there a way to avoid this warning?:
Net::Packet::Dump::_startTcpdump: lookupnet: eth1.60: no IPv4
address assigned
I have tried 'no warnings' and passing -X to perl, but no luck.
Thanks for your help.
cv
GomoR wrote:
> Hi Carlos,
>
> that's because you create a custom Net::Packet::Env object, but do
> not use it. You may also replace values from the default $Env object,
> like this:
>
> --- src.pl 2008-04-24 09:59:19.000000000 +0200
> +++ dst.pl 2008-04-24 10:00:17.000000000 +0200
> @@ -1,6 +1,6 @@
> # Build custom environment object
> - my $env = Net::Packet::Env->new( dev => $interface,
> - mac => $srcmac,
> - ip => '0.0.0.0',
> - doIPv4Checksum => 1,
> - ip6 => '::' );
> + $Env->dev($interface);
> + $Env->mac($srcmac);
> + $Env->ip('0.0.0.0');
> + $Env->doIPv4Checksum(1);
> + $Env->ip6('::');
> + $Env->debug(3);
>
> That should do it. Also, you should consider switching to Net::Frame,
> it is the now prefered framework.
>
>
>
More information about the netframe
mailing list