2 * $Id: ICMPv6.h,v 1.1 2007/12/14 23:11:45 amosjeffries Exp $
4 * DEBUG: section 37 ICMP Routines
5 * AUTHOR: Duane Wessels, Amos Jeffries
7 * SQUID Web Proxy Cache http://www.squid-cache.org/
8 * ----------------------------------------------------------
10 * Squid is the result of efforts by numerous individuals from
11 * the Internet community; see the CONTRIBUTORS file for full
12 * details. Many organizations have provided support for Squid's
13 * development; see the SPONSORS file for full details. Squid is
14 * Copyrighted (C) 2001 by the Regents of the University of
15 * California; see the COPYRIGHT file for full details. Squid
16 * incorporates software developed and/or copyrighted by other
17 * sources; see the CREDITS file for full details.
19 * This program is free software; you can redistribute it and/or modify
20 * it under the terms of the GNU General Public License as published by
21 * the Free Software Foundation; either version 2 of the License, or
22 * (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
34 #ifndef _INCLUDE_ICMPV6_H
35 #define _INCLUDE_ICMPV6_H
42 #include "IPAddress.h"
45 #include <netinet/in.h>
47 #if HAVE_NETINET_ICMP6_H
48 #include <netinet/icmp6.h>
50 #if HAVE_NETINET_IP6_H
51 #include <netinet/ip6.h>
54 /* see RFC 4443 section 2.1 */
55 #ifndef ICMP6_ECHOREQUEST
56 #define ICMP6_ECHOREQUEST 128
59 /* see RFC 4443 section 2.1 */
60 #ifndef ICMP6_ECHOREPLY
61 #define ICMP6_ECHOREPLY 129
64 /* see RFC 4443 section 2.1 */
65 #ifndef IPPROTO_ICMPV6
66 #define IPPROTO_ICMPV6 58
70 * Class partially implementing RFC 4443 - ICMPv6 for IP version 6.
71 * Provides ECHO-REQUEST, ECHO-REPLY (secion 4)
73 class ICMPv6
: public ICMP
82 virtual void SendEcho(IPAddress
&, int, const char*, int);
83 virtual void Recv(void);
89 /// pinger helper contains one of these as a global object.
90 SQUIDCEXTERN ICMPv6 icmp6
;
92 #endif /* USE_ICMP && SQUID_HELPER */
96 #endif /* _INCLUDE_ICMPV6_H */