libnet-macros.h(3)
π NAME π
okay so bestie, welcome to libnet-macros.h β this is the Library Functions Manual page for libnet macros and symbolic constants. β¨ That's literally it, that's the whole assignment: it's the lil grab-bag of #defines the rest of libnet runs on. No cap. π
πΈ SYNOPSIS πΈ
π Macros
#define LIBNET_DONT_RESOLVE 0
#define LIBNET_RESOLVE 1
#define LIBNET_ON 0
#define LIBNET_OFF 1
#define IN6ADDR_ERROR_INIT
#define LIBNET_PR2 0
#define LIBNET_MAX_PACKET 0xffff
#define LIBNET_ERRBUF_SIZE 0x100
#define LIBNET_MAXOPTION_SIZE 0x28
#define for_each_context_in_cq(l)
π¦ Detailed Description π¦
libnet macros and symbolic constants β yeah, that's the entire description. Short and iconic, we love that for her. π«Ά
π Macro Definition Documentation π
#define for_each_context_in_cq( l)
Value:
for (l = libnet_cq_head(); libnet_cq_last(); l = libnet_cq_next())
okay so this one is the lil glow-up loop β it hands you a way to iterate through the context queue of libnet contexts. π But bestie, listen: before you call this macro, you gotta make sure the queue is set using libnet_cq_head(). Do that first or the vibe check fails. π
#define IN6ADDR_ERROR_INIT
Value:
{ { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \
0xff, 0xff } } }
IPv6 error code. That's it, that's the girl. π
#define LIBNET_DONT_RESOLVE 0
This one's for libnet's name resolution functions, and what it's saying is: no DNS lookups, periodt. The IP address stays in numeric form, exactly as-is. π«π
#define LIBNET_ERRBUF_SIZE 0x100
The libnet error buffer is 256 bytes long. That's the whole flex. π
#define LIBNET_MAX_PACKET 0xffff
The biggest an IP packet can be β 65,535 bytes. Absolute unit. π€π₯
#define LIBNET_MAXOPTION_SIZE 0x28
IP and TCP options can be up to 40 bytes long. That's the ceiling bestie, respect it. π
#define LIBNET_OFF 1
Used several places, to specify "on" or "one". (yes, that's what it says β we are simply reporting the text, iykyk π
)
#define LIBNET_ON 0
Used several places, to specify "on" or "one". Same energy as her sister above. π«Ά
vibe check:LIBNET_ONis0andLIBNET_OFFis1. Not me getting whiplash β that's just literally what the values are. Use the macros, not raw0/1, and you'll be fine. π
#define LIBNET_PR2 0
Used for libnet_get_prand() to specify function disposition. π²
#define LIBNET_RESOLVE 1
This one's for libnet's name resolution functions, and it says a DNS lookup can be performed if needed to resolve the IP address to a canonical form. So like, it's allowed to go ask around. β¨
π SEE ALSO π
π AUTHORS π
The original author of libnet is Mike D. Schiffman. π
libnet has been maintained and extensively enhanced since 2009 by Sam Roberts. π οΈ
It is maintained by the Libnet Developer Community at GitHub. π
<https://github.com/libnet/libnet>
π BUGS π
Suggestions, bug reports/fixes, and pull requests, see:
<https://github.com/libnet/libnet/issues>
bestie if something's broken, tell them, they literally want to know. π«Ά
π COPYRIGHT π
libnet is licensed under the 2-Clause BSD License. π
π SEE ALSO π
π AUTHORS π
The original author of libnet is Mike D. Schiffman. π
libnet has been maintained and extensively enhanced since 2009 by Sam Roberts. π οΈ
It is maintained by the Libnet Developer Community at GitHub. π
<https://github.com/libnet/libnet>
π BUGS π
Suggestions, bug reports/fixes, and pull requests, see:
<https://github.com/libnet/libnet/issues>
π COPYRIGHT π
libnet is licensed under the 2-Clause BSD License. π
not the page glitching on you bestie β this whole block genuinely shows up twice in the original. We keep every single detail here, even the dΓ©jΓ vu. πβ¨
and that's the page, bestie!! π slay π β this came to you from the libnet Programmers Guide, version libnet-1.3. Go write some packets, you absolute main character. ππ¦πΈ
π¦ where this page comes from
- fedora 43: libnet-devel 1.3-6.fc43 Β· BSD-2-Clause AND BSD-3-Clause
- fedora 43: libnet-devel 1.3-6.fc43 Β· BSD-2-Clause AND BSD-3-Clause
- fedora 44: libnet-devel 1.3-7.fc44 Β· BSD-2-Clause AND BSD-3-Clause
- fedora 44: libnet-devel 1.3-7.fc44 Β· BSD-2-Clause AND BSD-3-Clause
- opensuse-leap 16.0: libnet-devel 1.3-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libnet-devel 1.3-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libnet-devel 1.3-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libnet-devel 1.3-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libnet-doc 1.3-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libnet-doc 1.3-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libnet-doc 1.3-160000.3.2 Β· BSD-3-Clause
- opensuse-leap 16.0: libnet-doc 1.3-160000.3.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms