lc_tuntap_create(3)

lc_tuntap_create3

Create tun/tap devices

Usage

#include <librecast/if.h>

int lc_tuntap_create(char *ifname, int flags);

Compile and link with -llibrecast.

The flags argument may contain the following flags. One of IFF_TUN or IFF_TAP is required.

IFF_TUN

create TUN device (no Ethernet headers)

IFF_TAP

create TAP device

IFF_NO_PI

Do not provide packet information.

IFF_MULTI_QUEUE

Create a queue of multiqueue device.

Library

Librecast library (liblibrecast, -llibrecast)

Overview

lc_tuntap_create() creates a new TUN/TAP device

Return value

lc_socket_new() On success, a file descriptor for the new socket is returned. On error, -1 is returned, and errno is set appropriately.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From liblibrecast-dev 0.9.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.