logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

lc_tuntap_create - create TUN/TAP devices

Description

lc_tuntap_create() creates a new TUN/TAP device

Library

       Librecast library (liblibrecast, -llibrecast)

Name

       lc_tuntap_create - create TUN/TAP devices

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.

LIBRECAST                                          2022-02-01                                LC_TUNTAP_CREATE(3)

Synopsis

#include<librecast/if.h>intlc_tuntap_create(char*ifname,intflags);

       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.

See Also