diff options
author | emax <emax@FreeBSD.org> | 2004-08-05 16:32:41 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2004-08-05 16:32:41 +0000 |
commit | c114a6212c8d37d1e410305436dd847a4270ca3b (patch) | |
tree | 6ef9a102c06ce353d524074a6e33e485a88f1c21 /usr.bin/bluetooth | |
parent | 73d1afd6fde41cc69bc50752883e40b6fd763b5c (diff) | |
download | FreeBSD-src-c114a6212c8d37d1e410305436dd847a4270ca3b.zip FreeBSD-src-c114a6212c8d37d1e410305436dd847a4270ca3b.tar.gz |
- 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
Diffstat (limited to 'usr.bin/bluetooth')
-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 8d4a258..019c2cd 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 f525ccb..8b811da 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" \ |