ng_l2cap.4 (213573) | ng_l2cap.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_l2cap.4,v 1.4 2003/09/14 23:37:52 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_l2cap.4,v 1.4 2003/09/14 23:37:52 max Exp $ |
26.\" $FreeBSD: head/share/man/man4/ng_l2cap.4 213573 2010-10-08 12:40:16Z uqs $ | 26.\" $FreeBSD: head/share/man/man4/ng_l2cap.4 231564 2012-02-12 18:29:56Z ed $ |
27.\" 28.Dd July 4, 2002 29.Dt NG_L2CAP 4 30.Os 31.Sh NAME 32.Nm ng_l2cap 33.Nd Netgraph node type that implements Bluetooth Logical Link Control and 34Adaptation Protocol (L2CAP) --- 270 unchanged lines hidden (view full) --- 305been sent to. 306.It Dv NGM_L2CAP_L2CA_WRITE 307Response to transfer of data request. 308Actual data must be received from 309appropriate upstream hook and must be prepended with header defined as follows. 310.Bd -literal -offset indent 311/* L2CA data packet header */ 312typedef struct { | 27.\" 28.Dd July 4, 2002 29.Dt NG_L2CAP 4 30.Os 31.Sh NAME 32.Nm ng_l2cap 33.Nd Netgraph node type that implements Bluetooth Logical Link Control and 34Adaptation Protocol (L2CAP) --- 270 unchanged lines hidden (view full) --- 305been sent to. 306.It Dv NGM_L2CAP_L2CA_WRITE 307Response to transfer of data request. 308Actual data must be received from 309appropriate upstream hook and must be prepended with header defined as follows. 310.Bd -literal -offset indent 311/* L2CA data packet header */ 312typedef struct { |
313 u_int32_t token; /* token to use in L2CAP_L2CA_WRITE */ 314 u_int16_t length; /* length of the data */ 315 u_int16_t lcid; /* local channel ID */ | 313 uint32_t token; /* token to use in L2CAP_L2CA_WRITE */ 314 uint16_t length; /* length of the data */ 315 uint16_t lcid; /* local channel ID */ |
316} __attribute__ ((packed)) ng_l2cap_l2ca_hdr_t; 317.Ed 318.Pp 319The output parameters are Result and Length of data written. 320.It Dv NGM_L2CAP_L2CA_GRP_CREATE 321Requests the creation of a CID to represent a logical connection to multiple 322devices. 323Input parameter is the PSM value that the outgoing connectionless --- 99 unchanged lines hidden --- | 316} __attribute__ ((packed)) ng_l2cap_l2ca_hdr_t; 317.Ed 318.Pp 319The output parameters are Result and Length of data written. 320.It Dv NGM_L2CAP_L2CA_GRP_CREATE 321Requests the creation of a CID to represent a logical connection to multiple 322devices. 323Input parameter is the PSM value that the outgoing connectionless --- 99 unchanged lines hidden --- |