]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/icmp/Icmp.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / icmp / Icmp.h
index 3484acd15ac3697f845850ea9f99473d2faa99d6..c95eb24c66a8ff8cdd391f8d19e206925131320d 100644 (file)
 #ifndef _INCLUDE_ICMP_H
 #define _INCLUDE_ICMP_H
 
-#include "config.h"
 #include "ip/Address.h"
 
 #define PINGER_PAYLOAD_SZ      8192
 
 #define MAX_PAYLOAD 256 // WAS: SQUIDHOSTNAMELEN
 #define MAX_PKT4_SZ (MAX_PAYLOAD + sizeof(struct timeval) + sizeof (char) + sizeof(struct icmphdr) + 1)
-#if USE_IPV6
 #define MAX_PKT6_SZ (MAX_PAYLOAD + sizeof(struct timeval) + sizeof (char) + sizeof(struct icmp6_hdr) + 1)
-#endif
 
 #if USE_ICMP
 
@@ -73,7 +70,6 @@ SQUIDCEXTERN int icmp_pkts_sent;
 
 #endif /* USE_ICMP */
 
-
 /**
  * Implements the squid interface to access ICMP operations
  *
@@ -137,7 +133,7 @@ protected:
     int ipHops(int ttl);
 
     /// Log the packet.
-    void Log(const Ip::Address &addr, const u_int8_t type, const char* pkt_str, const int rtt, const int hops);
+    void Log(const Ip::Address &addr, const uint8_t type, const char* pkt_str, const int rtt, const int hops);
 
     /* no use wasting memory */
     int icmp_sock;