summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth/hccontrol/hccontrol.c
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2003-10-12 22:04:24 +0000
committeremax <emax@FreeBSD.org>2003-10-12 22:04:24 +0000
commit41bb0e8fd2568243020852e22a6d176bccfa60cd (patch)
tree0ae0c2be63f9f9161693789721b96beb9cabcc77 /usr.sbin/bluetooth/hccontrol/hccontrol.c
parent66feac7937e372f502539e7d443aee80a25abe16 (diff)
downloadFreeBSD-src-41bb0e8fd2568243020852e22a6d176bccfa60cd.zip
FreeBSD-src-41bb0e8fd2568243020852e22a6d176bccfa60cd.tar.gz
Update Bluetooth code.
Reviewed by: M. Warner Losh <imp@bsdimp.com>; John Hay <jhay@freebsd.org> Approved by: M. Warner Losh <imp@bsdimp.com> (mentor)
Diffstat (limited to 'usr.sbin/bluetooth/hccontrol/hccontrol.c')
-rw-r--r--usr.sbin/bluetooth/hccontrol/hccontrol.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/bluetooth/hccontrol/hccontrol.c b/usr.sbin/bluetooth/hccontrol/hccontrol.c
index fafbf7b..0bf5583 100644
--- a/usr.sbin/bluetooth/hccontrol/hccontrol.c
+++ b/usr.sbin/bluetooth/hccontrol/hccontrol.c
@@ -25,20 +25,15 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: hccontrol.c,v 1.2 2003/04/27 19:45:24 max Exp $
+ * $Id: hccontrol.c,v 1.5 2003/09/05 00:38:24 max Exp $
* $FreeBSD$
*/
-#include <sys/types.h>
-#include <sys/socket.h>
+#include <bluetooth.h>
#include <sys/sysctl.h>
#include <assert.h>
-#include <bitstring.h>
#include <err.h>
#include <errno.h>
-#include <ng_hci.h>
-#include <ng_l2cap.h>
-#include <ng_btsocket.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -54,6 +49,7 @@ static void usage (void);
/* Globals */
int verbose = 0;
int timeout;
+int numeric_bdaddr = 0;
/* Main */
int
@@ -63,12 +59,16 @@ main(int argc, char *argv[])
int n;
/* Process command line arguments */
- while ((n = getopt(argc, argv, "n:vh")) != -1) {
+ while ((n = getopt(argc, argv, "n:Nvh")) != -1) {
switch (n) {
case 'n':
node = optarg;
break;
+ case 'N':
+ numeric_bdaddr = 1;
+ break;
+
case 'v':
verbose = 1;
break;
@@ -254,7 +254,7 @@ find_hci_command(char const *command, struct hci_command *category)
return (NULL);
} /* find_hci_command */
-/* Try to find command in specified category */
+/* Print commands in specified category */
static void
print_hci_command(struct hci_command *category)
{
OpenPOWER on IntegriCloud