summaryrefslogtreecommitdiff
path: root/tools/btproxy.c
Commit message (Collapse)AuthorAgeFilesLines
* btproxy: Allow to select multiple BT controllersFrédéric Danis2022-06-131-16/+25
| | | | | | | | | | | | | When running on a computer with a real Bluetooth controller (e.g. hci0) and multiple emulators (e.g. hci1 and hci2) it isn't possible to use the emulators with 2 test-runner vms. If btproxy is started without index parameter the first test-runner will use hci0, and btprox can't be started with multiple index parameters (e.g. -i1 -i2). This patch keeps the old beahvior when used without -i option, in this case it will try to use the first controller available. It also allows to select multiple controllers to be used by btproxy.
* btproxy: Attempt to bind the next indexLuiz Augusto von Dentz2022-02-251-4/+17
| | | | | If no specific index is given attempt to bind the next index if the current one is already in use.
* tools: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-291-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- GPL-2.0-or-later : 97 LGPL-2.1-or-later : 38 GPL-2.0-only : 2 License: GPL-2.0-or-later tools/l2cap-tester.c tools/hcisecfilter.c tools/ciptool.c tools/btsnoop.c tools/check-selftest.c tools/btpclientctl.c tools/hci-tester.c tools/hcitool.c tools/btiotest.c tools/oobtest.c tools/btinfo.c tools/hwdb.c tools/hciattach_bcm43xx.c tools/mgmt-tester.c tools/hex2hcd.c tools/hciattach_st.c tools/smp-tester.c tools/bluetooth-player.c tools/hciattach_tialt.c tools/gap-tester.c tools/bluemoon.c tools/bneptest.c tools/gatt-service.c tools/rctest.c tools/rfcomm-tester.c tools/hcieventmask.c tools/hciattach_ti.c tools/seq2bseq.c tools/scotest.c tools/bcmfw.c tools/hciconfig.c tools/btattach.c tools/l2ping.c tools/obexctl.c tools/l2test.c tools/hciattach_intel.c tools/hciattach.h tools/create-image.c tools/bnep-tester.c tools/userchan-tester.c tools/rfcomm.c tools/btmon-logger.c tools/hcidump.c tools/rtlfw.c tools/hciattach_qualcomm.c tools/btproxy.c tools/nokfw.c tools/hciattach_ath3k.c tools/3dsp.c tools/bdaddr.c tools/sco-tester.c tools/hciattach.c tools/amptest.c tools/btgatt-server.c tools/btgatt-client.c tools/cltest.c tools/ibeacon.c tools/mcaptest.c tools/hid2hci.c tools/btmgmt.c tools/advtest.c tools/eddystone.c tools/avtest.c tools/mpris-proxy.c tools/avinfo.c tools/sdptool.c tools/btconfig.c tools/update_compids.sh tools/parser/parser.h tools/parser/obex.c tools/parser/amp.c tools/parser/sdp.c tools/parser/tcpip.c tools/parser/sap.c tools/parser/cmtp.c tools/parser/avctp.c tools/parser/lmp.c tools/parser/ppp.c tools/parser/rfcomm.h tools/parser/hci.c tools/parser/sdp.h tools/parser/parser.c tools/parser/rfcomm.c tools/parser/avdtp.c tools/parser/avrcp.c tools/parser/ericsson.c tools/parser/hcrp.c tools/parser/bpa.c tools/parser/hidp.c tools/parser/bnep.c tools/parser/capi.c tools/parser/att.c tools/parser/l2cap.c tools/parser/smp.c tools/parser/csr.c tools/parser/l2cap.h tools/parse_companies.pl License: LGPL-2.1-or-later tools/test-runner.c tools/btpclient.c tools/meshctl.c tools/mesh-cfgclient.c tools/mesh/model.h tools/mesh/util.h tools/mesh/config-model.h tools/mesh/cfgcli.h tools/mesh/mesh-db.c tools/mesh/mesh-db.h tools/mesh/keys.c tools/mesh/util.c tools/mesh/agent.h tools/mesh/remote.c tools/mesh/keys.h tools/mesh/agent.c tools/mesh/cfgcli.c tools/mesh/remote.h tools/mesh-gatt/prov.c tools/mesh-gatt/util.h tools/mesh-gatt/prov.h tools/mesh-gatt/net.c tools/mesh-gatt/util.c tools/mesh-gatt/prov-db.h tools/mesh-gatt/crypto.c tools/mesh-gatt/crypto.h tools/mesh-gatt/gatt.c tools/mesh-gatt/config-server.c tools/mesh-gatt/keys.h tools/mesh-gatt/onoff-model.c tools/mesh-gatt/net.h tools/mesh-gatt/gatt.h tools/mesh-gatt/node.c tools/mesh-gatt/config-client.c tools/mesh-gatt/mesh-net.h tools/mesh-gatt/node.h tools/mesh-gatt/onoff-model.h tools/mesh-gatt/prov-db.c License: GPL-2.0-only tools/obex-server-tool.c tools/obex-client-tool.c
* tools/btproxy: Add support for ISO packetsLuiz Augusto von Dentz2020-02-031-2/+18
| | | | This enables proxing ISO packets.
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-0/+1
|
* shared/mainloop: Remove mainloop_set_signalLuiz Augusto von Dentz2018-12-051-8/+1
| | | | | This removes mainloop_set_signal and replaces it usage with mainloop_run_with_signal.
* tools: Fix compiler warning from wrong array sizeMarcel Holtmann2018-05-231-1/+1
|
* tools/btproxy: Fix buffer overflow with unix socketERAMOTO Masaya2017-10-051-3/+17
| | | | | | | | | | | | btproyx with a unix socket has the similar problem as btmon as below. So this patch fixes btproxy by the similar way as btmon. *** strcpy_chk: buffer overflow detected ***: program terminated at 0x4C3085C: ??? (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x4C34E46: __strcpy_chk (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x401B74: strcpy (string3.h:110) by 0x401B74: open_unix (btproxy.c:625) by 0x401B74: main (btproxy.c:901)
* btproxy: Add option to ignore initial zero byteJohan Hedberg2017-01-051-1/+17
| | | | | This helps deal with a broken host that might send an initial zero byte before any valid data.
* lib: Define HCI_PRIMARY and use it instead of HCI_BREDRMarcel Holtmann2016-07-041-2/+2
|
* tools: Add support for ECC emulation to proxy utilityMarcel Holtmann2015-06-031-27/+209
|
* tools/btproxy: Return proper type in setup_proxySzymon Janc2015-04-281-1/+1
| | | | This function retuns bool.
* tools/btproxy: Add missing -a switch documentationJohan Hedberg2015-02-181-0/+2
|
* tools/btproxy: Add support for creating AMP controllersJohan Hedberg2015-02-161-2/+9
|
* shared: Move mainloop implementation from monitor to sharedJohan Hedberg2015-02-121-1/+1
|
* btproxy: Fix resource leakAndrei Emeltchenko2014-01-231-1/+4
| | | | Close file descriptors before leaving.
* tools: Close file descriptors in the calling functionMarcel Holtmann2014-01-221-5/+5
|
* btproxy: Fix resource leakAndrei Emeltchenko2014-01-221-1/+4
| | | | Close file descriptors if setup_proxy fails.
* tools: Remove --smd option from proxy utilityMarcel Holtmann2014-01-161-220/+240
|
* tools/btproxy: Fix double closeAndrei Emeltchenko2014-01-131-4/+1
| | | | setup_streams() already makes close()
* tools: Make use of generic endian conversion macrosMarcel Holtmann2014-01-101-3/+0
|
* btproxy: Fix closing invalid file descriptorAndrei Emeltchenko2014-01-031-1/+1
| | | | Instead of invalid file descriptor dst_fd close src_fd.
* tools: Fix issue with too short packet length variableMarcel Holtmann2014-01-011-1/+2
|
* tools: Add support for proxying Qualcomm SMD based channelsMarcel Holtmann2013-12-311-120/+272
|
* tools: Add support for connecting to proxying serversMarcel Holtmann2013-12-301-31/+137
|
* monitor: Allow HCI controller proxying over TCPMarcel Holtmann2013-12-301-13/+60
|
* tools: Add utility for proxying/forwarding HCI controllersMarcel Holtmann2013-12-301-0/+387