1.\" Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $Id: l2control.8,v 1.5 2003/05/21 00:53:00 max Exp $
26.\"
27.Dd April 9, 2011
28.Dt L2CONTROL 8
29.Os
30.Sh NAME
31.Nm l2control
32.Nd L2CAP configuration utility
33.Sh SYNOPSIS
34.Nm
35.Op Fl hn
36.Fl a Ar local
37.Ar command
38.Op Ar parameters ...
39.Sh DESCRIPTION
40The
41.Nm
42utility connects to the local device with the specified BD_ADDR or name
43and attempts to send the specified command.
44The
45.Nm
46utility will print results to the standard output and error messages to
47the standard error output.
48.Pp
49The options are as follows:
50.Bl -tag -width indent
51.It Fl a Ar local
52Connect to the local device with the specified BD_ADDR or name.
53Example:
54.Fl a Li 00:01:02:03:04:05
55or
56.Fl a Li bt_device .
57.It Fl h
58Display usage message and exit.
59.It Fl n
60Show Bluetooth addresses as numbers.
61Normally
62.Nm
63attempts to resolve Bluetooth addresses, and display them symbolically.
64.It Ar command
65One of the supported commands (see below).
66The special command
67.Cm help
68can be used to obtain a list of all supported commands.
69To get more information about a specific command use
70.Cm help Ar command .
71.It Ar parameters
72One or more optional space separated command parameters.
73.El
74.Sh COMMANDS
75The currently supported node commands in
76.Nm
77are:
78.Pp
79.Bl -tag -width "Write_Auto_Disconnect_Timeout" -offset indent -compact
80.It Cm Read_Node_Flags
81.It Cm Read_Debug_Level
82.It Cm Write_Debug_Level
83.It Cm Read_Connection_List
84.It Cm Read_Channel_List
85.It Cm Read_Auto_Disconnect_Timeout
86.It Cm Write_Auto_Disconnect_Timeout
87.El
88.Sh EXIT STATUS
89.Ex -std
90.Sh SEE ALSO
91.Xr netgraph 3 ,
92.Xr netgraph 4 ,
93.Xr ng_l2cap 4 ,
94.Xr l2ping 8
95.Sh AUTHORS
96.An Maksim Yevmenkin Aq Mt emax@FreeBSD.org
97