Class DissectionInfoL4

Class Documentation

class peafowl::DissectionInfoL4

The result of the L4 identification process.

Public Functions

DissectionInfoL4()

Constructor.

DissectionInfoL4(pfwl_dissection_info_l4_t dissectionInfo)

Copy constructor.

Parameters
  • dissectionInfo: The information to be copied.

size_t getLength() const

Returns the length of the L4 header.

Return

The length of the L4 header.

size_t getPayloadLength() const

Returns the length of the L4 payload.

Return

The length of the L4 payload.

uint16_t getPortSrc() const

Returns the source port, in network byte order.

Return

The source port, in network byte order.

uint16_t getPortDst() const

Returns the destination port, in network byte order.

Return

The destination port, in network byte order.

Direction getDirection() const

Returns the packet direction (with respect to the source and destination addresses specified in the flow).

Return

The packet direction.

std::pair<const unsigned char*, size_t> getResegmentedPacket() const

Returns the resegmented TCP payload and its length.

Return

The resegmented TCP payload and its length.

ProtocolL4 getProtocol() const

Returns the L4 protocol.

Return

The L4 protocol.

pfwl_dissection_info_l4_t getNative() const

Returns the C representation of the L4 protocol.

Return

The C representation of the L4 protocol.