X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fidnlookup.c;h=b120c52090dcc5a55bb6a67d02b7d6de4dab8d07;hb=eb3d84a386d9e38182cc33c43ad44024d5a8cbed;hp=0fd367fb37482ef206dba81c82be44fd6ecbd3a1;hpb=9533e44b92c3e098e640d1dabd44b3c58741dea1;p=icmp-dn.git diff --git a/src/idnlookup.c b/src/idnlookup.c index 0fd367f..b120c52 100644 --- a/src/idnlookup.c +++ b/src/idnlookup.c @@ -35,32 +35,7 @@ #include "config.h" #endif -struct icmphdr { - u_int8_t type; - u_int8_t code; - u_int16_t checksum; -}; - -struct reqhdr { - u_int8_t type; - u_int8_t code; - u_int16_t checksum; - u_int16_t id; - u_int16_t seq; -}; - -struct rephdr { - u_int8_t type; - u_int8_t code; - u_int16_t checksum; - u_int16_t id; - u_int16_t seq; - int32_t ttl; - -}; - -#define ICMP_NAMEREQ 37 -#define ICMP_NAMEREP 38 +#include "icmpdefs.h" unsigned char buf[65536];