LC_TUNTAP_CREATE(3)
π LC_TUNTAP_CREATE π
okay bestie, so this is the Librecast Programmer's Manual page for lc_tuntap_create, and yes we're gonna make TUN/TAP devices together, it's giving network engineer but make it cute π¦
β¨ NAME β¨
lc_tuntap_create β create TUN/TAP devices π
π LIBRARY π
Librecast library (liblibrecast, -llibrecast) β she's the whole vibe, periodt.
πΈ SYNOPSIS πΈ
#include <librecast/if.h>
int lc_tuntap_create(char *ifname, int flags);
Compile and link with -llibrecast. no cap, you literally need it.
The flags argument may contain the following flags. One of IFF_TUN or IFF_TAP is required. like, not optional, bestie, pick one π
IFF_TUNβ create TUN device (no Ethernet headers) πIFF_TAPβ create TAP device β¨IFF_NO_PIβ Do not provide packet information. lowkey minimalist of itIFF_MULTI_QUEUEβ Create a queue of multiqueue device. main character energy, multiple queues fr fr
π«Ά DESCRIPTION π«Ά
lc_tuntap_create() creates a new TUN/TAP device π
that's it. that's the whole description. short queen, ate, no notes. π
β RETURN VALUE β
lc_socket_new() β okay so this line is literally just sitting there at the start of the RETURN VALUE section and we're keeping it exactly as-is because the facts do not change, even when they're a little mysterious π§
On success, a file descriptor for the new socket is returned. π₯ On error, -1 is returned, and errno is set appropriately. π (check your errno bestie, she's telling you something)
and that's the whole page!! from the Librecast crew, dated 2022-02-01, tagged LIBRECAST and LC_TUNTAP_CREATE(3) β mwah, iconic, go make some devices πβ¨
π¦ where this page comes from
- debian trixie: liblibrecast-dev 0.9.1-1 Β· GPL-2.0-only OR GPL-3.0-only
- nixos 26.05: librecast 0.11.2
- nixpkgs unstable: librecast 0.11.2
- ubuntu noble: liblibrecast-dev 0.8.0-1.1build1 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu questing: liblibrecast-dev 0.9.1-1
- ubuntu resolute: liblibrecast-dev 0.11.2-2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: liblibrecast-dev 0.11.2-2build1 Β· GPL-2.0-only OR GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms