diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-02-17 12:26:28 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-02-17 12:26:28 +0100 |
commit | c6ddb4451138005bbf678ee75d6de690a165faa2 (patch) | |
tree | c831f55fc1bd1f371a270034f2b46bc4ebc94e0d /lib/edi/PFT.hpp | |
parent | cf26226714f73ce0d2b833bc579dbb00b9297d88 (diff) | |
download | dabmod-c6ddb4451138005bbf678ee75d6de690a165faa2.tar.gz dabmod-c6ddb4451138005bbf678ee75d6de690a165faa2.tar.bz2 dabmod-c6ddb4451138005bbf678ee75d6de690a165faa2.zip |
Update EDI lib: fix SAD and take latest changes
Diffstat (limited to 'lib/edi/PFT.hpp')
-rw-r--r-- | lib/edi/PFT.hpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/lib/edi/PFT.hpp b/lib/edi/PFT.hpp index 1a2f617..779509b 100644 --- a/lib/edi/PFT.hpp +++ b/lib/edi/PFT.hpp @@ -58,17 +58,17 @@ class Fragment private: std::vector<uint8_t> _payload; - pseq_t _Pseq; - findex_t _Findex; - findex_t _Fcount; - bool _FEC; - bool _Addr; - uint16_t _Plen; - uint8_t _RSk; - uint8_t _RSz; - uint16_t _Source; - uint16_t _Dest; - bool _valid; + pseq_t _Pseq = 0; + findex_t _Findex = 0; + findex_t _Fcount = 0; + bool _FEC = false; + bool _Addr = false; + uint16_t _Plen = 0; + uint8_t _RSk = 0; + uint8_t _RSz = 0; + uint16_t _Source = 0; + uint16_t _Dest = 0; + bool _valid = false; }; /* The AFBuilder collects Fragments and builds an Application Frame @@ -146,6 +146,9 @@ class PFT */ void setMaxDelay(size_t num_af_packets); + /* Enable verbose fprintf */ + void setVerbose(bool enable); + private: void incrementNextPseq(void); @@ -155,6 +158,7 @@ class PFT // Keep one AFBuilder for each Pseq std::map<pseq_t, AFBuilder> m_afbuilders; + bool m_verbose = 0; }; } |