diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-11-13 13:10:30 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-11-13 13:10:30 +0100 |
commit | cba531bbad8481db47318ac8146c54252100f2ad (patch) | |
tree | 3352e929cfee28b7ebb6003eff9b32d932a9301c /src/fig0_31.cpp | |
parent | a1415d55cd2db58ff5469cabe64efb9ff29dcec0 (diff) | |
download | etisnoop-cba531bbad8481db47318ac8146c54252100f2ad.tar.gz etisnoop-cba531bbad8481db47318ac8146c54252100f2ad.tar.bz2 etisnoop-cba531bbad8481db47318ac8146c54252100f2ad.zip |
Add first filter to display only some FIGs
TODO: many FIGs print without using printbuf, fir which the filter doesn't
work yet.
Diffstat (limited to 'src/fig0_31.cpp')
-rw-r--r-- | src/fig0_31.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fig0_31.cpp b/src/fig0_31.cpp index cbaf296..6d0a68c 100644 --- a/src/fig0_31.cpp +++ b/src/fig0_31.cpp @@ -48,7 +48,7 @@ bool fig0_31_is_complete(uint64_t figtype_flags) // FIG 0/31 FIC re-direction // ETSI EN 300 401 8.1.12 -bool fig0_31(fig0_common_t& fig0, int indent) +bool fig0_31(fig0_common_t& fig0, const display_settings_t &disp) { uint32_t FIG_type0_flag_field = 0, flag_field; uint8_t i = 1, j, FIG_type1_flag_field = 0, FIG_type2_flag_field = 0; @@ -68,7 +68,7 @@ bool fig0_31(fig0_common_t& fig0, int indent) sprintf(desc, "FIG type 0 flag field=0x%X, FIG type 1 flag field=0x%X, FIG type 2 flag field=0x%X", FIG_type0_flag_field, FIG_type1_flag_field, FIG_type2_flag_field); - printbuf(desc, indent+1, NULL, 0); + printbuf(desc, disp+1, NULL, 0); for(j = 0; j < 32; j++) { // iterate over FIG type 0 re-direction @@ -78,12 +78,12 @@ bool fig0_31(fig0_common_t& fig0, int indent) (j == 19) || (j == 26) || (j == 28))) { sprintf(desc, "fig0.oe()=%d FIG 0/%d carried in AIC, invalid configuration, shall always be carried entirely in the FIC", fig0.oe(), j); - printbuf(desc, indent+2, NULL, 0); + printbuf(desc, disp+2, NULL, 0); fprintf(stderr, "WARNING: FIG 0/%d FIG re-direction of fig0.oe()=%d FIG0/%d not allowed\n", fig0.ext(), fig0.oe(), j); } else if ((flag_field != 0) && ((j == 21) || (j == 24))) { sprintf(desc, "fig0.oe()=%d FIG 0/%d carried in AIC, same shall be carried in FIC", fig0.oe(), j); - printbuf(desc, indent+2, NULL, 0); + printbuf(desc, disp+2, NULL, 0); } else if (flag_field != 0) { if (fig0.oe() == 0) { @@ -92,7 +92,7 @@ bool fig0_31(fig0_common_t& fig0, int indent) else { // fig0.oe() == 1 sprintf(desc, "fig0.oe()=%d FIG 0/%d carried in AIC, may be carried entirely in AIC", fig0.oe(), j); } - printbuf(desc, indent+2, NULL, 0); + printbuf(desc, disp+2, NULL, 0); } } @@ -106,7 +106,7 @@ bool fig0_31(fig0_common_t& fig0, int indent) else { // fig0.oe() == 1 sprintf(desc, "fig0.oe()=%d FIG 1/%d carried in AIC, may be carried entirely in AIC", fig0.oe(), j); } - printbuf(desc, indent+2, NULL, 0); + printbuf(desc, disp+2, NULL, 0); } } @@ -120,7 +120,7 @@ bool fig0_31(fig0_common_t& fig0, int indent) else { // fig0.oe() == 1 sprintf(desc, "fig0.oe()=%d FIG 2/%d carried in AIC, may be carried entirely in AIC", fig0.oe(), j); } - printbuf(desc, indent+2, NULL, 0); + printbuf(desc, disp+2, NULL, 0); } } } |