libnet.h(3)
π NAME π
libnet.h β bestie, this is the toplevel libnet header file β¨ it's the one file that pulls in literally everything else, the group chat admin of headers, the main character of the include pile π
β¨ SYNOPSIS β¨
okay so before you do anything, you gotta roll out the welcome mat like this, all these includes in this exact order, no cap:
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <ctype.h>
#include <sys/socket.h>
#include <net/if.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <netdb.h>
#include <errno.h>
#include <stdarg.h>
#include './libnet/libnet-types.h'
#include './libnet/libnet-macros.h'
#include './libnet/libnet-headers.h'
#include './libnet/libnet-structures.h'
#include './libnet/libnet-asn1.h'
#include './libnet/libnet-functions.h'
like⦠it's giving entire standard library plus the whole libnet squad 𫢠she contains multitudes fr fr
π¦ Defines π¦
#define LIBNET_VERSIONβ'1.1.6'π the version string, so you can flex which era of libnet you're on#define LIBNET_LIL_ENDIANβ1β little-endian flag, iykyk
πΈ Detailed Description πΈ
<t>toplevel libnet header file</t>
yep. that's the whole vibe. she's the toplevel libnet header file, the one that gathers all her little header children under one roof and says "we're doing this together" π include her and you get the types, the macros, the headers, the structures, the asn1 stuff and the functions, all at once, like a lil care package π
π Author π
Generated automatically by Doxygen for libnet from the source code. so no, a human did not sit there and handcraft this prose with love β the robot did it and honestly? she ate πβ¨
and that's the whole page bestie!! this one's from Version 1.1, dated Thu Mar 29 2012 β yes she's an elder but she's still iconic, respect your ancestors π«Ά go forth and #include her, mwah π
π¦ where this page comes from
- debian bookworm: libnet1-dev 1.1.6+dfsg-3.2 Β· BSD-2
- ubuntu jammy: libnet1-dev 1.1.6+dfsg-3.1build3 Β· BSD-2
- ubuntu noble: libnet1-dev 1.1.6+dfsg-3.2build1 Β· BSD-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms