C Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
01_init.c
02_init_devname.c
03_addr.c
04_get_own_addr.c
05_ping.c
06_arp.c
07_reping_tags.c
08_reping_clear.c
09_cull_header.c
10_cull_packet.c
11_frag_ping.c
12_addr6.c
13_ping6.c
Makefile
README

README

libnet 1.1 tutorial (https://repolinux.wordpress.com/category/libnet/) sample code

File names are preceded by the order they appear in the tutorial.

To compile everything, just run
$ make

Notice that example 13 will fail to compile if your libnet version lacks libnet_build_icmpv6_echo() and libnet_autobuild_ipv6(). They are available starting from libnet-1.1.6 (https://github.com/sam-github/libnet/tree/master/libnet).