Use correct SNAP type for WireShark sniffer.
git-svn-id: http://op25.osmocom.org/svn/trunk@182 65a5c917-d112-43f1-993d-58c26a4786be
This commit is contained in:
parent
428cc9b99f
commit
0767c65c80
|
@ -52,9 +52,8 @@ void
|
|||
op25_decoder_ff::forecast(int nof_output_items, gr_vector_int &nof_input_items_reqd)
|
||||
{
|
||||
/* This block consumes 4800 symbols/s and produces 8000
|
||||
* samples/s. That's a sampling rate of 3/5 or 0.6. If no output is
|
||||
* available we'll produce silence so it should be ok to stick with
|
||||
* this.
|
||||
* samples/s. That's a work rate of 3/5 or 0.6. If no audio output
|
||||
* is available we'll produce silence.
|
||||
*/
|
||||
const size_t nof_inputs = nof_input_items_reqd.size();
|
||||
const int nof_samples_reqd = .6 * nof_output_items;
|
||||
|
|
|
@ -95,7 +95,7 @@ sniffer_du_handler::handle(data_unit_sptr du)
|
|||
uint8_t tap[tap_sz];
|
||||
memset(&tap[0], 0x00, 6);
|
||||
memset(&tap[6], 0x00, 6);
|
||||
memset(&tap[12], 0x00, 2);
|
||||
memset(&tap[12], 0xff, 2);
|
||||
du->decode_frame(du_sz, &tap[tap_hdr_sz]);
|
||||
write(d_tap, tap, tap_sz);
|
||||
}
|
||||
|
|
Reference in New Issue