---
name: "l2control"
section: "8"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/l2control"
---

# l2control(8)

L2CAP configuration utility

## NAME

**l2control** – L2CAP configuration utility

## SYNOPSIS

**l2control** \[**-hn**\] **-a** *local* *command* \[*parameters* *...*\]

## DESCRIPTION

The **l2control** utility connects to the local device with the specified BD\_ADDR or name and attempts to send the specified command. The **l2control** utility will print results to the standard output and error messages to the standard error output.

The options are as follows:

- **-a** *local*

  Connect to the local device with the specified BD\_ADDR or name. Example: **-a** 00:01:02:03:04:05 or **-a** bt\_device.

- **-h**

  Display usage message and exit.

- **-n**

  Show Bluetooth addresses as numbers. Normally **l2control** attempts to resolve Bluetooth addresses, and display them symbolically.

- *command*

  One of the supported commands (see below). The special command **help** can be used to obtain a list of all supported commands. To get more information about a specific command use **help** *command*.

- *parameters*

  One or more optional space separated command parameters.

## COMMANDS

The currently supported node commands in **l2control** are:

- **Read\_Node\_Flags**

  - **Read\_Debug\_Level**

  - **Write\_Debug\_Level**

  - **Read\_Connection\_List**

  - **Read\_Channel\_List**

  - **Read\_Auto\_Disconnect\_Timeout**

  - **Write\_Auto\_Disconnect\_Timeout**

  ## EXIT STATUS

The **l2control** utility exits 0 on success, and \>0 if an error occurs.

## SEE ALSO

[netgraph(3)](/netgraph/3.md), [netgraph(4)](/netgraph/4.md), [ng\_l2cap(4)](/ng_l2cap/4.md), [l2ping(8)](/l2ping/8.md)

## AUTHORS

Maksim Yevmenkin ⟨*emax@FreeBSD.org*⟩
