]> git.ipfire.org Git - thirdparty/squid.git/blame - src/ICMPv6.h
Typo blockign HEAD langpack generation
[thirdparty/squid.git] / src / ICMPv6.h
CommitLineData
cc192b50 1/*
2 * $Id: ICMPv6.h,v 1.1 2007/12/14 23:11:45 amosjeffries Exp $
3 *
4 * DEBUG: section 37 ICMP Routines
5 * AUTHOR: Duane Wessels, Amos Jeffries
6 *
7 * SQUID Web Proxy Cache http://www.squid-cache.org/
8 * ----------------------------------------------------------
9 *
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.
18 *
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.
23 *
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.
28 *
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.
32 *
33 */
34#ifndef _INCLUDE_ICMPV6_H
35#define _INCLUDE_ICMPV6_H
36
37#include "config.h"
38
39#if USE_IPV6
40
41#include "ICMP.h"
42#include "IPAddress.h"
43
44#if HAVE_NETINET_IN_H
45#include <netinet/in.h>
46#endif
47#if HAVE_NETINET_ICMP6_H
48#include <netinet/icmp6.h>
49#endif
50#if HAVE_NETINET_IP6_H
51#include <netinet/ip6.h>
52#endif
53
54/* see RFC 4443 section 2.1 */
55#ifndef ICMP6_ECHOREQUEST
56#define ICMP6_ECHOREQUEST 128
57#endif
58
59/* see RFC 4443 section 2.1 */
60#ifndef ICMP6_ECHOREPLY
61#define ICMP6_ECHOREPLY 129
62#endif
63
64/* see RFC 4443 section 2.1 */
65#ifndef IPPROTO_ICMPV6
66#define IPPROTO_ICMPV6 58
67#endif
68
69/**
70 * Class partially implementing RFC 4443 - ICMPv6 for IP version 6.
71 * Provides ECHO-REQUEST, ECHO-REPLY (secion 4)
72 */
73class ICMPv6 : public ICMP
74{
75public:
76 ICMPv6();
77 virtual ~ICMPv6();
78
79 virtual int Open();
80
81#if USE_ICMP
82 virtual void SendEcho(IPAddress &, int, const char*, int);
83 virtual void Recv(void);
84#endif
85};
86
87#if USE_ICMP
88
89/// pinger helper contains one of these as a global object.
90SQUIDCEXTERN ICMPv6 icmp6;
91
92#endif /* USE_ICMP && SQUID_HELPER */
93
94#endif /* USE_IPV6 */
95
96#endif /* _INCLUDE_ICMPV6_H */