libnet

C library for constructing and injecting IP packets

brewmacoslinux
Try with needOr install directly
Source

About

C library for creating IP packets

Commands

libnet

Examples

Link against libnet in a C program to build custom IP packets$ gcc -o packet_tool packet_tool.c -lnet
Include libnet headers in C code for packet manipulation$ #include <libnet.h> in your source code
Use pkg-config to get libnet compiler and linker flags$ pkg-config --cflags --libs libnet