summaryrefslogtreecommitdiff
path: root/tools/l2cap-tester.c
Commit message (Collapse)AuthorAgeFilesLines
* l2cap-tester: Add server tests for Ext-FlowctlLuiz Augusto von Dentz2023-03-091-24/+228
| | | | | | | | | | This adds the following tests: L2CAP Ext-Flowctl Server - Success L2CAP Ext-Flowctl Server - Nval SCID L2CAP LE EATT Client - Success L2CAP LE EATT Server - Success L2CAP LE EATT Server - Reject
* l2cap-tester: Fix leaked_handleGopal Tiwari2022-05-311-0/+1
| | | | | | | | While performing static tool analysis using coverity found following reports for resouse leak bluez-5.64/tools/l2cap-tester.c:1712: leaked_handle: Handle variable "new_sk" going out of scope leaks the handle.
* tools: Inclusive language changesArchie Pusaka2021-09-211-12/+12
| | | | | | | | | | BT core spec 5.3 promotes the usage of inclusive languages. This CL replaces some terms with the more appropriate counterparts, such as "central", "peripheral", "accept list", "reject list", and "temporary link key". Note that some suggestions come from https://specificationrefs.bluetooth.com/language-mapping/Appropriate_Language_Mapping_Table.pdf Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
* emulator: Inclusive language changesArchie Pusaka2021-09-211-8/+8
| | | | | | | | BT core spec 5.3 promotes the usage of inclusive languages. This CL replaces some terms with the more appropriate counterparts, such as "central", "peripheral", and "accept list". Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
* l2cap-tester: Fix L2CAP LE Server - SuccessLuiz Augusto von Dentz2020-11-131-2/+2
| | | | | This test was failing due to the kernel now using different values for MPS and credits.
* tools/l2cap-tester: Enable hciemu debugLuiz Augusto von Dentz2020-11-021-2/+5
| | | | This enable hciemu debug when debug is enabled.
* 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/l2cap-tester: Add test for waiting disconnection responseArchie Pusaka2020-06-041-7/+58
| | | | | | This is to test the behaviour of L2CAP channel when closed with shut_down(sock, SHUT_WR). In this case, we should wait until we receive a disconnection response before raising G_IO_HUP.
* tools/l2cap-tester: Add test for Ext-Flowctl modeLuiz Augusto von Dentz2020-03-301-40/+144
| | | | This adds tests for Ext-Flowctl which uses ECRED PDUs.
* emulator: Return raw LE scan_enable valueJohan Hedberg2015-11-161-3/+3
| | | | | | This is more future proof (in case other values besides 0x00/0x01 are introduced) and consistent with a similar BR/EDR API that will be added soon.
* tools/l2cap-tester: Fix minor coding style issue (line lengths)Johan Hedberg2015-11-161-3/+3
|
* tools/l2cap-tester: Fix NULL-dereference for tests with no dataJohan Hedberg2015-11-121-1/+1
|
* tools/l2cap-tester: Minor whitespace fixJohan Hedberg2015-11-121-1/+0
|
* tools/l2cap-tester: Add test case for direct advertisingJohan Hedberg2015-11-121-0/+51
|
* tools/l2cap-tester: Fix expected LE CoC conn rsp parametersJohan Hedberg2015-11-121-4/+4
|
* tools/l2cap-tester: Don't treat unexpected L2CAP PDUs as failuresJohan Hedberg2015-11-111-1/+1
|
* tools/l2cap-tester connect two sockets disconnect one testJakub Pawlowski2015-11-111-2/+37
| | | | | This test open two sockets to same client, then close first one and make sure second one connect successfully.
* tools/l2cap-tester: Two socket connect testJakub Pawlowski2015-11-111-0/+102
| | | | | This test tries to open two sockets to same address, to make sure both would succeed.
* tools/l2cap-tester: Disconnect during connect attempt testJakub Pawlowski2015-11-111-6/+105
| | | | | | | | | | This patch adds test that checks folowing: 1. Try to connect to existing BLE device that is not advertising. 2. Internally in kernel this adds this device to whitelist and enable scan. 3. Make the device advertise once. That would stop the scan, and trigger connect attempt to device. 4. Close socket. This should stop the connect attempt, by sending BT_HCI_CMD_LE_CREATE_CONN_CANCEL.
* tools/l2cap-tester: add close socket testJakub Pawlowski2015-11-111-14/+169
| | | | | | | | This patch adds test that checks folowing: 1. Try to connect to non-existing remote BLE device using socket. 2. Internally in kernel this adds this device to whitelist and enable scan. 3. At this moment test would try to close socket. 4. That should cause scan to be stopped.
* tools/l2cap-tester: Add invalid LE SCID test caseJohan Hedberg2015-11-021-0/+35
|
* emulator/bthost: Add support for setting custom ADV dataSzymon Janc2015-05-171-1/+1
| | | | This allows to set any ADV data and not just flags.
* tools/l2cap-tester: Add L2CAP LE Connection Reject testLukasz Rymanowski2015-02-121-2/+43
| | | | | This test checks if kernel correctly rejects LE connection when host is not configured to support LE.
* build: Move hciemu.c and hciemu.h into emulator directoryMarcel Holtmann2014-09-251-1/+1
|
* tools: Fix dereference before NULL checkAndrei Emeltchenko2014-09-161-1/+1
|
* tools/l2cap-tester: Specify explicit IO capability when necessaryJohan Hedberg2014-09-131-0/+5
|
* mgmt: Rename pairable to bondableJohan Hedberg2014-07-301-1/+1
|
* emulator: Add flags param to advertise enabling functionJakub Tyszkowski2014-07-181-1/+1
| | | | | | | This allows to pass additional parameter describing wheter to set flags parameter in advertising data. This is needed to make device discoverable.
* tools/l2cap-tester: Fix setting connectable for LE server testsJohan Hedberg2014-03-171-6/+6
|
* tools/l2cap-tester: Add getpeername test case when not connectedJohan Hedberg2014-01-291-0/+36
|
* tools/l2cap-tester: Add MTU checks after successful connectionsJohan Hedberg2014-01-261-3/+58
|
* tools/l2cap-tester: Fix error message for setsockopt failureJohan Hedberg2014-01-261-1/+1
|
* tools/l2cap-tester: Test setsockopt(BT_SECURITY) on LE clientAnderson Lizardo2014-01-261-0/+1
| | | | | | | Although setting a security level using setsockopt(BT_SECURITY) is optional for LE sockets (it will default to doing unencrypted/unauthenticated connection), it is a common operation and it is done by BlueZ daemon and some tools.
* tools/l2cap-tester: Add basic ATT Server test caseJohan Hedberg2014-01-231-1/+8
|
* tools/l2cap-tester: Add basic ATT Client test caseJohan Hedberg2014-01-231-5/+19
|
* tools/l2cap-tester: Fix checking for NULL test dataJohan Hedberg2014-01-231-1/+1
|
* tools/l2cap-tester: Fix indentationJohan Hedberg2014-01-221-1/+1
|
* tools/l2cap-tester: Implement basic command reject test for LEJohan Hedberg2014-01-211-0/+12
|
* tools/l2cap-tester: Add support for custom responses for client testsJohan Hedberg2014-01-211-2/+52
|
* tools/l2cap-tester: Rename expect_req* to expect_cmd to allow reuse for clientJohan Hedberg2014-01-211-29/+29
|
* tools/l2cap-tester: Rename send_req* to send_cmd to allow reuse for clientJohan Hedberg2014-01-211-34/+34
|
* tools/l2cap-tester: Add basic SMP test caseJohan Hedberg2014-01-201-2/+11
|
* tools/l2cap-tester: Fix client PIN Code test case to actually workJohan Hedberg2014-01-201-3/+9
|
* client/l2cap-tester: Add basic PIN supportJohan Hedberg2014-01-201-0/+39
|
* tools/l2cap-tester: Merge client/server setup routinesJohan Hedberg2014-01-201-28/+18
|
* tools/l2cap-tester: Remove unneeded server/client quirk for user confirmationJohan Hedberg2014-01-201-4/+4
|
* tools/l2cap-tester: Merge server/client test structs into oneJohan Hedberg2014-01-201-45/+38
|
* tools/l2cap-tester: Add client test case using PIN CodeJohan Hedberg2014-01-201-0/+9
|
* tools/l2cap-tester: Add BR/EDR client high security test caseJohan Hedberg2014-01-201-3/+13
|
* tools/l2cap-tester: Add user confirmation callback supportJohan Hedberg2014-01-201-0/+40
|