Class DissectionInfoL3

Class Documentation

class peafowl::DissectionInfoL3

The result of the L3 identification process.

Public Functions

DissectionInfoL3()

Constructor.

DissectionInfoL3(pfwl_dissection_info_l3_t dissectionInfo)

Copy constructor.

Parameters
  • dissectionInfo: The information to be copied.

size_t getLength() const

Returns the length of the L3 header.

Return

The length of the L3 header.

size_t getPayloadLength() const

Returns the length of the L3 payload.

Return

The length of the L3 payload.

IpAddress getAddressSrc() const

Returns the source address, in network byte order.

Return

The source address, in network byte order.

IpAddress getAddressDst() const

Returns the destination address, in network byte order.

Return

The destination address, in network byte order.

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

Returns the refragmented IP packet (if it was fragmented, starting from the first byte of L3 packet) and its length.

Return

The refragmented IP packet (if it was fragmented, starting from the first byte of L3 packet) and its length.

ProtocolL3 getProtocol() const

Returns the L3 protocol.

Return

The L3 protocol.

pfwl_dissection_info_l3_t getNative() const

Returns the C representation of the L3 protocol.

Return

The C representation of the L3 protocol.