Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Net::RawIP - invalid checksum ?

by willambender (Initiate)
on Dec 06, 2013 at 21:10 UTC ( [id://1066056]=note: print w/replies, xml ) Need Help??


in reply to Re: Net::RawIP - invalid checksum ?
in thread Net::RawIP - invalid checksum ?

Negitive. I now get.. (Defaults to TCP, src/dst ports are now 0)

14:46:44.553547 IP (tos 0x0, ttl 60, id 35744, offset 0, flags [DF], p +roto TCP (6), length 40) 192.168.10.10.0 > 192.168.10.20.0: Flags [DF], cksum 0xcd50 (incor +rect -> 0xd550), seq 0, win 65535, length 0

If i use your example and just change...

my $packet = new Net::RawIP({udp => {check => 0}});

Or even..

my $packet = new Net::RawIP({udp => {}});

I still get a bad checkdum...

4:47:22.542872 IP (tos 0x0, ttl 60, id 35885, offset 0, flags [DF], pr +oto UDP (17), length 35) 192.168.10.10.6544 > 192.168.10.20.514: [bad udp cksum 0xb59d -> 0 +xbd9d!] [|syslog]

-Will

Replies are listed 'Best First'.
Re^3: Net::RawIP - invalid checksum ?
by taint (Chaplain) on Dec 06, 2013 at 22:11 UTC
    Well. Like I said, I couldn't test it. I was just trying to help with a possible alternative.

    I notice after reading both the docs, and source. There's precious little, regarding the check option.

    OTOH I notice
    Net::RawIP::opt
    and
    Net::RawIP::udphdr
    Perhaps experimenting with them, might yield some positive results?

    Just a thought. Not being able to test it myself. I'm afraid that's all I got.

    Best wishes

    --Chris

    Hey. I'm not completely useless. I can be used as a bad example.
    

      Thanks, i appreciate any help i can get on this. :) I'll definitely take a look at those other options and post back with my findings. Thanks again.
      - Will

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1066056]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found