Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: NetPacket::TCP output

by chromatic (Archbishop)
on Oct 06, 2001 at 08:12 UTC ( #117168=note: print w/replies, xml ) Need Help??

in reply to NetPacket::TCP output

The first place I found searching Google was RFC 793. You'll probably have better luck reading something like TCP Illustrated by W. Richard Stevens.

They're standard flags, though, so there has to be plenty of material on the Net somewhere. If you can find documentation of the TCP protocol or a TCP FAQ, it'll give you a better idea. (My concept is fuzzy. I can't name them, but I can more or less recognize them.)

Replies are listed 'Best First'.
Re: Re: NetPacket::TCP output
by Benedict (Initiate) on Oct 06, 2001 at 20:49 UTC

    Ah, I'm fairly familiar with the flags and what they mean, ACK, SYN, RST, etc. My problem is that the output from NetPacket::TCP for the flags does not seem to be in the form, ACK, etc., but is somekind of numerical encoding. For instance, to test what the output was like, I captured one packet and printed out the flags, and what I got was "24". I don't know how to interpret that.


      There are six flags. Perhaps 2, for instance, is SYN, and 4 is ACK?


        Nope, that explanation doesn't work. Help?


Re^2: NetPacket::TCP output
by Anonymous Monk on Oct 04, 2012 at 19:30 UTC
    It appears to be as follows.
    1 = FIN 2 = SYN 4 = RST 8 = PSH 16 = ACK 32 = URG
    What ever number is returned from the $tcp->{'flags'} represents what packet set was seen. Ex: SYN ACK = 2 + 16 resulting in 18.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://117168]
[ambrus]: Today I accidentally cut my hand while carrying a computer. On the display part of the motherboard that sticks out at the back of the chasis and has ports, there's this thin metal sheet with holes cut for the ports, to guide plugs into the sockets.
[ambrus]: This sheet has sharp needle-like parts, 0.004 long and less than 0.001 wide, that can get bent to point outwards, and one of these cut into my palm when I lifted the box.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-01-16 19:32 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (151 votes). Check out past polls.