xref: /freebsd/usr.bin/bluetooth/btsockstat/btsockstat.1 (revision b2c76c41be32f904179efed29c0ca04d53f3996c)
1878ed226SJulian Elischer.\" Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
2878ed226SJulian Elischer.\" All rights reserved.
3878ed226SJulian Elischer.\"
4878ed226SJulian Elischer.\" Redistribution and use in source and binary forms, with or without
5878ed226SJulian Elischer.\" modification, are permitted provided that the following conditions
6878ed226SJulian Elischer.\" are met:
7878ed226SJulian Elischer.\" 1. Redistributions of source code must retain the above copyright
8878ed226SJulian Elischer.\"    notice, this list of conditions and the following disclaimer.
9878ed226SJulian Elischer.\" 2. Redistributions in binary form must reproduce the above copyright
10878ed226SJulian Elischer.\"    notice, this list of conditions and the following disclaimer in the
11878ed226SJulian Elischer.\"    documentation and/or other materials provided with the distribution.
12878ed226SJulian Elischer.\"
13878ed226SJulian Elischer.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14878ed226SJulian Elischer.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15878ed226SJulian Elischer.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16878ed226SJulian Elischer.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17878ed226SJulian Elischer.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18878ed226SJulian Elischer.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19878ed226SJulian Elischer.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20878ed226SJulian Elischer.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21878ed226SJulian Elischer.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22878ed226SJulian Elischer.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23878ed226SJulian Elischer.\" SUCH DAMAGE.
24878ed226SJulian Elischer.\"
250986ab12SMaksim Yevmenkin.\" $Id: btsockstat.1,v 1.6 2003/05/21 00:09:45 max Exp $
2672f00208SRuslan Ermilov.\"
276f9c5e40SRuslan Ermilov.Dd October 12, 2003
28878ed226SJulian Elischer.Dt BTSOCKSTAT 1
29878ed226SJulian Elischer.Os
30878ed226SJulian Elischer.Sh NAME
31878ed226SJulian Elischer.Nm btsockstat
32878ed226SJulian Elischer.Nd show Bluetooth sockets information
33878ed226SJulian Elischer.Sh SYNOPSIS
34878ed226SJulian Elischer.Nm
350986ab12SMaksim Yevmenkin.Op Fl nrh
36878ed226SJulian Elischer.Op Fl M Ar core
3772f00208SRuslan Ermilov.Op Fl p Ar protocol
38878ed226SJulian Elischer.Sh DESCRIPTION
39878ed226SJulian ElischerThe
40878ed226SJulian Elischer.Nm
4172f00208SRuslan Ermilovutility symbolically displays the contents of various Bluetooth sockets
4272f00208SRuslan Ermilovrelated data structures.
4372f00208SRuslan ErmilovThere are few output formats, depending on the
44878ed226SJulian Elischeroptions for the information presented.
4572f00208SRuslan ErmilovThe
46878ed226SJulian Elischer.Nm
4772f00208SRuslan Ermilovutility
48878ed226SJulian Elischerwill print results to the standard output and error messages to the
49878ed226SJulian Elischerstandard error.
50878ed226SJulian Elischer.Pp
51878ed226SJulian ElischerThe options are as follows:
52878ed226SJulian Elischer.Bl -tag -width indent
5372f00208SRuslan Ermilov.It Fl h
5472f00208SRuslan ErmilovDisplay usage message and exit.
5572f00208SRuslan Ermilov.It Fl M Ar core
5672f00208SRuslan ErmilovExtract values associated with the name list from the specified core
5772f00208SRuslan Ermilovinstead of the default
5872f00208SRuslan Ermilov.Pa /dev/kmem .
590986ab12SMaksim Yevmenkin.It Fl n
606f9c5e40SRuslan ErmilovShow Bluetooth addresses as numbers.
616f9c5e40SRuslan ErmilovNormally,
620986ab12SMaksim Yevmenkin.Nm
630986ab12SMaksim Yevmenkinattempts to resolve Bluetooth addresses, and display them symbolically.
64878ed226SJulian Elischer.It Fl p Ar protocol
65878ed226SJulian ElischerDisplay a list of active sockets (protocol control blocks) for each
6672f00208SRuslan Ermilovspecified protocol.
6772f00208SRuslan ErmilovSupported protocols are:
68f2bb1caeSJulian Elischer.Cm hci_raw , l2cap_raw , l2cap, rfcomm
69878ed226SJulian Elischerand
70f2bb1caeSJulian Elischer.Cm rfcomm_s .
71878ed226SJulian Elischer.It Fl r
72878ed226SJulian ElischerDisplay a list of active routing entries (if any) for specified protocol.
73878ed226SJulian Elischer.El
74a866e170SRuslan Ermilov.Sh EXIT STATUS
75878ed226SJulian Elischer.Ex -std
76878ed226SJulian Elischer.Sh SEE ALSO
77878ed226SJulian Elischer.Xr ng_btsocket 4
78878ed226SJulian Elischer.Sh AUTHORS
79*2b7af31cSBaptiste Daroussin.An Maksim Yevmenkin Aq Mt m_evmenkin@yahoo.com
806c7216dfSRuslan Ermilov.Sh BUGS
816c7216dfSRuslan ErmilovMost likely.
826c7216dfSRuslan ErmilovPlease report if found.
83