TCP packet. More...
#include <senf/Packets/DefaultBundle/TCPPacket.hh>
Public Types | |
typedef PacketTypeMixin< TCPPacketType > | mixin |
typedef ConcretePacket< TCPPacketType > | packet |
TCP packet typedef. More... | |
typedef TCPPacketParser | parser |
typedef to the parser of TCP packet More... | |
Public Types inherited from senf::PacketTypeBase | |
typedef Packet | packet |
typedef senf::detail::packet::iterator | iterator |
typedef senf::detail::packet::const_iterator | const_iterator |
typedef senf::detail::packet::size_type | size_type |
typedef senf::detail::packet::difference_type | difference_type |
typedef senf::detail::packet::byte | byte |
typedef PacketInterpreterBase::range | range |
typedef PacketInterpreterBase::optional_range | optional_range |
typedef PacketInterpreterBase::factory_t | factory_t |
typedef VoidPacketParser | parser |
Parser to parser packet fields. More... | |
Public Types inherited from senf::PacketTypeMixin< TCPPacketType > | |
typedef void ::key_t | key_t |
typedef boost::optional< key_t > | optional_key_t |
Static Public Member Functions | |
static void | dump (packet p, std::ostream &os) |
Dump given TCPPacket in readable form to given output stream. More... | |
static void | finalize (packet p) |
Finalize packet. More... | |
Static Public Member Functions inherited from senf::PacketTypeBase | |
static optional_range | no_range () |
static factory_t | no_factory () |
template<class PacketType > | |
static factory_t | factory () |
static size_type | initSize () |
Get size of new (empty) packet. More... | |
static size_type | initHeadSize () |
Get size of new (empty) packet header. More... | |
static void | init (packet p) |
Initialize new packet. More... | |
static optional_range | nextPacketRange (packet p) |
Get next packet placement. More... | |
static factory_t | nextPacketType (packet p) |
Get type of next packet. More... | |
static void | finalize (packet p) |
Finalize packet. More... | |
static void | dump (packet p, std::ostream &os) |
Dump packet data in readable form. More... | |
Static Public Member Functions inherited from senf::PacketTypeMixin< TCPPacketType > | |
static optional_key_t | key (Packet const &p) |
Find key of packet from registry. More... | |
static PacketTypeBase::factory_t | lookup (key_t key) |
Lookup the key in the registry. More... | |
static PacketInterpreterBase::optional_range | nextPacketRange (ConcretePacket< TCPPacketType > const &p) |
static PacketInterpreterBase::factory_t | nextPacketType (ConcretePacket< TCPPacketType > const &p) |
static PacketInterpreterBase::size_type | initSize () |
static void | init (ConcretePacket< TCPPacketType > const &p) |
Static Public Attributes | |
static const IPTypes::key_t | ipType = 6 |
TCP packet.
0 | 4 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 31 |
---|---|---|---|---|---|---|---|---|---|
Source Port | Destination Port | ||||||||
Sequence Number | |||||||||
Acknowledgment Number | |||||||||
DataOffset | Reserved | UR | AC | PS | RS | SY | FI | Window Size | |
Checksum | Urgent Pointer |
Definition at line 133 of file TCPPacket.hh.
Definition at line 137 of file TCPPacket.hh.
TCP packet typedef.
Definition at line 138 of file TCPPacket.hh.
typedef to the parser of TCP packet
Definition at line 139 of file TCPPacket.hh.
|
static |
Dump given TCPPacket in readable form to given output stream.
Definition at line 101 of file TCPPacket.cc.
|
static |
Finalize packet.
Definition at line 122 of file TCPPacket.cc.
|
static |
Definition at line 153 of file TCPPacket.hh.