179 lines
4.8 KiB
HTML
179 lines
4.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of L2TEST</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>L2TEST</H1>
|
|
Section: User Commands (1)<BR>Updated: April 2018<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
l2test - L2CAP testing tool
|
|
<A NAME="lbAC"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
l2test - L2CAP testing tool
|
|
Usage:
|
|
<DL COMPACT>
|
|
<DT id="1"><DD>
|
|
l2test <mode> [options] [bdaddr]
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H3>Modes:</H3>
|
|
|
|
<DL COMPACT>
|
|
<DT id="2">
|
|
<B>-r</B> listen and receive
|
|
<DT id="3">
|
|
<B>-w</B> listen and send
|
|
<DT id="4">
|
|
<B>-d</B> listen and dump incoming data
|
|
<DT id="5">
|
|
<B>-x</B> listen, then send, then dump incoming data
|
|
<DT id="6">
|
|
<B>-t</B> listen, then send and receive at the same time
|
|
<DT id="7">
|
|
<B>-q</B> connect, then send and receive at the same time
|
|
<DT id="8">
|
|
<B>-s</B> connect and send
|
|
<DT id="9">
|
|
<B>-u</B> connect and receive
|
|
<DT id="10">
|
|
<B>-n</B> connect and be silent
|
|
<DT id="11">
|
|
<B>-y</B> connect, then send, then dump incoming data
|
|
<DT id="12">
|
|
<B>-c</B> connect, disconnect, connect, ...
|
|
<DT id="13">
|
|
<B>-m</B> multiple connects
|
|
<DT id="14">
|
|
<B>-p</B> trigger dedicated bonding
|
|
<DT id="15">
|
|
<B>-z</B> information request
|
|
</DL>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="16"><DD>
|
|
[-b bytes] [-i device] [-P psm] [-J cid]
|
|
[-I imtu] [-O omtu]
|
|
[-L seconds] enable SO_LINGER
|
|
[-W seconds] enable deferred setup
|
|
[-B filename] use data packets from file
|
|
[-N num] send num frames (default = infinite)
|
|
[-C num] send num frames before delay (default = 1)
|
|
[-D milliseconds] delay after sending num frames (default = 0)
|
|
[-K milliseconds] delay before receiving (default = 0)
|
|
[-g milliseconds] delay before disconnecting (default = 0)
|
|
[-X mode] l2cap mode (help for list, default = basic)
|
|
[-a policy] chan policy (help for list, default = bredr)
|
|
[-F fcs] use CRC16 check (default = 1)
|
|
[-Q num] Max Transmit value (default = 3)
|
|
[-Z size] Transmission Window size (default = 63)
|
|
[-Y priority] socket priority
|
|
[-H size] Maximum receive buffer size
|
|
[-R] reliable mode
|
|
[-G] use connectionless channel (datagram)
|
|
[-U] use sock stream
|
|
[-A] request authentication
|
|
[-E] request encryption
|
|
[-S] secure connection
|
|
[-M] become master
|
|
[-T] enable timestamps
|
|
[-V type] address type (help for list, default = bredr)
|
|
[-e seq] initial sequence value (default = 0)
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H3>Usage:</H3>
|
|
|
|
<DL COMPACT>
|
|
<DT id="17"><DD>
|
|
<DD>l2test <mode> [options] [bdaddr]
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H3>Modes:</H3>
|
|
|
|
<DL COMPACT>
|
|
<DT id="18">
|
|
<B>-r</B> listen and receive
|
|
<DT id="19">
|
|
<B>-w</B> listen and send
|
|
<DT id="20">
|
|
<B>-d</B> listen and dump incoming data
|
|
<DT id="21">
|
|
<B>-x</B> listen, then send, then dump incoming data
|
|
<DT id="22">
|
|
<B>-t</B> listen, then send and receive at the same time
|
|
<DT id="23">
|
|
<B>-q</B> connect, then send and receive at the same time
|
|
<DT id="24">
|
|
<B>-s</B> connect and send
|
|
<DT id="25">
|
|
<B>-u</B> connect and receive
|
|
<DT id="26">
|
|
<B>-n</B> connect and be silent
|
|
<DT id="27">
|
|
<B>-y</B> connect, then send, then dump incoming data
|
|
<DT id="28">
|
|
<B>-c</B> connect, disconnect, connect, ...
|
|
<DT id="29">
|
|
<B>-m</B> multiple connects
|
|
<DT id="30">
|
|
<B>-p</B> trigger dedicated bonding
|
|
<DT id="31">
|
|
<B>-z</B> information request
|
|
<DT id="32"><DD>
|
|
[-b bytes] [-i device] [-P psm] [-J cid]
|
|
[-I imtu] [-O omtu]
|
|
[-L seconds] enable SO_LINGER
|
|
[-W seconds] enable deferred setup
|
|
[-B filename] use data packets from file
|
|
[-N num] send num frames (default = infinite)
|
|
[-C num] send num frames before delay (default = 1)
|
|
[-D milliseconds] delay after sending num frames (default = 0)
|
|
[-K milliseconds] delay before receiving (default = 0)
|
|
[-g milliseconds] delay before disconnecting (default = 0)
|
|
[-X mode] l2cap mode (help for list, default = basic)
|
|
[-a policy] chan policy (help for list, default = bredr)
|
|
[-F fcs] use CRC16 check (default = 1)
|
|
[-Q num] Max Transmit value (default = 3)
|
|
[-Z size] Transmission Window size (default = 63)
|
|
[-Y priority] socket priority
|
|
[-H size] Maximum receive buffer size
|
|
[-R] reliable mode
|
|
[-G] use connectionless channel (datagram)
|
|
[-U] use sock stream
|
|
[-A] request authentication
|
|
[-E] request encryption
|
|
[-S] secure connection
|
|
[-M] become master
|
|
[-T] enable timestamps
|
|
[-V type] address type (help for list, default = bredr)
|
|
[-e seq] initial sequence value (default = 0)
|
|
<P>
|
|
</DL>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="33"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="34"><A HREF="#lbAC">DESCRIPTION</A><DD>
|
|
<DL>
|
|
<DT id="35"><A HREF="#lbAD">Modes:</A><DD>
|
|
</DL>
|
|
<DT id="36"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DL>
|
|
<DT id="37"><A HREF="#lbAF">Usage:</A><DD>
|
|
<DT id="38"><A HREF="#lbAG">Modes:</A><DD>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:17 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|