libnet.h(3)

πŸ“¦ version 1.1.6, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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