squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
icmp
IcmpConfig.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3
*
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.
7
*/
8
9
/* DEBUG: section 03 Configuration Settings */
10
11
#ifndef ICMPCONFIG_H
12
#define ICMPCONFIG_H
13
14
#if USE_ICMP
15
16
#include "
cache_cf.h
"
17
#include "
sbuf/SBuf.h
"
18
22
class
IcmpConfig
23
{
24
public
:
25
IcmpConfig
() :
enable
(0) {}
26
~IcmpConfig
() {}
27
28
void
clear
() {
enable
=0;
program
.
clear
();}
29
void
parse
();
30
32
SBuf
program
;
33
35
int
enable
;
36
};
37
38
extern
IcmpConfig
IcmpCfg
;
39
40
/* wrappers for the legacy squid.conf parser */
41
#define dump_icmp(e,n,v) \
42
if (!(v).program.isEmpty()) { \
43
(e)->append((n), strlen((n))); \
44
(e)->append(" "
, 1); \
45
(e)->append((v).program.rawContent(), (v).program.length()); \
46
(e)->append("\n", 1); \
47
} else {}
48
#define parse_icmp(v) (v)->parse()
49
#define free_icmp(x) (x)->clear()
50
51
#endif
/* USE_ICMP */
52
#endif
/* ICMPCONFIG_H */
53
IcmpCfg
IcmpConfig IcmpCfg
Definition:
IcmpConfig.cc:17
SBuf.h
cache_cf.h
IcmpConfig
Definition:
IcmpConfig.h:23
IcmpConfig::program
SBuf program
Definition:
IcmpConfig.h:32
IcmpConfig::~IcmpConfig
~IcmpConfig()
Definition:
IcmpConfig.h:26
IcmpConfig::enable
int enable
Definition:
IcmpConfig.h:35
IcmpConfig::parse
void parse()
Definition:
IcmpConfig.cc:20
IcmpConfig::clear
void clear()
Definition:
IcmpConfig.h:28
IcmpConfig::IcmpConfig
IcmpConfig()
Definition:
IcmpConfig.h:25
SBuf
Definition:
SBuf.h:94
SBuf::clear
void clear()
Definition:
SBuf.cc:175
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Quick Setup
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
...
full list
FTP Package Archive