Class DissectionInfoL2

Class Documentation

class peafowl::DissectionInfoL2

The result of the L2 identification process.

Public Functions

DissectionInfoL2()

Constructor.

DissectionInfoL2(pfwl_dissection_info_l2_t dissectionInfo)

Copy constructor.

Parameters
  • dissectionInfo: The information to be copied.

size_t getLength() const

Returns the length of the L2 header.

Return

The length of the L2 header.

ProtocolL2 getProtocol() const

Returns the L2 protocol.

Return

The L2 protocol.

pfwl_dissection_info_l2_t getNative() const

Returns the C representation of the L2 protocol.

Return

The C representation of the L2 protocol.