macOS
brew install libnetlocal Homebrew formula metadata
sudo port install libnetMacPorts ports tree · net/libnet/Portfile · source: api.github.com
brew
C library for creating IP packets. Version 1.3 via Homebrew; verified 2026-06-15.
install
brew install libnetlocal Homebrew formula metadata
sudo port install libnetMacPorts ports tree · net/libnet/Portfile · source: api.github.com
sudo apk add libnetAlpine Linux edge package indexes · libnet · source: dl-cdn.alpinelinux.org
sudo apt install libnet1Debian stable package indexes · libnet1 · source: deb.debian.org
sudo dnf install libnetFedora Rawhide package metadata · libnet · source: dl.fedoraproject.org
nix profile install nixpkgs#libnetnixpkgs package indexes · pkgs/by-name/li/libnet/package.nix · source: api.github.com
sudo pacman -S libnetArch Linux sync databases · libnet · source: geo.mirror.pkgbuild.com
sudo zypper install libnet-developenSUSE Tumbleweed package metadata · libnet-devel · source: download.opensuse.org
overview
C library for creating IP packets
history
libnet is a C library for constructing and injecting network packets. It occupies the low-level packet-building side of the classic libpcap/libnet pairing: libpcap captures packets, while libnet gives test tools, scanners, and protocol experiments a portable API for emitting packets with controlled headers.
The project traces its 1.1 line to Mike D. Schiffman's Packetfactory-era work, with project materials crediting libnet 1.1 to 1998-2004. The maintained 1.1.3-and-later line was revived by Sam Roberts starting in 2009 after the older Packetfactory-hosted code had become unmaintained.
The 1.1 API was a significant break from 1.0.x code. The migration guide describes the change as a simplification from a five-step packet workflow to initialization, packet building, and packet writing, and the README warns that libnet 1.0.x code is incompatible with libnet 1.1.x and later.
libnet spread through security and networking tools because it hides byte ordering, buffer management, and link/IP layer packet assembly details while still allowing deliberate packet shaping. The official README names packaged tools such as arping, ettercap, nemesis, packit, tcptraceroute, and yersinia as libnet users.
Developers include libnet through libnet.h and link with -lnet. The project retained libnet-config for compatibility but moved new integration guidance toward pkg-config, with libnet.pc replacing the older helper in modern builds.
For package maintainers, libnet is notable because it is tiny in concept but sits on privileged and platform-specific network interfaces. Its ABI break between 1.0.x and 1.1.x, the revival from an abandoned upstream, and the long-lived libnet-config compatibility shim are exactly the sort of details that explain why distributions keep careful split packages and rebuild notes for it.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
libnet-config | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/libnet/libnet
install metadata
| Package key | brew:libnet |
|---|---|
| Version | 1.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libnet |
| Homepage | https://codedocs.xyz/libnet/libnet/ |
| Repository | https://github.com/libnet/libnet |
| Upstream docs | https://codedocs.xyz/libnet/libnet |
| License | BSD-2-Clause |
| Source archive | https://github.com/libnet/libnet/releases/download/v1.3/libnet-1.3.tar.gz |
| Last updated | 2026-06-15T10:20:20-04:00 |
| Pulse | updated |
| Build dependencies | doxygen |
| Bottle | available (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libnet |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libnet1 1.3+dfsg-2
library for the construction and handling of network packets
https://github.com/libnet/libnet/
sudo apt install libnet1libnet1-dev 1.3+dfsg-2
development files for libnet
https://github.com/libnet/libnet/
sudo apt install libnet1-devlibnet1-doc 1.3+dfsg-2
developers documentation files for libnet
https://github.com/libnet/libnet/
sudo apt install libnet1-doclibnet
nix profile install nixpkgs#libnetlibnet1 1.1.6+dfsg-3.2build1
library for the construction and handling of network packets
http://libnet-dev.sourceforge.net/
sudo apt install libnet1libnet1-dbg 1.1.6+dfsg-3.2build1
debugging symbols for libnet
http://libnet-dev.sourceforge.net/
sudo apt install libnet1-dbglibnet1-dev 1.1.6+dfsg-3.2build1
development files for libnet
http://libnet-dev.sourceforge.net/
sudo apt install libnet1-devlibnet1-doc 1.1.6+dfsg-3.2build1
developers documentation files for libnet
http://libnet-dev.sourceforge.net/
sudo apt install libnet1-doclibnet 1.3-r0
A generic networking API that provides access to several protocols.
https://sourceforge.net/projects/libnet-dev/
sudo apk add libnetlibnet-dev 1.3-r0
A generic networking API that provides access to several protocols. (development files)
https://sourceforge.net/projects/libnet-dev/
sudo apk add libnet-devlibnet-doc 1.3-r0
A generic networking API that provides access to several protocols. (documentation)
https://sourceforge.net/projects/libnet-dev/
sudo apk add libnet-doclibnet-static 1.3-r0
A generic networking API that provides access to several protocols. (static library)
https://sourceforge.net/projects/libnet-dev/
sudo apk add libnet-staticlibnet 1.3-7.fc44
C library for portable packet creation and injection
https://github.com/libnet/libnet
sudo dnf install libnetlibnet-devel 1.3-7.fc44
Development files for the libnet library
https://github.com/libnet/libnet
sudo dnf install libnet-devellibnet-doc 1.3-7.fc44
Documentation files for the libnet library
https://github.com/libnet/libnet
sudo dnf install libnet-doclibnet 2:1.3-2
A library which provides API for commonly used low-level net functions
https://github.com/libnet/libnet
sudo pacman -S libnetsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.