f5db72e7b7
the Linux (BlueZ) API. - L2CAP or RFCOMM connections can require the baseband radio link mode be any of: authenticated (devices are paired) encrypted (implies authentication) secured (encryption, plus generate new link key) - for sockets, the mode is set using setsockopt(2) and the socket connection will be aborted if the mode change fails. - mode settings will be applied during connection establishment, and for safety, we enter a wait state and will only proceed when the mode settings are successfuly set. - It is possible to change the mode on already open connections, but not possible to guarantee that data already queued (from either end) will not be delivered. (this is a feature, not a bug) - bthidev(4) and rfcomm_sppd(1) support "auth", "encrypt" and "secure" options - btdevctl(8) by default enables "auth" for HIDs, and "encrypt" for keyboards (which are required to support it) |
||
---|---|---|
.. | ||
bluetooth.h | ||
bt_proto.c | ||
bt_sysctl.c | ||
files.netbt | ||
hci_event.c | ||
hci_ioctl.c | ||
hci_link.c | ||
hci_misc.c | ||
hci_socket.c | ||
hci_unit.c | ||
hci.h | ||
l2cap_lower.c | ||
l2cap_misc.c | ||
l2cap_signal.c | ||
l2cap_socket.c | ||
l2cap_upper.c | ||
l2cap.h | ||
Makefile | ||
rfcomm_dlc.c | ||
rfcomm_session.c | ||
rfcomm_socket.c | ||
rfcomm_upper.c | ||
rfcomm.h | ||
sco_socket.c | ||
sco_upper.c | ||
sco.h |