aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bluetooth/sdpcontrol
diff options
context:
space:
mode:
authorMaksim Yevmenkin <emax@FreeBSD.org>2004-08-05 16:32:41 +0000
committerMaksim Yevmenkin <emax@FreeBSD.org>2004-08-05 16:32:41 +0000
commit2aa65cf739bae6d8e2fbd167d97ef3c6f744766c (patch)
tree6ef9a102c06ce353d524074a6e33e485a88f1c21 /usr.sbin/bluetooth/sdpcontrol
parent5cc00cfc6772779369c993013e21a10dc303dc7f (diff)
Notes
Diffstat (limited to 'usr.sbin/bluetooth/sdpcontrol')
-rw-r--r--usr.sbin/bluetooth/sdpcontrol/sdpcontrol.816
-rw-r--r--usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c2
2 files changed, 11 insertions, 7 deletions
diff --git a/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8 b/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8
index 1478aeebbbc1..1f75eead81b2 100644
--- a/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8
+++ b/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8
@@ -35,7 +35,7 @@
.Nm
.Fl h
.Nm
-.Fl a Ar BD_ADDR
+.Fl a Ar address
.Ar command
.Op Ar parameters ...
.Nm
@@ -47,7 +47,7 @@
The
.Nm
utility attempts to query specified Service Discovery Protocol (SDP) server.
-Remote SDP servers are identified by their BD_ADDRs.
+Remote SDP servers are identified by their address.
Connection to the local SDP server is made via control socket.
The
.Nm
@@ -56,10 +56,13 @@ the standard output and error messages to the standard error.
.Pp
The options are as follows:
.Bl -tag -width indent
-.It Fl a Ar BD_ADDR
-Connect to the remote device with the specified BD_ADDR.
-Example:
-.Fl a Li 00:01:02:03:04:05 .
+.It Fl a Ar address
+Connect to the remote device with the specified address.
+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 c Ar path
Specify path to the control socket.
The default path is
@@ -109,6 +112,7 @@ Bluetooth Profile Descriptor List
.Sh DIAGNOSTICS
.Ex -std
.Sh SEE ALSO
+.Xr bluetooth 3 ,
.Xr sdp 3
.Sh AUTHORS
.An Maksim Yevmenkin Aq m_evmenkin@yahoo.com
diff --git a/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c b/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
index 6cb4863c4a75..fca2015c9c02 100644
--- a/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
+++ b/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
@@ -209,7 +209,7 @@ usage(void)
fprintf(stderr,
"Usage: sdpcontrol options command\n" \
"Where options are:\n"
-" -a bdaddr specify bdaddr\n" \
+" -a address address to connect to\n" \
" -c path path to the control socket (default is %s)\n" \
" -h display usage and quit\n" \
" -l connect to the local SDP server via control socket\n" \