Deleted Added
full compact
ng_btsocket.4 (211397) ng_btsocket.4 (231564)
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 211397 2010-08-16 15:18:30Z joel $
26.\" $FreeBSD: head/share/man/man4/ng_btsocket.4 231564 2012-02-12 18:29:56Z ed $
27.\"
28.Dd July 8, 2002
29.Dt NG_BTSOCKET 4
30.Os
31.Sh NAME
32.Nm ng_btsocket
33.Nd Bluetooth sockets layer
34.Sh SYNOPSIS

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

149raw HCI socket's filter.
150.Sh Dv BLUETOOTH_PROTO_L2CAP Sh protocol
151The Bluetooth L2CAP socket address is defined as follows:
152.Bd -literal -offset indent
153/* Bluetooth version of struct sockaddr for L2CAP sockets */
154struct sockaddr_l2cap {
155 u_char l2cap_len; /* total length */
156 u_char l2cap_family; /* address family */
27.\"
28.Dd July 8, 2002
29.Dt NG_BTSOCKET 4
30.Os
31.Sh NAME
32.Nm ng_btsocket
33.Nd Bluetooth sockets layer
34.Sh SYNOPSIS

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

149raw HCI socket's filter.
150.Sh Dv BLUETOOTH_PROTO_L2CAP Sh protocol
151The Bluetooth L2CAP socket address is defined as follows:
152.Bd -literal -offset indent
153/* Bluetooth version of struct sockaddr for L2CAP sockets */
154struct sockaddr_l2cap {
155 u_char l2cap_len; /* total length */
156 u_char l2cap_family; /* address family */
157 u_int16_t l2cap_psm; /* Protocol/Service Multiplexor */
157 uint16_t l2cap_psm; /* Protocol/Service Multiplexor */
158 bdaddr_t l2cap_bdaddr; /* address */
159};
160.Ed
161.Ss Dv SOCK_RAW Ss L2CAP sockets
162Implemented by
163.Nm btsock_l2c_raw
164Netgraph type.
165Raw L2CAP sockets do not provide access to raw L2CAP datagrams.

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

267.Sh Dv BLUETOOTH_PROTO_RFCOMM Sh protocol
268The Bluetooth RFCOMM socket address is defined as follows:
269.Bd -literal -offset indent
270/* Bluetooth version of struct sockaddr for RFCOMM sockets */
271struct sockaddr_rfcomm {
272 u_char rfcomm_len; /* total length */
273 u_char rfcomm_family; /* address family */
274 bdaddr_t rfcomm_bdaddr; /* address */
158 bdaddr_t l2cap_bdaddr; /* address */
159};
160.Ed
161.Ss Dv SOCK_RAW Ss L2CAP sockets
162Implemented by
163.Nm btsock_l2c_raw
164Netgraph type.
165Raw L2CAP sockets do not provide access to raw L2CAP datagrams.

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

267.Sh Dv BLUETOOTH_PROTO_RFCOMM Sh protocol
268The Bluetooth RFCOMM socket address is defined as follows:
269.Bd -literal -offset indent
270/* Bluetooth version of struct sockaddr for RFCOMM sockets */
271struct sockaddr_rfcomm {
272 u_char rfcomm_len; /* total length */
273 u_char rfcomm_family; /* address family */
274 bdaddr_t rfcomm_bdaddr; /* address */
275 u_int8_t rfcomm_channel; /* channel */
275 uint8_t rfcomm_channel; /* channel */
276};
277.Ed
278.Ss Dv SOCK_STREAM Ss RFCOMM sockets
279Note that RFCOMM sockets do not have associated Netgraph node type.
280RFCOMM sockets are implemented as additional layer on top of L2CAP sockets.
281RFCOMM sockets are either
282.Dq active
283or

--- 71 unchanged lines hidden ---
276};
277.Ed
278.Ss Dv SOCK_STREAM Ss RFCOMM sockets
279Note that RFCOMM sockets do not have associated Netgraph node type.
280RFCOMM sockets are implemented as additional layer on top of L2CAP sockets.
281RFCOMM sockets are either
282.Dq active
283or

--- 71 unchanged lines hidden ---