[NETFRAME] IPv4 checksum not being computed
GomoR
gomor at gomor.org
Fri Apr 25 08:54:44 CEST 2008
Currently there is no way to remove this message, appart from
removing the line from the Perl module code.
Regards,
On Thu, Apr 24, 2008 at 09:38:14AM -0700, Carlos Vicente wrote:
> 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.
> >
> >
> >
>
> _______________________________________________
> netframe site list
> netframe at lists.gomor.org
> http://lists.gomor.org/mailman/listinfo/netframe
>
--
^ ___ ___ http://www.GomoR.org/ <-+
| / __ |__/ Research Engineer |
| \__/ | \ ---[ zsh$ alias psed='perl -pe ' ]--- |
+--> Net::Frame <=> http://search.cpan.org/~gomor/ <---+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 1728 bytes
Desc: not available
Url : http://lists.gomor.org/pipermail/netframe/attachments/20080425/bdf1d3e4/attachment.bin
More information about the netframe
mailing list