diff options
author | ru <ru@FreeBSD.org> | 2003-05-20 21:01:21 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-05-20 21:01:21 +0000 |
commit | 638a31a3e24744379ca4274722cebfb783cb3acd (patch) | |
tree | cc71fbdbb548ae9fb5856beadc19f74dae54e77b /usr.sbin/bluetooth/hcsecd | |
parent | a808871f563c1b6300be2d520e5420fc534e7de7 (diff) | |
download | FreeBSD-src-638a31a3e24744379ca4274722cebfb783cb3acd.zip FreeBSD-src-638a31a3e24744379ca4274722cebfb783cb3acd.tar.gz |
Reapply mdoc(7) fixes that got accidentally lost in the last
Bluetooth update, and fix a few more issues.
Submitted by: Maksim Yevmenkin <m_evmenkin@yahoo.com>, ru
Approved by: re (blanket)
Diffstat (limited to 'usr.sbin/bluetooth/hcsecd')
-rw-r--r-- | usr.sbin/bluetooth/hcsecd/hcsecd.8 | 71 |
1 files changed, 38 insertions, 33 deletions
diff --git a/usr.sbin/bluetooth/hcsecd/hcsecd.8 b/usr.sbin/bluetooth/hcsecd/hcsecd.8 index 880ee1c..71ffcb8 100644 --- a/usr.sbin/bluetooth/hcsecd/hcsecd.8 +++ b/usr.sbin/bluetooth/hcsecd/hcsecd.8 @@ -1,5 +1,3 @@ -.\" hcsecd.8 -.\" .\" Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com> .\" All rights reserved. .\" @@ -26,6 +24,7 @@ .\" .\" $Id: hcsecd.8,v 1.3 2003/04/27 19:45:32 max Exp $ .\" $FreeBSD$ +.\" .Dd November 16, 2002 .Dt HCSECD 8 .Os @@ -34,68 +33,74 @@ .Nd control link keys and PIN codes for Bluetooth devices .Sh SYNOPSIS .Nm -.Op Fl f Ar configfile -.Op Fl d -.Op Fl h +.Op Fl dh +.Fl f Ar configfile .Sh DESCRIPTION The .Nm -daemon controls link keys and PIN code for Bluetooth devices. It opens raw -HCI socket and listens for the +daemon controls link keys and PIN code for Bluetooth devices. +It opens raw HCI socket and listens for the .Dv Link_Key_Request and .Dv PIN_Code_Request -HCI events. Once appropriate HCI event has been received, the daemon will -scan configuration file for matching entry. The remove device BD_ADDR is used -as a key. If no matching entry was found then the default entry will be used. -If no default entry was found than it is assumed no link key and no PIN code -exist. For any given entry link key takes precedence over PIN code. If link key -was not specified then it means device must generate link key from PIN code. If -entry was found and has the link key (or PIN code) then -the +HCI events. +Once appropriate HCI event has been received, the daemon will +scan configuration file for matching entry. +The remove device BD_ADDR is used as a key. +If no matching entry was found, the default entry will be used. +If no default entry was found then it is assumed that no link key and no PIN code +exist. +For any given entry, link key takes precedence over PIN code. +If link key was not specified, it means device must generate link key from +PIN code. +If entry was found and has the link key (or PIN code) then the .Dv Link_Key_Request_Reply (or -.Dv PIN_Code_Request_Reply -) command will be sent back to the device. Otherwise the +.Dv PIN_Code_Request_Reply ) +command will be sent back to the device. +Otherwise, the .Dv Link_Key_Request_Negative_Reply (or -.Dv PIN_Code_Request_Negative_Reply -) command will be sent back to the device. +.Dv PIN_Code_Request_Negative_Reply ) +command will be sent back to the device. .Pp The .Nm daemon currently does not handle HCI -.Dv Link_Key_Notification -event and does not cache link keys created from the PIN codes. It means -that the link key only exists while connection is opened. After the connection -has been terminated the user will have to enter PIN code again. +.Dv Link_Key_Notification +event and does not cache link keys created from the PIN codes. +It means that the link key only exists while connection is opened. +After the connection has been terminated, the user will have to enter PIN code +again. .Pp The command line options are as follows: -.Bl -tag -width Ds -.It Fl f Ar filename -Name of configuration file. Default is -.Pa /usr/local/etc/hcsecd.conf . +.Bl -tag -width indent .It Fl d Do not detach from the controlling terminal. +.It Fl f Ar configfile +Specify name of the configuration file. +The default is +.Pa /usr/local/etc/hcsecd.conf . .It Fl h Display usage message and exit. .El .Sh BUGS -Currently there is no way to select link key or PIN code based on which local -device received the request. Everything is based on remote device BD_ADDR. -Also might implement interface for external helpers to obtain link keys and +Currently there is no way to select link key or PIN code based on which local +device received the request. +Everything is based on remote device BD_ADDR. +Also might implement interface for external helpers to obtain link keys and PIN codes. .Sh FILES -.Bl -tag -width /etc/usbd.conf -compact +.Bl -tag -width ".Pa /usr/local/etc/hcsecd.conf" -compact .It Pa /usr/local/etc/hcsecd.conf .It Pa /var/run/hcsecd.pid .El .Sh SEE ALSO .Xr netgraph 3 , .Xr netgraph 4 , -.Xr ng_hci 4 , .Xr ng_btsocket 4 , +.Xr ng_hci 4 , .Xr hccontrol 8 , -.Xr hcseriald 8 +.Xr hcseriald 8 .Sh AUTHORS .An Maksim Yevmenkin Aq m_evmenkin@yahoo.com |