bluez/monitor
Joseph Hwang d89af9acb7 monitor: fix division by zero about conn->tx_pkt_med
In a connection without outgoing traffic, conn->tx_num will remain 0.
In this case, conn->tx_pkt_med should be simply 0 without calculating
"conn->tx_bytes / conn->tx_num".

This was likely to happen, for example, when "btmon -w btsnoop.log"
was launched in the middle of a LE mouse connection, and a number of
incoming ACL Data RX were received as the mouse movements.  When
running "btmon -a btsnoop.log", it would encounter this error.

Reviewed-by: Alain Michaud <alainm@chromium.org>
Reviewed-by: Yun-Hao Chung <howardchung@chromium.org>
Reviewed-by: Shuo-Peng Liao <deanliao@chromium.org>
2022-02-23 08:57:33 -08:00
..
a2dp.c monitor: Fix the unchecked return value 2020-11-24 13:03:46 -08:00
a2dp.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
analyze.c monitor: fix division by zero about conn->tx_pkt_med 2022-02-23 08:57:33 -08:00
analyze.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
avctp.c monitor/avctp: Fix parsing of GetElementAttribute 2022-01-14 14:02:05 -08:00
avctp.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
avdtp.c monitor/avdtp: Fix decoding of reject type 2021-05-04 16:56:18 -07:00
avdtp.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
bnep.c monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
bnep.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
broadcom.c monitor: Inclusive language changes 2021-09-21 10:51:54 +02:00
broadcom.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
bt.h bthost: Fix not handling ACL fragmentation 2022-02-09 15:42:45 -08:00
btmon.rst monitor: Remove Pygments dependency from manpage 2021-05-10 11:13:02 -07:00
control.c monitor: Inclusive language changes 2021-09-21 10:51:54 +02:00
control.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
crc.c monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
crc.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
display.c monitor: Add option to force output color 2021-03-18 15:41:32 -07:00
display.h monitor: Add option to force output color 2021-03-18 15:41:32 -07:00
ellisys.c monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
ellisys.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
emulator.h emulator: Add support for vendor commands 2022-01-05 15:06:40 -08:00
hcidump.c monitor: Fix potential memory leak 2020-11-24 13:03:46 -08:00
hcidump.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
hwdb.c monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
hwdb.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
intel.c monitor: Make --analyze print address OUI 2021-08-09 15:47:18 -07:00
intel.h monitor: add new Intel extended telemetry events 2021-07-20 10:59:05 -07:00
jlink.c monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
jlink.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
keys.c monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
keys.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
l2cap.c monitor: Inclusive language changes 2021-09-21 10:51:54 +02:00
l2cap.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
ll.c monitor: Inclusive language changes 2021-09-21 10:51:54 +02:00
ll.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
lmp.c monitor: Inclusive language changes 2021-09-21 10:51:54 +02:00
lmp.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
main.c monitor: Add option to force output color 2021-03-18 15:41:32 -07:00
msft.c monitor: Make use of MSFT packet definitions 2021-10-18 13:04:21 -07:00
msft.h monitor/msft: Add feature bits definition 2021-10-21 11:32:20 -07:00
packet.c monitor: Fix misaligment errors when parsing BIG/CIG events 2022-01-31 16:37:27 -08:00
packet.h monitor: Store MSFT extension event prefix 2021-08-16 17:36:00 +02:00
rfcomm.c monitor: Fix uninitiailzed scalar variable 2021-11-15 13:07:07 -08:00
rfcomm.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
sdp.c monitor/sdp: Fixes out-of-bounds array access 2022-02-10 14:23:55 -08:00
sdp.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
tty.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
vendor.c monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00
vendor.h monitor: Add SPDX License Identifier 2020-09-21 16:19:35 -07:00