mirror of
https://github.com/mfontanini/libtins
synced 2026-01-26 12:01:34 +01:00
Add extract_metadata to main PDU classes
This commit is contained in:
12
src/pdu.cpp
12
src/pdu.cpp
@@ -36,6 +36,18 @@ using std::vector;
|
||||
|
||||
namespace Tins {
|
||||
|
||||
PDU::metadata::metadata()
|
||||
: header_size(0), current_pdu_type(PDU::UNKNOWN), next_pdu_type(PDU::UNKNOWN) {
|
||||
|
||||
}
|
||||
|
||||
PDU::metadata::metadata(uint32_t header_size, PDUType current_type, PDUType next_type)
|
||||
: header_size(header_size), current_pdu_type(current_type), next_pdu_type(next_type) {
|
||||
|
||||
}
|
||||
|
||||
// PDU
|
||||
|
||||
PDU::PDU()
|
||||
: inner_pdu_() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user