diff options
author | Maksim Yevmenkin <emax@FreeBSD.org> | 2004-08-05 16:32:41 +0000 |
---|---|---|
committer | Maksim Yevmenkin <emax@FreeBSD.org> | 2004-08-05 16:32:41 +0000 |
commit | 2aa65cf739bae6d8e2fbd167d97ef3c6f744766c (patch) | |
tree | 6ef9a102c06ce353d524074a6e33e485a88f1c21 /usr.bin | |
parent | 5cc00cfc6772779369c993013e21a10dc303dc7f (diff) | |
download | src-2aa65cf739bae6d8e2fbd167d97ef3c6f744766c.tar.gz src-2aa65cf739bae6d8e2fbd167d97ef3c6f744766c.zip |
- One can use both BD_ADDR or name to specify address of the Bluetooth device.
Update man pages to document this fact.
- Update usage messages
- Change u_intXXX to uintXXX
Notes
Notes:
svn path=/head/; revision=133178
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1 | 18 | ||||
-rw-r--r-- | usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c | 2 |
2 files changed, 13 insertions, 7 deletions
diff --git a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1 b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1 index 8d4a2589b668..019c2cdc5e9c 100644 --- a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1 +++ b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1 @@ -34,16 +34,16 @@ .Sh SYNOPSIS .Nm .Op Fl bh -.Fl a Ar BD_ADDR +.Fl a Ar address .Fl c Ar channel .Fl t Ar tty .Sh DESCRIPTION The .Nm utility is a Serial Port Profile daemon. -It opens RFCOMM connection to the specified server's -.Ar BD_ADDR -and +It opens RFCOMM connection to the specified +.Ar address +server and .Ar channel . Once connection is established, the .Nm @@ -67,8 +67,13 @@ port. .Pp The options are as follows: .Bl -tag -width indent -.It Fl a Ar BD_ADDR -This required option specifies the remote BD_ADDR of the RFCOMM server. +.It Fl a Ar address +This required option specifies the address of the remote RFCOMM server. +The address can be specified as BD_ADDR or name. +If name was specified then the +.Nm +utility will attempt to resolve the name via +.Xr bt_gethostbyname 3 . .It Fl b Detach from the controlling terminal, i.e., run in background. .It Fl c Ar channel @@ -107,6 +112,7 @@ slave pseudo terminals .Sh BUGS Please report if found. .Sh SEE ALSO +.Xr bluetooth 3 , .Xr ng_btsocket 4 , .Xr pty 4 , .Xr rfcomm_pppd 8 diff --git a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c index f525ccb36f47..8b811dab523b 100644 --- a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c +++ b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c @@ -391,7 +391,7 @@ usage(void) fprintf(stdout, "Usage: %s options\n" \ "Where options are:\n" \ -"\t-a bdaddr BDADDR to connect to (required)\n" \ +"\t-a address Address to connect to (required)\n" \ "\t-b Run in background\n" \ "\t-c channel RFCOMM channel to connect to\n" \ "\t-t tty TTY name\n" \ |