]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/icmp/IcmpConfig.h
2 * Copyright (C) 1996-2015 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 03 Configuration Settings */
20 * Squid pinger Configuration settings
25 IcmpConfig() : enable(0) {}
28 void clear() {enable
=0; program
.clear();}
31 /** pinger helper application path */
34 /** Whether the pinger helper is enabled for use or not */
38 extern IcmpConfig IcmpCfg
;
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); \
48 #define parse_icmp(v) (v)->parse()
49 #define free_icmp(x) (x)->clear()
52 #endif /* ICMPCONFIG_H */