diff options
author | Tom Rondeau <tom@trondeau.com> | 2015-09-24 21:59:36 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2015-09-24 21:59:36 -0400 |
commit | cbd70793b710abe4e92e960f23c3286f7270dd65 (patch) | |
tree | 8a788eaf5b6f051f52ec59b1a1cf2100dc8dc68c /gr-fec/lib/async_encoder_impl.h | |
parent | 2e7800ff6f8dbf16775b8682c5297417e460fa67 (diff) |
fec: Adds MTU parameter to async and tagged stream blocks.
The maximum transmission unit (MTU, in bytes) sets up the encoders and
decoders with enough internal buffer space to accommodate frames of
varying sizes up to the MTU. Proections placed to make sure incoming
tagged streams and PDUs don't exceed this.
This also fixes a bug in the tagged stream encoder and decoder blocks
to properly use calculate_output_stream_length.
Diffstat (limited to 'gr-fec/lib/async_encoder_impl.h')
-rw-r--r-- | gr-fec/lib/async_encoder_impl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-fec/lib/async_encoder_impl.h b/gr-fec/lib/async_encoder_impl.h index fe48177b95..265054370d 100644 --- a/gr-fec/lib/async_encoder_impl.h +++ b/gr-fec/lib/async_encoder_impl.h @@ -46,6 +46,7 @@ namespace gr { bool d_packed; bool d_rev_unpack; bool d_rev_pack; + int d_mtu; uint8_t* d_bits_in; uint8_t* d_bits_out; @@ -56,7 +57,8 @@ namespace gr { public: async_encoder_impl(generic_encoder::sptr my_encoder, bool packed=false, - bool rev_unpack=true, bool rev_pack=true); + bool rev_unpack=true, bool rev_pack=true, + int mtu=1500); ~async_encoder_impl(); int general_work(int noutput_items, |