Squid Web Cache
v8/master
Loading...
Searching...
No Matches
IcmpConfig.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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 SQUID_SRC_ICMP_ICMPCONFIG_H
12
#define SQUID_SRC_ICMP_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
/* SQUID_SRC_ICMP_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
squid
src
icmp
IcmpConfig.h
Generated by
1.9.8