#include <sys/types.h> /* \ */ #include <sys/socket.h> /* > for inet_ntop and its friends. */ #include <arpa/inet.h> /* / */ #include <netinet/ip.h> /* to parse IP headers. */ #include <netinet/tcp.h> /* to parse TCP headers. */Originally written by guy keren