To make it work on FreeBSD, * cc instead of gcc; * add 2 headers: ``` #include <sys/socket.h> #include <netinet/in.h> ``` * fix the memcpy bug on line 70 (see the issue)