OSDN Git Service

Disable opening network debug ports for security reasons
authorPavlin Radoslavov <pavlin@google.com>
Thu, 24 Sep 2015 20:34:35 +0000 (13:34 -0700)
committerScott James Remnant <keybuk@google.com>
Mon, 19 Oct 2015 17:36:23 +0000 (10:36 -0700)
commit89ba148d2e19e6633318dd2d9a04bd2728281c30
tree8b296d84368e76d6589d92d8e630e3650b7175f5
parent2181f1a4a428926da214b94327c3bcef9d283522
Disable opening network debug ports for security reasons

By default, we open up to three TCP ports that are used
for debugging purpose:

 * TCP port 8872 - used for forwarding btsnoop logs at real time
   Note: the port is open only if "Bluetooth HCI snoop log" is enabled
   in the Developer options
 * TCP port 8873 - used for HCI debugging
 * TCP port 8879 - used for debugging the Bluetooth counters

Those ports are disabled by default.
To enable, the following #define should be added at the top of the
corresponding file(s): btcore/src/counter.c hci/src/btsnoop_net.c
hci/src/hci_inject.c

   #define BT_NET_DEBUG TRUE

Bug: 24371736

Change-Id: I5cb43af1a5d29c331eb5ef61a24dccbe95df6f40
btcore/src/counter.c
hci/src/btsnoop_net.c
hci/src/hci_inject.c