1
0
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:
Matias Fontanini
2016-02-20 22:19:12 -08:00
parent dae25b3381
commit 17da10d76e
32 changed files with 318 additions and 12 deletions

View File

@@ -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_() {