| Class | PacketFu::TcpFlags |
| In: |
lib/packetfu/tcp.rb
|
| Parent: | Struct.new(:urg, :ack, :psh, :rst, :syn, :fin) |
Implements flags for TCPHeader.
Fixnum (1 bit) :urg Fixnum (1 bit) :ack Fixnum (1 bit) :psh Fixnum (1 bit) :rst Fixnum (1 bit) :syn Fixnum (1 bit) :fin
Flags can typically be set by setting them either to 1 or 0, or to true or false.
Returns the TcpFlags as an integer. Also not a great candidate for to_s due to the short bitspace.