C library for constructing and injecting IP packets into the network.
C library for creating IP packets
$ gcc -o packet_tool packet.c -lnet && ./packet_tool$ cc -I/usr/local/include -L/usr/local/lib mypacket.c -lnet -o test$ #include <libnet.h> /* link against -lnet when compiling */$ gcc -o inject inject.c -lnet && sudo ./inject eth0$ cc -o analyzer analyzer.c -lnet -lpcap