wireshark/extcap
Mikael Kanstrup bb017f3eb3 androiddump: Fix tcpdump op prec bug with used_buffer_length calc
androiddump reads data from tcpdump in chunks that not necessarily
match packet sizes. Whenever a partly read packet is found in buffers
more data is read and the number of used bytes in buffer is updated.
The calculation of used_buffer_length is wrong though leading to most
packets are read and thrown away.

Problem fixed by correcting an operator precedence mistake where
used_buffer_length would only be increaded with 0 or 1 insted of
actual number of read bytes.

Change-Id: Ib5c4e1d96e7ba499f26796ffa5d7ce6a116b9a6e
Reviewed-on: https://code.wireshark.org/review/20666
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-03-23 04:48:23 +00:00
..
.editorconfig Move extcap EditorConfig settings to source dir 2016-03-23 00:24:52 +00:00
Makefile.am udpdump: remove libwireshark dependancy. 2016-12-25 03:33:01 +00:00
androiddump.c androiddump: Fix tcpdump op prec bug with used_buffer_length calc 2017-03-23 04:48:23 +00:00
ciscodump.c Use glib-compat 2017-03-02 15:20:05 +00:00
extcap-base.c extcap: put missed parameters into the help 2016-10-19 06:44:05 +00:00
extcap-base.h Clean up some UN*X-vs-Windows socket issues. 2017-01-26 07:00:06 +00:00
randpktdump.c extcap: fix memleak via data_file_url 2017-01-07 20:32:43 +00:00
ssh-base.c extcap: make extcap use the ws_strtoi/u functions. 2016-09-16 14:21:16 +00:00
ssh-base.h extcap: make extcap use the ws_strtoi/u functions. 2016-09-16 14:21:16 +00:00
sshdump.c Use glib-compat 2017-03-02 15:20:05 +00:00
udpdump.c udpdump: fix recvfrom error on windows. 2017-03-01 19:47:09 +00:00