Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Re: Re: Re: NetPacket::TCP output

by Anonymous Monk
on Oct 10, 2001 at 18:06 UTC ( #117995=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: Re: NetPacket::TCP output
in thread NetPacket::TCP output

Nope, that explanation doesn't work. Help?


Comment on Re: Re: Re: Re: NetPacket::TCP output
Replies are listed 'Best First'.
Re: Re: Re: Re: Re: NetPacket::TCP output
by jlargent (Initiate) on Apr 08, 2003 at 13:39 UTC
    I can't take credit for this, I copied from someone elses code.
    sub parse_tcp_flags { my $flagword = shift(@_); my %flags = ("FIN"=>0,"SYN"=>0,"RST"=>0,"PSH"=>0,"ACK"=>0,"URG"=>0) +; $flags{FIN} = ($flagword & 0x01)? 1: 0; $flags{SYN} = ($flagword & 0x02)? 1: 0; $flags{RST} = ($flagword & 0x04)? 1: 0; $flags{PSH} = ($flagword & 0x08)? 1: 0; $flags{ACK} = ($flagword & 0x10)? 1: 0; $flags{URG} = ($flagword & 0x20)? 1: 0; return \%flags; }
    Pass this function the flags from parse_tcp_flags

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2016-02-09 04:35 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (301 votes), past polls