Deleted Added
full compact
ng_btsocket.4 (231564) ng_btsocket.4 (242997)
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 unchanged lines hidden (view full) ---

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: ng_btsocket.4,v 1.7 2003/05/21 19:37:35 max Exp $
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 unchanged lines hidden (view full) ---

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: ng_btsocket.4,v 1.7 2003/05/21 19:37:35 max Exp $
26.\" $FreeBSD: head/share/man/man4/ng_btsocket.4 231564 2012-02-12 18:29:56Z ed $
26.\" $FreeBSD: head/share/man/man4/ng_btsocket.4 242997 2012-11-13 20:41:36Z joel $
27.\"
27.\"
28.Dd July 8, 2002
28.Dd November 13, 2012
29.Dt NG_BTSOCKET 4
30.Os
31.Sh NAME
32.Nm ng_btsocket
33.Nd Bluetooth sockets layer
34.Sh SYNOPSIS
35.In sys/types.h
36.In sys/socket.h

--- 23 unchanged lines hidden (view full) ---

60Raw HCI sockets can also be used to control HCI nodes.
61.Pp
62The Bluetooth raw HCI socket address is defined as follows:
63.Bd -literal -offset indent
64/* Bluetooth version of struct sockaddr for raw HCI sockets */
65struct sockaddr_hci {
66 u_char hci_len; /* total length */
67 u_char hci_family; /* address family */
29.Dt NG_BTSOCKET 4
30.Os
31.Sh NAME
32.Nm ng_btsocket
33.Nd Bluetooth sockets layer
34.Sh SYNOPSIS
35.In sys/types.h
36.In sys/socket.h

--- 23 unchanged lines hidden (view full) ---

60Raw HCI sockets can also be used to control HCI nodes.
61.Pp
62The Bluetooth raw HCI socket address is defined as follows:
63.Bd -literal -offset indent
64/* Bluetooth version of struct sockaddr for raw HCI sockets */
65struct sockaddr_hci {
66 u_char hci_len; /* total length */
67 u_char hci_family; /* address family */
68 char hci_node[16]; /* HCI node name */
68 char hci_node[32]; /* address (size == NG_NODESIZ ) */
69};
70.Ed
71.Pp
72Raw HCI sockets support a number of
73.Xr ioctl 2
74requests such as:
69};
70.Ed
71.Pp
72Raw HCI sockets support a number of
73.Xr ioctl 2
74requests such as:
75.Bl -tag -width indent
75.Bl -tag -width foo
76.It Dv SIOC_HCI_RAW_NODE_GET_STATE
77Returns current state for the HCI node.
78.It Dv SIOC_HCI_RAW_NODE_INIT
79Turn on
80.Dq inited
81bit for the HCI node.
82.It Dv SIOC_HCI_RAW_NODE_GET_DEBUG
83Returns current debug level for the HCI node.

--- 85 unchanged lines hidden (view full) ---

169.Dv ECHO_REQUEST
170and
171.Dv GET_INFO
172request.
173.Pp
174Raw L2CAP sockets support number of
175.Xr ioctl 2
176requests such as:
76.It Dv SIOC_HCI_RAW_NODE_GET_STATE
77Returns current state for the HCI node.
78.It Dv SIOC_HCI_RAW_NODE_INIT
79Turn on
80.Dq inited
81bit for the HCI node.
82.It Dv SIOC_HCI_RAW_NODE_GET_DEBUG
83Returns current debug level for the HCI node.

--- 85 unchanged lines hidden (view full) ---

169.Dv ECHO_REQUEST
170and
171.Dv GET_INFO
172request.
173.Pp
174Raw L2CAP sockets support number of
175.Xr ioctl 2
176requests such as:
177.Bl -tag -width indent
177.Bl -tag -width foo
178.It Dv SIOC_L2CAP_NODE_GET_FLAGS
179Returns current state for the L2CAP node.
180.It Dv SIOC_L2CAP_NODE_GET_DEBUG
181Returns current debug level for the L2CAP node.
182.It Dv SIOC_L2CAP_NODE_SET_DEBUG
183Sets current debug level for the L2CAP node.
184.It Dv SIOC_L2CAP_NODE_GET_CON_LIST
185Returns list of active baseband connections (i.e., ACL links) for the L2CAP

--- 52 unchanged lines hidden (view full) ---

238being transmitted and received, and PSM (Protocol/Service Multiplexor).
239.Pp
240L2CAP sockets support number of options defined at
241.Dv SOL_L2CAP
242level which can be set with
243.Xr setsockopt 2
244and tested with
245.Xr getsockopt 2 :
178.It Dv SIOC_L2CAP_NODE_GET_FLAGS
179Returns current state for the L2CAP node.
180.It Dv SIOC_L2CAP_NODE_GET_DEBUG
181Returns current debug level for the L2CAP node.
182.It Dv SIOC_L2CAP_NODE_SET_DEBUG
183Sets current debug level for the L2CAP node.
184.It Dv SIOC_L2CAP_NODE_GET_CON_LIST
185Returns list of active baseband connections (i.e., ACL links) for the L2CAP

--- 52 unchanged lines hidden (view full) ---

238being transmitted and received, and PSM (Protocol/Service Multiplexor).
239.Pp
240L2CAP sockets support number of options defined at
241.Dv SOL_L2CAP
242level which can be set with
243.Xr setsockopt 2
244and tested with
245.Xr getsockopt 2 :
246.Bl -tag -width indent
246.Bl -tag -width foo
247.It Dv SO_L2CAP_IMTU
248Get (set) maximum payload size the local socket is capable of accepting.
249.It Dv SO_L2CAP_OMTU
250Get maximum payload size the remote socket is capable of accepting.
251.It Dv SO_L2CAP_IFLOW
252Get incoming flow specification for the socket.
253.Bf -emphasis
254Not implemented.

--- 52 unchanged lines hidden (view full) ---

307Bluetooth device through which packets are being transmitted and received,
308and RFCOMM channel.
309.Pp
310The following options, which can be tested with
311.Xr getsockopt 2
312call, are defined at
313.Dv SOL_RFCOMM
314level for RFCOMM sockets:
247.It Dv SO_L2CAP_IMTU
248Get (set) maximum payload size the local socket is capable of accepting.
249.It Dv SO_L2CAP_OMTU
250Get maximum payload size the remote socket is capable of accepting.
251.It Dv SO_L2CAP_IFLOW
252Get incoming flow specification for the socket.
253.Bf -emphasis
254Not implemented.

--- 52 unchanged lines hidden (view full) ---

307Bluetooth device through which packets are being transmitted and received,
308and RFCOMM channel.
309.Pp
310The following options, which can be tested with
311.Xr getsockopt 2
312call, are defined at
313.Dv SOL_RFCOMM
314level for RFCOMM sockets:
315.Bl -tag -width indent
315.Bl -tag -width foo
316.It Dv SO_RFCOMM_MTU
317Returns the maximum transfer unit size (in bytes) for the underlying RFCOMM
318channel.
319Note that application still can write/read bigger chunks to/from the socket.
320.It Dv SO_RFCOMM_FC_INFO
321Return the flow control information for the underlying RFCOMM channel.
322.El
323.Pp

--- 31 unchanged lines hidden ---
316.It Dv SO_RFCOMM_MTU
317Returns the maximum transfer unit size (in bytes) for the underlying RFCOMM
318channel.
319Note that application still can write/read bigger chunks to/from the socket.
320.It Dv SO_RFCOMM_FC_INFO
321Return the flow control information for the underlying RFCOMM channel.
322.El
323.Pp

--- 31 unchanged lines hidden ---