C library for constructing and injecting IP packets
C library for creating IP packets
libnet
$ gcc -o packet_tool packet_tool.c -lnet
$ #include <libnet.h> in your source code
$ pkg-config --cflags --libs libnet