Hello,

Thank you for the imput, but apparently that is not the problem. I have
already set the iptables accordingly (and tested it using nc). I have
also fired up tcpdump on the target, and followed the instructions
(offloading was off), but it still reports bad checksum.

I will continue trying, although I have followed the documentation (or
at least I think so). If anybody knows libraries which the source
address can be customly set, please let me know.

Regards,
Mitescu George Dan

Fedor Sumkin <qosys....@gmail.com> writes:

> Hi all, 
>
> I guess that everything is fine with Net::RawIP. 
>
> tcpdump can't verify checksums if UDP / TCP checksum offloading(TCO) isn't 
> turned off.
> See, for example -
> https://sokratisg.net/2012/04/01/udp-tcp-checksum-errors-from-tcpdump-nic-hardware-offloading/
>
>
> You can also check on the receiver side whenever the packet get's dropped or 
> captured.
>
> Regards, 
> Fedor
>
> On Sun, Aug 21, 2016 at 5:31 PM, Mitescu George Dan <mitesc...@gmail.com> 
> wrote:
>
>  Hello,
>
>  I am trying to use Net::RawIP in order to craft UDP packets, which have
>  a custom source ip. The packets get sent, but tcpdump reports that the
>  checksum which is automatically computed (according to the docs) is 
> incorrect.
>
>  There is a single post about this issue on perlmonks, I've also seen
>  examples on the internet using Net::RawIP for this, so I've figured
>  that I might be doing something wrong. I also remember Net::RawIP
>  complain about being compiled for a different Perl version, but I've
>  solved that by deleting perl5/site_perl/RawIP* and reinstalling the
>  cpan module.
>
>  You can also give me suggestions about other modules which are as easy
>  to use as this one for changing the source address. :D
>
>  Regards,
>  Mitescu George Dan
>
>  --
>  To unsubscribe, e-mail: beginners-unsubscr...@perl.org
>  For additional commands, e-mail: beginners-h...@perl.org
>  http://learn.perl.org/

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to