]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/icmp/Icmp6.h
2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 37 ICMP Routines */
11 #ifndef _INCLUDE_ICMPV6_H
12 #define _INCLUDE_ICMPV6_H
17 #include <netinet/in.h>
19 #if HAVE_NETINET_ICMP6_H
20 #include <netinet/icmp6.h>
22 #if HAVE_NETINET_IP6_H
23 #include <netinet/ip6.h>
26 /* see RFC 4443 section 2.1 */
27 #ifndef ICMP6_ECHOREQUEST
28 #define ICMP6_ECHOREQUEST 128
31 /* see RFC 4443 section 2.1 */
32 #ifndef ICMP6_ECHOREPLY
33 #define ICMP6_ECHOREPLY 129
36 /* see RFC 4443 section 2.1 */
37 #ifndef IPPROTO_ICMPV6
38 #define IPPROTO_ICMPV6 58
42 * Class partially implementing RFC 4443 - ICMPv6 for IP version 6.
43 * Provides ECHO-REQUEST, ECHO-REPLY (secion 4)
45 class Icmp6
: public Icmp
54 virtual void SendEcho(Ip::Address
&, int, const char*, int);
55 virtual void Recv(void);
61 /// pinger helper contains one of these as a global object.
64 #endif /* USE_ICMP && SQUID_HELPER */
65 #endif /* _INCLUDE_ICMPV6_H */