A portable framework for low-level network packet construction
Note: MSYS2 and Cygwin builds for Windows do not work. Instead we recommend msbuild (and npcap). If you are a Windows hacker and have experience with MSYS2 and C, and want to help, please get in touch!
Valery Ivanov:
libnet-build_ethernet()
Beniamin Sandu:
libnet_init()
with a RAW type no longer sets a TX buffer max
size. Use the new libnet_setfd_max_sndbuf()
instead when needed.Hervé Boisse:
SOCK_PACKET
sockets causing invalid builds on,
e.g., musl libc. We assume everyone on Linux has PF_PACKET
now.Valery Ivanov:
libnet_cq_add()
new
Thomas Habets:
%p
int64_t
instead of __int64_t
for mingw cross builduint32_t
instead of u_int
and uint16_t
instead of u_short
libnet_plist_chain_dump_string()
Bernhard M. Wiedemann:
fixmanpages
Adrian Reber:
libnet_cq_add()
libnet_plist_chain_new()
Stephan Hartmann:
libnet_ifaddrlist()
Andy Roulin:
Release curated by Sam Roberts and Joachim Nilsson.
make doc
pkg-config
support with libnet.pc
, replaces libnet-config
tool, although it is kept for compatibility for nowlibnet_get_hwaddr()
work with 802.1q interfaces in bpf (BSD)getifaddrs()
on OpnBSD and Linuxnetinet/in.h
is not on windowsIPPROTO_MH
on windows-Wl
from -version-info
linelibnet_build_snmp()
fix warningLIBNET_*RESOLVE
const in libnet_name2addr*
#include<netinet/in.h>
for IPPROTO_*
on OpenBSD 5.2socklen_t
. Suggested by g.esp and Stefanos Harhalakis#pragma comment(lib, ...)
are only for MSVClibnet_open_raw4()
doesn't return a SOCKET on win32l->err_buf
if libnet_ifaddrlist()
failslibnet_ifaddrlist()
libnet_get_hwaddr()
for large(!) number of interfaceslibnet_get_ipaddr4()
LIBNET_API
on public functions, instead of an export fileLIBNET_BSD_BYTE_SWAP
LIBNET_BSDISH_OS
and LIBNET_BSD_BYTE_SWAP
on Darwinsendto(
returns EINVAL
netinet/in.h
is needed for IPPROTO_
and sockaddr_in
Release curated by Sam Roberts and Joachim Nilsson.
make doc
pkg-config
support with libnet.pc
, replaces libnet-config
tool, although it is kept for compatibility for nowlibnet_get_hwaddr()
work with 802.1q interfaces in bpf (BSD)getifaddrs()
on OpnBSD and Linuxnetinet/in.h
is not on windowsIPPROTO_MH
on windows-Wl
from -version-info
linelibnet_build_snmp()
fix warningLIBNET_*RESOLVE
const in libnet_name2addr*
#include<netinet/in.h>
for IPPROTO_*
on OpenBSD 5.2socklen_t
. Suggested by g.esp and Stefanos Harhalakis#pragma comment(lib, ...)
are only for MSVClibnet_open_raw4()
doesn't return a SOCKET on win32l->err_buf
if libnet_ifaddrlist()
failslibnet_ifaddrlist()
libnet_get_hwaddr()
for large(!) number of interfaceslibnet_get_ipaddr4()
LIBNET_API
on public functions, instead of an export fileLIBNET_BSD_BYTE_SWAP
LIBNET_BSDISH_OS
and LIBNET_BSD_BYTE_SWAP
on Darwinsendto(
returns EINVAL
netinet/in.h
is needed for IPPROTO_
and sockaddr_in
Merged 1.1.3 release candidate from packet factory, 1.1.2, debian patches, and my own fixes, including bugs causing memory corruption: