#include #include //Custom defines for my machine #define HAVE_AF_INET6 #define HAVE_INET_NTOP #define HAVE_SOCKADDR_STORAGE #define HAVE_GETNAMEINFO 1 #define HAVE_GETADDRINFO 1 #define HAVE_GETTIMEOFDAY #define HAVE_STRING_H 1 #define HAVE_STRCASESTR #include "dnet.h" #include "nbase.h" #include "netutil.h" #include "PacketParser.h" using namespace std; int main(int argc, char ** arv){ PacketParser packetparser = PacketParser(); while (true){ string input; cin >> input; if (input.length() == 0) continue; cout << input; packetparser.parse_packet((const u8 *)input.c_str(), input.length(), true); packetparser.parse_packet((const u8 *)input.c_str(), input.length(), false); cout << endl; } }