Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Simple Construction of a RAW TCP/IP Packet.

by Anonymous Monk
on Dec 28, 2012 at 05:59 UTC ( #1010642=note: print w/ replies, xml ) Need Help??


in reply to Simple Construction of a RAW TCP/IP Packet.

Just to share, the code above working properly after updating TCP checksum generation parameter to:

my ($tcp_pseudo) = pack('a4a4CCnnnNNH2B8nvn', $src_host,$dst_host,0,$tcp_proto,$tcp_len, $src_port,$dst_port,$syn,$ack, $tcp_head_reserved,$tcp_all,$tcp_win,$null,$tcp_urg_ptr);


Comment on Re: Simple Construction of a RAW TCP/IP Packet.
Download Code
Replies are listed 'Best First'.
Re^2: Simple Construction of a RAW TCP/IP Packet.
by iThunder (Acolyte) on Mar 13, 2015 at 03:54 UTC
    Hello, I am trying to use this code to send TCP/IP packet but looks like it is not compiling correctly...the protocol field in IP header is 255 (same as one mentioned in socket(RAW,.....). Has anyone run into this issue?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-08-29 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (343 votes), past polls