github libnet/libnet v1.2
libnet v1.2

latest release: v1.3
4 years ago

Release curated by Sam Roberts and Joachim Nilsson.

Changes

  • Removed Lua bindings from repo and dist files, now available separately
  • Removed generated HTML and Nroff (man pages) documentation files, must be regenerated with Doxygen using make doc
  • Add pkg-config support with libnet.pc, replaces libnet-config tool, although it is kept for compatibility for now
  • Factorize socket setup code for socket opening to provide output device selection for IPv4
  • Make libnet_get_hwaddr() work with 802.1q interfaces in bpf (BSD)
  • New API for OSPF HELLO messages, with neighbor

Fixes

  • Use getifaddrs() on OpnBSD and Linux
  • For samples, netinet/in.h is not on windows
  • Fix errors with missing IPPROTO_MH on windows
  • Fix build error on Mac OS X
  • Fix #34 checksum caculation when IPv6 extension headers being used
  • Remove unneeded trailing -Wl from -version-info line
  • libnet_build_snmp() fix warning
  • Use LIBNET_*RESOLVE const in libnet_name2addr*
  • Fix i486 sample synflood6 warning
  • Some samples need #include<netinet/in.h> for IPPROTO_* on OpenBSD 5.2
  • Fix gcc warnings
  • Check for socklen_t. Suggested by g.esp and Stefanos Harhalakis
  • libnet: update for obsolete INCLUDE directive
  • Fix warning inside comment
  • Automatic link options #pragma comment(lib, ...) are only for MSVC
  • Fix several warnings for MS C/C++ compiler
  • libnet_open_raw4() doesn't return a SOCKET on win32
  • Fixes error messages sometimes include newline, sometimes not
  • Properly set l->err_buf if libnet_ifaddrlist() fails
  • dlpi: Try harder to find the device for the interface
  • dlpi: Correctly extract unit number from devices with numbers in their name
  • Make interface selection work for interfaces with multiple addresses
  • Fix memory leak, device list needs to freed after use
  • Fix file descriptor leak in libnet_ifaddrlist()
  • Fix libnet_get_hwaddr() for large(!) number of interfaces
  • Fix to support musl libc, removes support for GLIBC <2.1
  • Fix win32 buffer overrun in libnet_get_ipaddr4()
  • Interface selection was ignoring interfaces with IPv6
  • Use LIBNET_API on public functions, instead of an export file
  • Add Visual Studio 2010 project files, with build instructions
  • Define INET6 on IRIX, making libnet compile cleanly
  • Check for FreeBSD pre-11 before enabling LIBNET_BSD_BYTE_SWAP
  • Use LIBNET_BSDISH_OS and LIBNET_BSD_BYTE_SWAP on Darwin
  • Add BSD byteswap for Darwin. Otherwise sendto( returns EINVAL
  • netinet/in.h is needed for IPPROTO_ and sockaddr_in

Don't miss a new libnet release

NewReleases is sending notifications on new releases.