aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig0_1.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-16 08:27:56 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-16 08:27:56 +0200
commitdce04f88d8a25ce5f6490d60f9ec59f854ff1f46 (patch)
tree4fc432e90e6406f53831b07d9b868c0752e43e61 /src/fig0_1.cpp
parentdef01ec0a90ca7d2eb660b4a537e661587167114 (diff)
downloadetisnoop-dce04f88d8a25ce5f6490d60f9ec59f854ff1f46.tar.gz
etisnoop-dce04f88d8a25ce5f6490d60f9ec59f854ff1f46.tar.bz2
etisnoop-dce04f88d8a25ce5f6490d60f9ec59f854ff1f46.zip
Fix FIG print of protection level
Really fixes issue #20
Diffstat (limited to 'src/fig0_1.cpp')
-rw-r--r--src/fig0_1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fig0_1.cpp b/src/fig0_1.cpp
index 74babbd..f8f9a1b 100644
--- a/src/fig0_1.cpp
+++ b/src/fig0_1.cpp
@@ -83,10 +83,10 @@ fig_result_t fig0_1(fig0_common_t& fig0, const display_settings_t &disp)
r.msgs.emplace_back("long");
if (option == 0x00) {
- r.msgs.push_back(strprintf("EEP %d-A", protection_level));
+ r.msgs.push_back(strprintf("EEP %d-A", protection_level+1));
}
else if (option == 0x01) {
- r.msgs.push_back(strprintf("EEP %d-B", protection_level));
+ r.msgs.push_back(strprintf("EEP %d-B", protection_level+1));
}
else {
r.errors.push_back(strprintf("Invalid option %d protection %d", option, protection_level));