From: fredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Date: Thu, 27 Apr 2006 15:22:47 +0000 (+0000)
Subject: Factored ICMP structs and defs into icmpdefs.h.
X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=1eb230f9a739866bcf329573bf728f701d84008b;p=icmp-dn.git

Factored ICMP structs and defs into icmpdefs.h.


git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/icmp-dn@599 959494ce-11ee-0310-bf91-de5d638817bd
---

diff --git a/src/icmpdnd.c b/src/icmpdnd.c
index 49d1b5c..29d62f9 100644
--- a/src/icmpdnd.c
+++ b/src/icmpdnd.c
@@ -33,36 +33,12 @@
 #include "config.h"
 #endif
 
+#include "icmpdefs.h"
+
 #ifndef MAXHNAME
 #define MAXHNAME 1024
 #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
-
 volatile int alive;
 char myname[MAXHNAME] = "";