#include "squid.h"
#include "acl/Acl.h"
#include "acl/AclDenyInfoList.h"
#include "acl/AclSizeLimit.h"
#include "acl/Address.h"
#include "acl/Gadgets.h"
#include "acl/MethodData.h"
#include "acl/Node.h"
#include "acl/Tree.h"
#include "anyp/PortCfg.h"
#include "anyp/UriScheme.h"
#include "auth/Config.h"
#include "auth/Scheme.h"
#include "AuthReg.h"
#include "base/CharacterSet.h"
#include "base/PackableStream.h"
#include "base/RunnersRegistry.h"
#include "cache_cf.h"
#include "CachePeer.h"
#include "CachePeers.h"
#include "compat/netdb.h"
#include "compat/socket.h"
#include "ConfigOption.h"
#include "ConfigParser.h"
#include "CpuAffinityMap.h"
#include "debug/Messages.h"
#include "DiskIO/DiskIOModule.h"
#include "eui/Config.h"
#include "ExternalACL.h"
#include "format/Format.h"
#include "fqdncache.h"
#include "ftp/Elements.h"
#include "globals.h"
#include "HttpHeaderTools.h"
#include "HttpUpgradeProtocolAccess.h"
#include "icmp/IcmpConfig.h"
#include "ip/Intercept.h"
#include "ip/NfMarkConfig.h"
#include "ip/QosConfig.h"
#include "ip/tools.h"
#include "ipc/Kids.h"
#include "log/Config.h"
#include "log/CustomLog.h"
#include "MemBuf.h"
#include "MessageDelayPools.h"
#include "mgr/ActionPasswordList.h"
#include "mgr/Registration.h"
#include "neighbors.h"
#include "NeighborTypeDomainList.h"
#include "Parsing.h"
#include "pconn.h"
#include "PeerDigest.h"
#include "PeerPoolMgr.h"
#include "redirect.h"
#include "RefreshPattern.h"
#include "rfc1738.h"
#include "sbuf/List.h"
#include "sbuf/Stream.h"
#include "SquidConfig.h"
#include "SquidString.h"
#include "ssl/ProxyCerts.h"
#include "Store.h"
#include "store/Disks.h"
#include "tools.h"
#include "util.h"
#include "wordlist.h"
#include "wccp2.h"
#include "adaptation/Config.h"
#include "adaptation/icap/Config.h"
#include "adaptation/ecap/Config.h"
#include "ssl/Config.h"
#include "ssl/support.h"
#include "snmp.h"
#include <algorithm>
#include <chrono>
#include <limits>
#include <list>
#include "ssl/gadgets.h"
#include "DelayConfig.h"
#include "DelayPools.h"
#include "ClientDelayConfig.h"
#include "cf_parser.cci"
#include "AccessLogEntry.h"
Go to the source code of this file.
Classes | |
class | sslBumpCfgRr |
Functions | |
static void | parse_adaptation_service_set_type () |
static void | parse_adaptation_service_chain_type () |
static void | parse_adaptation_access_type () |
static void | parse_icap_service_type (Adaptation::Icap::Config *) |
static void | dump_icap_service_type (StoreEntry *, const char *, const Adaptation::Icap::Config &) |
static void | free_icap_service_type (Adaptation::Icap::Config *) |
static void | parse_icap_class_type () |
static void | parse_icap_access_type () |
static void | parse_icap_service_failure_limit (Adaptation::Icap::Config *) |
static void | dump_icap_service_failure_limit (StoreEntry *, const char *, const Adaptation::Icap::Config &) |
static void | free_icap_service_failure_limit (Adaptation::Icap::Config *) |
static void | parse_ecap_service_type (Adaptation::Ecap::Config *) |
static void | dump_ecap_service_type (StoreEntry *, const char *, const Adaptation::Ecap::Config &) |
static void | free_ecap_service_type (Adaptation::Ecap::Config *) |
static peer_t | parseNeighborType (const char *s) |
static void | parse_cache_log_message (DebugMessages **messages) |
static void | dump_cache_log_message (StoreEntry *entry, const char *name, const DebugMessages *messages) |
static void | free_cache_log_message (DebugMessages **messages) |
static void | parse_access_log (CustomLog **customlog_definitions) |
static int | check_null_access_log (CustomLog *customlog_definitions) |
static void | dump_access_log (StoreEntry *entry, const char *name, CustomLog *definitions) |
static void | free_access_log (CustomLog **definitions) |
static void | configDoConfigure (void) |
static void | parse_refreshpattern (RefreshPattern **) |
static void | parse_u_short (unsigned short *var) |
static void | parse_string (char **) |
static void | default_all (void) |
static void | defaults_if_none (void) |
static void | defaults_postscriptum (void) |
static int | parse_line (char *) |
static void | parse_obsolete (const char *) |
static void | parseBytesLine (size_t *bptr, const char *units) |
static void | parseBytesLineSigned (ssize_t *bptr, const char *units) |
static size_t | parseBytesUnits (const char *unit) |
static void | free_all (void) |
void | requirePathnameExists (const char *name, const char *path) |
static void | free_HeaderManglers (HeaderManglers **pm) |
static void | dump_http_header_access (StoreEntry *entry, const char *name, const HeaderManglers *manglers) |
static void | parse_http_header_access (HeaderManglers **manglers) |
static void | dump_http_header_replace (StoreEntry *entry, const char *name, const HeaderManglers *manglers) |
static void | parse_http_header_replace (HeaderManglers **manglers) |
static void | dump_HeaderWithAclList (StoreEntry *entry, const char *name, HeaderWithAclList *headers) |
static void | parse_HeaderWithAclList (HeaderWithAclList **header) |
static void | free_HeaderWithAclList (HeaderWithAclList **header) |
static void | parse_note (Notes *) |
static void | dump_note (StoreEntry *, const char *, Notes &) |
static void | free_note (Notes *) |
static void | parse_denyinfo (AclDenyInfoList **var) |
static void | dump_denyinfo (StoreEntry *entry, const char *name, AclDenyInfoList *var) |
static void | free_denyinfo (AclDenyInfoList **var) |
static void | parse_IpAddress_list (Ip::Address_list **) |
static void | dump_IpAddress_list (StoreEntry *, const char *, const Ip::Address_list *) |
static void | free_IpAddress_list (Ip::Address_list **) |
static void | parsePortCfg (AnyP::PortCfgPointer *, const char *protocol) |
static void | dump_PortCfg (StoreEntry *, const char *, const AnyP::PortCfgPointer &) |
static void | parse_sslproxy_cert_sign (sslproxy_cert_sign **cert_sign) |
static void | dump_sslproxy_cert_sign (StoreEntry *entry, const char *name, sslproxy_cert_sign *cert_sign) |
static void | free_sslproxy_cert_sign (sslproxy_cert_sign **cert_sign) |
static void | parse_sslproxy_cert_adapt (sslproxy_cert_adapt **cert_adapt) |
static void | dump_sslproxy_cert_adapt (StoreEntry *entry, const char *name, sslproxy_cert_adapt *cert_adapt) |
static void | free_sslproxy_cert_adapt (sslproxy_cert_adapt **cert_adapt) |
static void | parse_sslproxy_ssl_bump (acl_access **ssl_bump) |
static void | dump_sslproxy_ssl_bump (StoreEntry *entry, const char *name, acl_access *ssl_bump) |
static void | free_sslproxy_ssl_bump (acl_access **ssl_bump) |
static void | parse_ftp_epsv (acl_access **ftp_epsv) |
static void | dump_ftp_epsv (StoreEntry *entry, const char *name, acl_access *ftp_epsv) |
static void | free_ftp_epsv (acl_access **ftp_epsv) |
static void | parse_b_size_t (size_t *var) |
static void | parse_b_int64_t (int64_t *var) |
static void | parse_CpuAffinityMap (CpuAffinityMap **const cpuAffinityMap) |
static void | dump_CpuAffinityMap (StoreEntry *const entry, const char *const name, const CpuAffinityMap *const cpuAffinityMap) |
static void | free_CpuAffinityMap (CpuAffinityMap **const cpuAffinityMap) |
static void | parse_UrlHelperTimeout (SquidConfig::UrlHelperTimeout *) |
static void | dump_UrlHelperTimeout (StoreEntry *, const char *, SquidConfig::UrlHelperTimeout &) |
static void | free_UrlHelperTimeout (SquidConfig::UrlHelperTimeout *) |
static int | parseOneConfigFile (const char *file_name, unsigned int depth) |
static void | parse_configuration_includes_quoted_values (bool *recognizeQuotedValues) |
static void | dump_configuration_includes_quoted_values (StoreEntry *const entry, const char *const name, bool recognizeQuotedValues) |
static void | free_configuration_includes_quoted_values (bool *recognizeQuotedValues) |
static void | parse_on_unsupported_protocol (acl_access **access) |
static void | dump_on_unsupported_protocol (StoreEntry *entry, const char *name, acl_access *access) |
static void | free_on_unsupported_protocol (acl_access **access) |
static void | ParseAclWithAction (acl_access **access, const Acl::Answer &action, const char *desc, Acl::Node *acl=nullptr) |
static void | parse_http_upgrade_request_protocols (HttpUpgradeProtocolAccess **protoGuards) |
static void | dump_http_upgrade_request_protocols (StoreEntry *entry, const char *name, HttpUpgradeProtocolAccess *protoGuards) |
static void | free_http_upgrade_request_protocols (HttpUpgradeProtocolAccess **protoGuards) |
void | self_destruct (void) |
static void | SetConfigFilename (char const *file_name, bool is_pipe) |
static bool | IsSpace (const char ch) |
static const char * | skip_ws (const char *s) |
static int | parseManyConfigFiles (char *files, int depth) |
static void | ReplaceSubstr (char *&str, int &len, unsigned substrIdx, unsigned substrLen, const char *newSubstr) |
static void | SubstituteMacro (char *&line, int &len, const char *macroName, const char *substStr) |
static void | ProcessMacros (char *&line, int &len) |
static void | trim_trailing_ws (char *str) |
static const char * | FindStatement (const char *line, const char *statement) |
static bool | StrToInt (const char *str, long &number) |
static bool | EvalBoolExpr (const char *expr) |
template<typename T > | |
static bool | SawDirective (const T &raw) |
whether we have seen (and, hence, configured) the given directive More... | |
template<typename T > | |
static void | ParseDirective (T &raw, ConfigParser &parser) |
template<typename T > | |
static void | DumpDirective (const T &raw, StoreEntry *entry, const char *name) |
template<typename T > | |
static void | FreeDirective (T &raw) |
frees any resources associated with the given raw SquidConfig data member More... | |
template<class MinimalUnit > | |
static const char * | TimeUnitToString () |
template<class MinimalUnit > | |
static bool | parseTimeUnit (const char *unitName, std::chrono::nanoseconds &ns) |
static std::chrono::nanoseconds | ToNanoSeconds (const double value, const std::chrono::nanoseconds &unit) |
template<class TimeUnit > | |
static TimeUnit | FromNanoseconds (const std::chrono::nanoseconds &ns, const double parsedValue) |
template<class TimeUnit > | |
static TimeUnit | parseTimeLine () |
static void | parseBytesLine64 (int64_t *bptr, const char *units) |
void | parseBytesOptionValue (size_t *bptr, const char *units, char const *value) |
Parse bytes number from a string. More... | |
static void | parse_SBufList (SBufList *list) |
static void | dump_SBufList (StoreEntry *entry, const SBufList &words) |
static void | dump_SBufList (StoreEntry *entry, const char *name, SBufList &list) |
static void | free_SBufList (SBufList *list) |
static void | dump_acl (StoreEntry *entry, const char *directiveName, Acl::NamedAcls *config) |
static void | parse_acl (Acl::NamedAcls **config) |
static void | free_acl (Acl::NamedAcls **config) |
void | dump_acl_list (StoreEntry *entry, ACLList *head) |
void | dump_acl_access (StoreEntry *entry, const char *name, acl_access *head) |
static void | parse_acl_access (acl_access **head) |
static void | free_acl_access (acl_access **head) |
static void | dump_address (StoreEntry *entry, const char *name, Ip::Address &addr) |
static void | parse_address (Ip::Address *addr) |
static void | free_address (Ip::Address *addr) |
static void | dump_acl_address (StoreEntry *entry, const char *name, Acl::Address *head) |
static void | parse_acl_address (Acl::Address **head) |
static void | free_acl_address (Acl::Address **head) |
static void | dump_acl_tos (StoreEntry *entry, const char *name, acl_tos *head) |
static void | parse_acl_tos (acl_tos **head) |
static void | free_acl_tos (acl_tos **head) |
static void | dump_acl_b_size_t (StoreEntry *entry, const char *name, AclSizeLimit *head) |
static void | parse_acl_b_size_t (AclSizeLimit **head) |
static void | free_acl_b_size_t (AclSizeLimit **head) |
static void | free_delay_pool_count (DelayConfig *cfg) |
static void | dump_delay_pool_count (StoreEntry *entry, const char *name, DelayConfig &cfg) |
static void | parse_delay_pool_count (DelayConfig *cfg) |
static void | parse_delay_pool_class (DelayConfig *cfg) |
static void | parse_delay_pool_rates (DelayConfig *cfg) |
static void | parse_delay_pool_access (DelayConfig *cfg) |
static void | free_client_delay_pool_count (ClientDelayConfig *cfg) |
static void | dump_client_delay_pool_count (StoreEntry *entry, const char *name, ClientDelayConfig &cfg) |
static void | parse_client_delay_pool_count (ClientDelayConfig *cfg) |
static void | parse_client_delay_pool_rates (ClientDelayConfig *cfg) |
static void | parse_client_delay_pool_access (ClientDelayConfig *cfg) |
static void | dump_cachedir (StoreEntry *entry, const char *name, const Store::DiskConfig &swap) |
static int | check_null_string (char *s) |
static void | parse_authparam (Auth::ConfigVector *config) |
static void | free_authparam (Auth::ConfigVector *cfg) |
static void | dump_authparam (StoreEntry *entry, const char *name, Auth::ConfigVector cfg) |
static void | parse_AuthSchemes (acl_access **authSchemes) |
static void | free_AuthSchemes (acl_access **authSchemes) |
static void | dump_AuthSchemes (StoreEntry *entry, const char *name, acl_access *authSchemes) |
static void | parse_cachedir (Store::DiskConfig *swap) |
static const char * | peer_type_str (const peer_t type) |
static void | dump_peer (StoreEntry *entry, const char *name, const CachePeers *peers) |
static bool | isUnsignedNumeric (const char *str, size_t len) |
static unsigned short | GetService (const char *proto) |
unsigned short | GetTcpService (void) |
unsigned short | GetUdpService (void) |
static void | parse_peer (CachePeers **peers) |
static void | free_peer (CachePeers **const peers) |
static void | dump_cachemgrpasswd (StoreEntry *entry, const char *name, Mgr::ActionPasswordList *list) |
static void | parse_cachemgrpasswd (Mgr::ActionPasswordList **head) |
static void | free_cachemgrpasswd (Mgr::ActionPasswordList **head) |
static void | parse_peer_access (void) |
static void | parse_hostdomaintype (void) |
static void | dump_int (StoreEntry *entry, const char *name, int var) |
void | parse_int (int *var) |
static void | free_int (int *var) |
static void | dump_int64_t (StoreEntry *entry, const char *name, int64_t var) |
static void | parse_int64_t (int64_t *var) |
static void | free_int64_t (int64_t *var) |
static void | dump_onoff (StoreEntry *entry, const char *name, int var) |
void | parse_onoff (int *var) |
static void | dump_tristate (StoreEntry *entry, const char *name, int var) |
static void | parse_tristate (int *var) |
static void | parse_pipelinePrefetch (int *var) |
static void | dump_refreshpattern (StoreEntry *entry, const char *name, RefreshPattern *head) |
static void | free_refreshpattern (RefreshPattern **head) |
static void | dump_string (StoreEntry *entry, const char *name, char *var) |
static void | free_string (char **var) |
void | parse_eol (char *volatile *var) |
static void | parse_TokenOrQuotedString (char **var) |
static void | dump_time_t (StoreEntry *entry, const char *name, time_t var) |
void | parse_time_t (time_t *var) |
static void | free_time_t (time_t *var) |
static void | dump_time_msec (StoreEntry *entry, const char *name, time_msec_t var) |
static void | parse_time_msec (time_msec_t *var) |
static void | free_time_msec (time_msec_t *var) |
static void | dump_time_nanoseconds (StoreEntry *entry, const char *name, const std::chrono::nanoseconds &var) |
static void | parse_time_nanoseconds (std::chrono::nanoseconds *var) |
static void | free_time_nanoseconds (std::chrono::nanoseconds *var) |
static void | dump_b_size_t (StoreEntry *entry, const char *name, size_t var) |
static void | dump_b_ssize_t (StoreEntry *entry, const char *name, ssize_t var) |
static void | dump_b_int64_t (StoreEntry *entry, const char *name, int64_t var) |
static void | dump_kb_int64_t (StoreEntry *entry, const char *name, int64_t var) |
static void | parse_b_ssize_t (ssize_t *var) |
static void | parse_kb_int64_t (int64_t *var) |
static void | free_size_t (size_t *var) |
static void | free_ssize_t (ssize_t *var) |
static void | free_b_int64_t (int64_t *var) |
static void | dump_u_short (StoreEntry *entry, const char *name, unsigned short var) |
static void | free_u_short (unsigned short *u) |
static void | dump_wordlist (StoreEntry *entry, const char *name, wordlist *list) |
void | parse_wordlist (wordlist **list) |
static int | check_null_acl_access (acl_access *a) |
static void | parse_uri_whitespace (int *var) |
static void | dump_uri_whitespace (StoreEntry *entry, const char *name, int var) |
static void | free_removalpolicy (RemovalPolicySettings **settings) |
static void | parse_removalpolicy (RemovalPolicySettings **settings) |
static void | dump_removalpolicy (StoreEntry *entry, const char *name, RemovalPolicySettings *settings) |
void | free_YesNoNone (YesNoNone *) |
static void | parse_YesNoNone (YesNoNone *option) |
static void | dump_YesNoNone (StoreEntry *entry, const char *name, YesNoNone &option) |
static void | free_memcachemode (SquidConfig *) |
static void | parse_memcachemode (SquidConfig *) |
static void | dump_memcachemode (StoreEntry *entry, const char *name, SquidConfig &) |
static void | parsePortSpecification (const AnyP::PortCfgPointer &s, char *token) |
static AnyP::ProtocolVersion | parsePortProtocol (const SBuf &value) |
static void | parse_port_option (AnyP::PortCfgPointer &s, char *token) |
void | add_http_port (char *portspec) |
static void | dump_generic_port (StoreEntry *e, const char *n, const AnyP::PortCfgPointer &s) |
void | configFreeMemory (void) |
DefineRunnerRegistrator (sslBumpCfgRr) | |
static DebugMessageId | ParseDebugMessageId (const char *value, const char eov) |
static std::chrono::seconds | ParseUrlRewriteTimeout () |
Variables | |
static const char *const | T_NANOSECOND_STR = "nanosecond" |
static const char *const | T_MICROSECOND_STR = "microsecond" |
static const char *const | T_MILLISECOND_STR = "millisecond" |
static const char *const | T_SECOND_STR = "second" |
static const char *const | T_MINUTE_STR = "minute" |
static const char *const | T_HOUR_STR = "hour" |
static const char *const | T_DAY_STR = "day" |
static const char *const | T_WEEK_STR = "week" |
static const char *const | T_FORTNIGHT_STR = "fortnight" |
static const char *const | T_MONTH_STR = "month" |
static const char *const | T_YEAR_STR = "year" |
static const char *const | T_DECADE_STR = "decade" |
static const char *const | B_BYTES_STR = "bytes" |
static const char *const | B_KBYTES_STR = "KB" |
static const char *const | B_MBYTES_STR = "MB" |
static const char *const | B_GBYTES_STR = "GB" |
static const double | HoursPerYear = 24*365.2522 |
static OBJH | dump_config |
static ConfigParser | LegacyParser = ConfigParser() |
const char * | cfg_directive = nullptr |
During parsing, the name of the current squid.conf directive being parsed. More... | |
const char * | cfg_filename = nullptr |
int | config_lineno = 0 |
char | config_input_line [BUFSIZ] = {} |
static bool | FtpEspvDeprecated = false |
Macro Definition Documentation
◆ dump_client_delay_pool_access
#define dump_client_delay_pool_access | ( | X, | |
Y, | |||
Z | |||
) |
Definition at line 1805 of file cache_cf.cc.
◆ dump_client_delay_pool_rates
#define dump_client_delay_pool_rates | ( | X, | |
Y, | |||
Z | |||
) |
Definition at line 1806 of file cache_cf.cc.
◆ dump_delay_pool_access
#define dump_delay_pool_access | ( | X, | |
Y, | |||
Z | |||
) |
Definition at line 1756 of file cache_cf.cc.
◆ dump_delay_pool_class
#define dump_delay_pool_class | ( | X, | |
Y, | |||
Z | |||
) |
Definition at line 1755 of file cache_cf.cc.
◆ dump_delay_pool_rates
#define dump_delay_pool_rates | ( | X, | |
Y, | |||
Z | |||
) |
Definition at line 1757 of file cache_cf.cc.
◆ dump_eol
#define dump_eol dump_string |
Definition at line 2923 of file cache_cf.cc.
◆ dump_pipelinePrefetch
#define dump_pipelinePrefetch dump_int |
Definition at line 2673 of file cache_cf.cc.
◆ dump_TokenOrQuotedString
#define dump_TokenOrQuotedString dump_string |
Definition at line 2940 of file cache_cf.cc.
◆ free_b_size_t
#define free_b_size_t free_size_t |
Definition at line 3073 of file cache_cf.cc.
◆ free_b_ssize_t
#define free_b_ssize_t free_ssize_t |
Definition at line 3074 of file cache_cf.cc.
◆ free_client_delay_pool_access
#define free_client_delay_pool_access | ( | X | ) |
Definition at line 1803 of file cache_cf.cc.
◆ free_client_delay_pool_rates
#define free_client_delay_pool_rates | ( | X | ) |
Definition at line 1804 of file cache_cf.cc.
◆ free_delay_pool_access
#define free_delay_pool_access | ( | X | ) |
Definition at line 1753 of file cache_cf.cc.
◆ free_delay_pool_class
#define free_delay_pool_class | ( | X | ) |
Definition at line 1752 of file cache_cf.cc.
◆ free_delay_pool_rates
#define free_delay_pool_rates | ( | X | ) |
Definition at line 1754 of file cache_cf.cc.
◆ free_eol
#define free_eol free_string |
Definition at line 2924 of file cache_cf.cc.
◆ free_gb_size_t
#define free_gb_size_t free_size_t |
Definition at line 3077 of file cache_cf.cc.
◆ free_http_header_access
#define free_http_header_access free_HeaderManglers |
Definition at line 192 of file cache_cf.cc.
◆ free_http_header_replace
#define free_http_header_replace free_HeaderManglers |
Definition at line 195 of file cache_cf.cc.
◆ free_kb_int64_t
#define free_kb_int64_t free_b_int64_t |
Definition at line 3078 of file cache_cf.cc.
◆ free_kb_size_t
#define free_kb_size_t free_size_t |
Definition at line 3075 of file cache_cf.cc.
◆ free_mb_size_t
#define free_mb_size_t free_size_t |
Definition at line 3076 of file cache_cf.cc.
◆ free_onoff
#define free_onoff free_int |
Definition at line 2603 of file cache_cf.cc.
◆ free_pipelinePrefetch
#define free_pipelinePrefetch free_int |
Definition at line 2672 of file cache_cf.cc.
◆ free_PortCfg
#define free_PortCfg | ( | h | ) | *(h)=NULL |
Definition at line 219 of file cache_cf.cc.
◆ free_TokenOrQuotedString
#define free_TokenOrQuotedString free_string |
Definition at line 2941 of file cache_cf.cc.
◆ free_tristate
#define free_tristate free_int |
Definition at line 2647 of file cache_cf.cc.
◆ free_uri_whitespace
#define free_uri_whitespace free_int |
Definition at line 3148 of file cache_cf.cc.
◆ free_wordlist
#define free_wordlist wordlistDestroy |
Definition at line 3146 of file cache_cf.cc.
◆ parse_PortCfg
#define parse_PortCfg | ( | l | ) | parsePortCfg((l), token) |
Definition at line 217 of file cache_cf.cc.
Function Documentation
◆ add_http_port()
void add_http_port | ( | char * | portspec | ) |
Definition at line 3709 of file cache_cf.cc.
References assert, HttpPortList, parsePortProtocol(), and parsePortSpecification().
Referenced by mainHandleCommandLineOption().
◆ check_null_access_log()
Definition at line 4021 of file cache_cf.cc.
◆ check_null_acl_access()
|
static |
Definition at line 3141 of file cache_cf.cc.
◆ check_null_string()
|
static |
Definition at line 1914 of file cache_cf.cc.
◆ configDoConfigure()
|
static |
Definition at line 712 of file cache_cf.cc.
References SquidConfig::Accel, SquidConfig::accesslogs, Auth::SchemeConfig::active(), APP_FULLNAME, SquidConfig::appendDomain, SquidConfig::appendDomainLen, appname_string, SquidConfig2::clear(), SquidConfig::client_pconns, SBuf::cmp(), Config, Config2, SquidConfig::connect_retries, Security::PeerOptions::createClientContext(), CurrentCachePeers(), DBG_CRITICAL, DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, SquidConfig::defaultPeerContext, SquidConfig::directory, SquidConfig::effectiveGroup, SquidConfig2::effectiveGroupID, SquidConfig::effectiveUser, SquidConfig2::effectiveUserID, SquidConfig2::enable_purge, SquidConfig::errHtmlText, SquidConfig::errorDirectory, fatal(), fatalf(), Auth::SchemeConfig::Find(), RefreshPattern::flags, SquidConfig::foreignIntermediateCertsPath, getMyHostname(), SquidConfig::httpd_suppress_version_string, HttpPortList, SquidConfig::icaplogs, SquidConfig::icons, RefreshPattern::ignore_no_store, RefreshPattern::ignore_private, RefreshPattern::ignore_reload, SBuf::isEmpty(), wordlist::key, Ssl::loadSquidUntrusted(), log(), SquidConfig::Log, SquidConfig::max_filedescriptors, SquidConfig::maxObjectSize, SquidConfig::maxReplyHeaderSize, SquidConfig::maxRequestBufferSize, SquidConfig::maxRequestHeaderSize, memConfigure(), SquidConfig::mimeTablePathname, Helper::ChildConfig::n_max, RefreshPattern::next, null_string, SquidConfig::onoff, SquidConfig2::onoff, RefreshPattern::override_expire, RefreshPattern::override_lastmod, SquidConfig::pipeline_max_prefetch, SquidConfig::Program, Security::ProxyOutgoingConfig(), SquidConfig::redirect, SquidConfig::redirectChildren, SquidConfig::Refresh, RefreshPattern::reload_into_ims, requirePathnameExists(), Debug::rotateNumber, SquidConfig::rotateNumber, self_destruct(), String::SizeMaxXXX(), SQUID_UDP_SO_SNDBUF, SquidConfig::ssl_client, SquidConfig::sslContext_, SquidConfig::Store, SquidConfig::store_id, storeConfigure(), SquidConfig::storeIdChildren, SquidConfig::surrogate_id, Auth::TheConfig, Log::TheConfig, ACLMethodData::ThePurgeCount, ThisCache, ThisCache2, SquidConfig::udpMaxHitObjsz, uniqueHostname(), SquidConfig::unlinkd, Ssl::useSquidUntrusted(), SquidConfig::via, visible_appname_string, wordlistDestroy(), xcalloc(), and xstrdup.
Referenced by Configuration::Parse().
◆ configFreeMemory()
void configFreeMemory | ( | void | ) |
Definition at line 3911 of file cache_cf.cc.
References Config, SquidConfig::defaultPeerContext, free_all(), Dns::ResolveClientAddressesAsap, SquidConfig::ssl_client, SquidConfig::sslContext_, and Ssl::unloadSquidUntrusted().
Referenced by Configuration::Parse().
◆ default_all()
|
static |
Referenced by Configuration::Parse().
◆ defaults_if_none()
|
static |
Referenced by Configuration::Parse().
◆ defaults_postscriptum()
|
static |
Referenced by Configuration::Parse().
◆ DefineRunnerRegistrator()
DefineRunnerRegistrator | ( | sslBumpCfgRr | ) |
◆ dump_access_log()
|
static |
Definition at line 4027 of file cache_cf.cc.
References assert, dump_acl_list(), log(), and storeAppendPrintf().
◆ dump_acl()
|
static |
Definition at line 1482 of file cache_cf.cc.
References Acl::DumpNamedAcls().
◆ dump_acl_address()
|
static |
Definition at line 1566 of file cache_cf.cc.
References dump_acl_list(), head, MAX_IPSTRLEN, squidaio_request_t::next, and storeAppendPrintf().
◆ dump_acl_b_size_t()
|
static |
Definition at line 1708 of file cache_cf.cc.
References acl_nfmark::aclList, B_BYTES_STR, dump_acl_list(), head, acl_nfmark::next, and storeAppendPrintf().
◆ dump_acl_tos()
|
static |
Definition at line 1604 of file cache_cf.cc.
References acl_tos::aclList, dump_acl_list(), head, acl_tos::next, storeAppendPrintf(), and acl_tos::tos.
◆ dump_address()
|
static |
Definition at line 1529 of file cache_cf.cc.
References MAX_IPSTRLEN, storeAppendPrintf(), and Ip::Address::toStr().
◆ dump_authparam()
|
static |
Definition at line 1973 of file cache_cf.cc.
◆ dump_AuthSchemes()
|
static |
Definition at line 2001 of file cache_cf.cc.
References dump_SBufList(), Acl::Answer::kind, Auth::Config::schemeLists, Auth::TheConfig, and Acl::ToTree().
◆ dump_b_int64_t()
|
static |
Definition at line 3020 of file cache_cf.cc.
References B_BYTES_STR, PRId64, and storeAppendPrintf().
◆ dump_b_size_t()
|
static |
Definition at line 3008 of file cache_cf.cc.
References B_BYTES_STR, and storeAppendPrintf().
◆ dump_b_ssize_t()
|
static |
Definition at line 3014 of file cache_cf.cc.
References B_BYTES_STR, and storeAppendPrintf().
◆ dump_cache_log_message()
|
static |
Definition at line 4645 of file cache_cf.cc.
References StoreEntry::append(), SBufStream::buf(), and DebugMessages::messages.
◆ dump_cachedir()
|
static |
Definition at line 1908 of file cache_cf.cc.
References Store::Disks::Dump().
◆ dump_cachemgrpasswd()
|
static |
Definition at line 2414 of file cache_cf.cc.
References Mgr::ActionPasswordList::actions, Packable::appendf(), Mgr::ActionPasswordList::next, Mgr::ActionPasswordList::passwd, SQUIDSBUFPH, SQUIDSBUFPRINT, and storeAppendPrintf().
◆ dump_client_delay_pool_count()
|
static |
Definition at line 1815 of file cache_cf.cc.
References ClientDelayConfig::dumpPoolCount().
◆ dump_configuration_includes_quoted_values()
|
static |
Definition at line 4854 of file cache_cf.cc.
References dump_onoff(), and ConfigParser::RecognizeQuotedValues.
◆ dump_CpuAffinityMap()
|
static |
Definition at line 4112 of file cache_cf.cc.
References CpuAffinityMap::cores(), CpuAffinityMap::processes(), size, and storeAppendPrintf().
◆ dump_delay_pool_count()
|
static |
Definition at line 1766 of file cache_cf.cc.
References DelayConfig::dumpPoolCount().
◆ dump_denyinfo()
|
static |
Definition at line 2473 of file cache_cf.cc.
References AclDenyInfoList::acl_list, AclDenyInfoList::err_page_name, AclDenyInfoList::next, SQUIDSBUFPH, SQUIDSBUFPRINT, and storeAppendPrintf().
◆ dump_ecap_service_type()
|
static |
Definition at line 4210 of file cache_cf.cc.
References Adaptation::Config::dumpService().
◆ dump_ftp_epsv()
|
static |
Definition at line 4726 of file cache_cf.cc.
References Acl::AllowOrDeny(), dump_SBufList(), and Acl::ToTree().
◆ dump_generic_port()
|
static |
Definition at line 3811 of file cache_cf.cc.
References DISABLE_PMTU_ALWAYS, DISABLE_PMTU_OFF, MAX_IPSTRLEN, AnyP::PROTO_HTTP, AnyP::ProtocolType_str, and storeAppendPrintf().
Referenced by dump_PortCfg().
◆ dump_HeaderWithAclList()
|
static |
Definition at line 4497 of file cache_cf.cc.
References dump_acl_list(), and storeAppendPrintf().
◆ dump_http_header_access()
|
static |
Definition at line 1841 of file cache_cf.cc.
References HeaderManglers::dumpAccess().
◆ dump_http_header_replace()
|
static |
Definition at line 1880 of file cache_cf.cc.
References HeaderManglers::dumpReplacement().
◆ dump_http_upgrade_request_protocols()
|
static |
Definition at line 4924 of file cache_cf.cc.
References Acl::AllowOrDeny(), dump_SBufList(), HttpUpgradeProtocolAccess::forEach(), Acl::ToTree(), and Acl::Tree::treeDump().
◆ dump_icap_service_failure_limit()
|
static |
Definition at line 4235 of file cache_cf.cc.
References Adaptation::Config::oldest_service_failure, Adaptation::Config::service_failure_limit, and storeAppendPrintf().
◆ dump_icap_service_type()
|
static |
Definition at line 4172 of file cache_cf.cc.
References Adaptation::Config::dumpService().
◆ dump_int()
|
static |
Definition at line 2533 of file cache_cf.cc.
References storeAppendPrintf().
◆ dump_int64_t()
|
static |
Definition at line 2553 of file cache_cf.cc.
References PRId64, and storeAppendPrintf().
◆ dump_IpAddress_list()
|
static |
Definition at line 3353 of file cache_cf.cc.
References MAX_IPSTRLEN, Ip::Address_list::next, Ip::Address_list::s, storeAppendPrintf(), and Ip::Address::toStr().
◆ dump_kb_int64_t()
|
static |
Definition at line 3026 of file cache_cf.cc.
References B_KBYTES_STR, PRId64, and storeAppendPrintf().
◆ dump_memcachemode()
|
static |
Definition at line 3288 of file cache_cf.cc.
References Config, SquidConfig::memory_cache_disk, SquidConfig::memory_cache_first, SquidConfig::onoff, and storeAppendPrintf().
◆ dump_note()
|
static |
Definition at line 4568 of file cache_cf.cc.
References Notes::printAsNoteDirectives().
◆ dump_on_unsupported_protocol()
|
static |
Definition at line 4892 of file cache_cf.cc.
References dump_SBufList(), Acl::Answer::kind, Acl::ToTree(), and Acl::Tree::treeDump().
◆ dump_onoff()
|
static |
Definition at line 2573 of file cache_cf.cc.
References storeAppendPrintf().
Referenced by dump_configuration_includes_quoted_values(), and dump_YesNoNone().
◆ dump_peer()
|
static |
Definition at line 2067 of file cache_cf.cc.
References NeighborTypeDomainList::domain, dump_acl_access(), dump_peer_options(), LOCAL_ARRAY, neighborTypeStr(), NeighborTypeDomainList::next, peer_type_str(), storeAppendPrintf(), and NeighborTypeDomainList::type.
◆ dump_PortCfg()
|
static |
Definition at line 3902 of file cache_cf.cc.
References dump_generic_port(), and storeAppendPrintf().
◆ dump_refreshpattern()
|
static |
Definition at line 2676 of file cache_cf.cc.
References head, squidaio_request_t::next, and storeAppendPrintf().
◆ dump_removalpolicy()
|
static |
Definition at line 3223 of file cache_cf.cc.
References RemovalPolicySettings::args, wordlist::key, wordlist::next, storeAppendPrintf(), and RemovalPolicySettings::type.
◆ dump_SBufList() [1/2]
|
static |
Definition at line 1465 of file cache_cf.cc.
References StoreEntry::append(), and dump_SBufList().
◆ dump_SBufList() [2/2]
|
static |
Definition at line 1454 of file cache_cf.cc.
References StoreEntry::append().
Referenced by dump_acl_access(), dump_acl_list(), dump_AuthSchemes(), dump_ftp_epsv(), dump_http_upgrade_request_protocols(), dump_on_unsupported_protocol(), dump_SBufList(), and dump_sslproxy_ssl_bump().
◆ dump_sslproxy_cert_adapt()
|
static |
Definition at line 4305 of file cache_cf.cc.
References dump_acl_list(), sslproxy_cert_adapt::next, Ssl::sslCertAdaptAlgoritm(), and storeAppendPrintf().
◆ dump_sslproxy_cert_sign()
|
static |
Definition at line 4351 of file cache_cf.cc.
References Ssl::certSignAlgorithm(), dump_acl_list(), sslproxy_cert_sign::next, and storeAppendPrintf().
◆ dump_sslproxy_ssl_bump()
|
static |
Definition at line 4482 of file cache_cf.cc.
References Ssl::BumpModeStr, dump_SBufList(), Acl::Answer::kind, and Acl::ToTree().
◆ dump_string()
|
static |
Definition at line 2870 of file cache_cf.cc.
References storeAppendPrintf().
◆ dump_time_msec()
|
static |
Definition at line 2967 of file cache_cf.cc.
◆ dump_time_nanoseconds()
|
static |
Definition at line 2989 of file cache_cf.cc.
References storeAppendPrintf().
◆ dump_time_t()
|
static |
Definition at line 2944 of file cache_cf.cc.
Referenced by dump_UrlHelperTimeout().
◆ dump_tristate()
|
static |
Definition at line 2606 of file cache_cf.cc.
References storeAppendPrintf().
◆ dump_u_short()
|
static |
Definition at line 3081 of file cache_cf.cc.
References storeAppendPrintf().
◆ dump_uri_whitespace()
|
static |
Definition at line 3176 of file cache_cf.cc.
References storeAppendPrintf(), URI_WHITESPACE_ALLOW, URI_WHITESPACE_CHOP, URI_WHITESPACE_DENY, and URI_WHITESPACE_ENCODE.
◆ dump_UrlHelperTimeout()
|
static |
Definition at line 4815 of file cache_cf.cc.
References SquidConfig::UrlHelperTimeout::action, assert, Config, dump_time_t(), SquidConfig::UrlHelperTimeout::response, storeAppendPrintf(), SquidConfig::Timeout, toutActUseConfiguredResponse, and SquidConfig::urlRewrite.
◆ dump_wordlist()
|
static |
Definition at line 3118 of file cache_cf.cc.
References wordlist::key, wordlist::next, and storeAppendPrintf().
◆ dump_YesNoNone()
|
static |
Definition at line 3250 of file cache_cf.cc.
References YesNoNone::configured(), and dump_onoff().
◆ DumpDirective()
|
static |
reports raw SquidConfig data member configuration using squid.conf syntax
- Parameters
-
name the name of the configuration directive being dumped
Definition at line 679 of file cache_cf.cc.
References StoreEntry::append(), SBufStream::buf(), BodyPipeCheckout::buf, Configuration::Component< T >::Print(), and SawDirective().
◆ EvalBoolExpr()
|
static |
Definition at line 418 of file cache_cf.cc.
References assert, fatalf(), skip_ws(), StrToInt(), trim_trailing_ws(), xfree, xmalloc, and xstrncpy().
Referenced by parseOneConfigFile().
◆ FindStatement()
|
static |
Definition at line 388 of file cache_cf.cc.
References assert, IsSpace(), and skip_ws().
Referenced by parseOneConfigFile().
◆ free_access_log()
|
static |
Definition at line 4046 of file cache_cf.cc.
References log().
◆ free_acl()
|
static |
Definition at line 1496 of file cache_cf.cc.
References Acl::FreeNamedAcls().
◆ free_acl_access()
|
static |
Definition at line 1523 of file cache_cf.cc.
References aclDestroyAccessList(), and head.
Referenced by free_AuthSchemes(), free_ftp_epsv(), free_on_unsupported_protocol(), and free_sslproxy_ssl_bump().
◆ free_acl_address()
|
static |
Definition at line 1597 of file cache_cf.cc.
References head.
◆ free_acl_b_size_t()
|
static |
Definition at line 1739 of file cache_cf.cc.
References head.
◆ free_acl_tos()
|
static |
Definition at line 1656 of file cache_cf.cc.
References head.
◆ free_address()
|
static |
Definition at line 1560 of file cache_cf.cc.
References Ip::Address::setEmpty().
◆ free_all()
|
static |
Referenced by configFreeMemory().
◆ free_authparam()
|
static |
Definition at line 1961 of file cache_cf.cc.
References Auth::Init(), and reconfiguring.
◆ free_AuthSchemes()
|
static |
Definition at line 1994 of file cache_cf.cc.
References free_acl_access(), Auth::Config::schemeLists, and Auth::TheConfig.
◆ free_b_int64_t()
|
static |
Definition at line 3068 of file cache_cf.cc.
◆ free_cache_log_message()
|
static |
Definition at line 4665 of file cache_cf.cc.
References assert.
◆ free_cachemgrpasswd()
|
static |
Definition at line 2466 of file cache_cf.cc.
References head.
◆ free_client_delay_pool_count()
|
static |
Definition at line 1809 of file cache_cf.cc.
References ClientDelayConfig::freePools().
◆ free_configuration_includes_quoted_values()
|
static |
Definition at line 4861 of file cache_cf.cc.
References ConfigParser::RecognizeQuotedValues, and ConfigParser::StrictMode.
◆ free_CpuAffinityMap()
|
static |
Definition at line 4130 of file cache_cf.cc.
◆ free_delay_pool_count()
|
static |
Definition at line 1760 of file cache_cf.cc.
References DelayConfig::freePoolCount().
◆ free_denyinfo()
|
static |
Definition at line 2494 of file cache_cf.cc.
◆ free_ecap_service_type()
|
static |
Definition at line 4204 of file cache_cf.cc.
References Adaptation::Config::freeService().
◆ free_ftp_epsv()
|
static |
Definition at line 4732 of file cache_cf.cc.
References free_acl_access(), and FtpEspvDeprecated.
◆ free_HeaderManglers()
|
static |
Definition at line 1870 of file cache_cf.cc.
◆ free_HeaderWithAclList()
|
static |
Definition at line 4544 of file cache_cf.cc.
References aclDestroyAclList().
◆ free_http_upgrade_request_protocols()
|
static |
Definition at line 4941 of file cache_cf.cc.
References assert.
◆ free_icap_service_failure_limit()
|
static |
Definition at line 4244 of file cache_cf.cc.
References Adaptation::Config::oldest_service_failure, and Adaptation::Config::service_failure_limit.
◆ free_icap_service_type()
|
static |
Definition at line 4166 of file cache_cf.cc.
References Adaptation::Config::freeService().
◆ free_int()
|
static |
Definition at line 2547 of file cache_cf.cc.
◆ free_int64_t()
|
static |
Definition at line 2567 of file cache_cf.cc.
◆ free_IpAddress_list()
|
static |
Definition at line 3366 of file cache_cf.cc.
References head.
◆ free_memcachemode()
|
static |
Definition at line 3257 of file cache_cf.cc.
◆ free_note()
|
static |
Definition at line 4573 of file cache_cf.cc.
References Notes::clean().
◆ free_on_unsupported_protocol()
|
static |
Definition at line 4908 of file cache_cf.cc.
References free_acl_access().
◆ free_peer()
|
static |
Definition at line 2407 of file cache_cf.cc.
◆ free_refreshpattern()
|
static |
Definition at line 2858 of file cache_cf.cc.
References head, and refresh_nocache_hack.
◆ free_removalpolicy()
|
static |
Definition at line 3195 of file cache_cf.cc.
References free_string(), and free_wordlist.
Referenced by parse_removalpolicy().
◆ free_SBufList()
|
static |
Definition at line 1475 of file cache_cf.cc.
◆ free_size_t()
|
static |
Definition at line 3056 of file cache_cf.cc.
◆ free_ssize_t()
|
static |
Definition at line 3062 of file cache_cf.cc.
◆ free_sslproxy_cert_adapt()
|
static |
Definition at line 4316 of file cache_cf.cc.
◆ free_sslproxy_cert_sign()
|
static |
Definition at line 4362 of file cache_cf.cc.
◆ free_sslproxy_ssl_bump()
|
static |
Definition at line 4490 of file cache_cf.cc.
References free_acl_access().
◆ free_string()
|
static |
Definition at line 2891 of file cache_cf.cc.
References safe_free.
Referenced by free_removalpolicy().
◆ free_time_msec()
|
static |
Definition at line 2983 of file cache_cf.cc.
◆ free_time_nanoseconds()
|
static |
Definition at line 3002 of file cache_cf.cc.
◆ free_time_t()
|
static |
Definition at line 2961 of file cache_cf.cc.
◆ free_u_short()
|
static |
Definition at line 3087 of file cache_cf.cc.
◆ free_UrlHelperTimeout()
|
static |
Definition at line 4830 of file cache_cf.cc.
References SquidConfig::UrlHelperTimeout::action, Config, SquidConfig::UrlHelperTimeout::response, safe_free, SquidConfig::Timeout, and SquidConfig::urlRewrite.
◆ free_YesNoNone()
|
inline |
Definition at line 3238 of file cache_cf.cc.
◆ FreeDirective()
|
static |
Definition at line 698 of file cache_cf.cc.
References Configuration::Component< T >::Free().
◆ FromNanoseconds()
|
static |
Definition at line 1198 of file cache_cf.cc.
◆ GetService()
|
static |
- Parameters
-
proto 'tcp' or 'udp' for protocol
- Returns
- Port the named service is supposed to be listening on.
Parses a port number or service name from the squid.conf
Returns either the service port number from /etc/services
Or a numeric translation of the config text.
Definition at line 2121 of file cache_cf.cc.
References isUnsignedNumeric(), ConfigParser::NextToken(), port, self_destruct(), xatos(), and xgetservbyname().
Referenced by GetTcpService(), and GetUdpService().
◆ GetTcpService()
|
inline |
- Returns
- Port the named TCP service is supposed to be listening on.
- Parameters
-
proto 'tcp' or 'udp' for protocol
- Returns
- Port the named service is supposed to be listening on.
Definition at line 2145 of file cache_cf.cc.
References GetService().
Referenced by parse_peer().
◆ GetUdpService()
|
inline |
- Returns
- Port the named UDP service is supposed to be listening on.
- Parameters
-
proto 'tcp' or 'udp' for protocol
- Returns
- Port the named service is supposed to be listening on.
Definition at line 2155 of file cache_cf.cc.
References GetService().
Referenced by parse_peer().
◆ IsSpace()
|
static |
Determines whether the given squid.conf character is a token-delimiting space character according to squid.conf preprocessor grammar. That grammar only recognizes two space characters: ASCII SP and HT. Unlike isspace(3), this function is not sensitive to locale(1) and does not classify LF, VT, FF, and CR characters as token-delimiting space. However, some squid.conf directive-specific parsers still define space based on isspace(3).
Definition at line 296 of file cache_cf.cc.
References CharacterSet::WSP.
Referenced by FindStatement(), parseOneConfigFile(), skip_ws(), and trim_trailing_ws().
◆ isUnsignedNumeric()
|
static |
utility function to prevent getservbyname() being called with a numeric value on Windows at least it returns garage results.
Definition at line 2105 of file cache_cf.cc.
Referenced by GetService().
◆ parse_access_log()
|
static |
We support several access_log configuration styles:
#1: Deprecated ancient style without an explicit logging module: access_log /var/log/access.log
#2: The "none" logging module (i.e., no logging [of matching transactions]): access_log none [acl ...]
#3: Configurable logging module without named options: Logformat or the first ACL name, whichever comes first, may not contain '='. If no explicit logformat name is given, the first ACL name, if any, should not be an existing logformat name or it will be treated as such. access_log module:place [logformat_name] [acl ...]
#4: Configurable logging module with name=value options such as logformat=x: The first ACL name may not contain '='. Without any optional parts, directives using this style are indistinguishable from directives using style #1 until we start requiring the "module:" prefix. access_log module:place [option ...] [acl ...]
Definition at line 3974 of file cache_cf.cc.
References aclParseAclList(), assert, Log::Format::CLF_NONE, LegacyParser, CustomLog::next, ConfigParser::NextToken(), ConfigParser::PeekAtToken(), self_destruct(), Log::TheConfig, and xstrdup.
◆ parse_acl()
|
static |
Definition at line 1489 of file cache_cf.cc.
References assert, LegacyParser, and Acl::Node::ParseNamedAcl().
◆ parse_acl_access()
|
static |
Definition at line 1517 of file cache_cf.cc.
References aclParseAccessLine(), cfg_directive, head, and LegacyParser.
◆ parse_acl_address()
|
static |
Definition at line 1583 of file cache_cf.cc.
References Acl::Address::aclList, aclParseAclList(), Acl::Address::addr, head, LegacyParser, Acl::Address::next, and parse_address().
◆ parse_acl_b_size_t()
|
static |
Definition at line 1723 of file cache_cf.cc.
References AclSizeLimit::aclList, aclParseAclList(), head, LegacyParser, AclSizeLimit::next, parse_b_int64_t(), and AclSizeLimit::size.
◆ parse_acl_tos()
|
static |
Definition at line 1621 of file cache_cf.cc.
References acl_tos::aclList, aclParseAclList(), DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, head, LegacyParser, max(), acl_tos::next, ConfigParser::NextToken(), self_destruct(), acl_tos::tos, and xstrtoui().
◆ parse_adaptation_access_type()
|
static |
Definition at line 4151 of file cache_cf.cc.
References LegacyParser, and Adaptation::Config::ParseAccess().
◆ parse_adaptation_service_chain_type()
|
static |
Definition at line 4145 of file cache_cf.cc.
References Adaptation::Config::ParseServiceChain().
◆ parse_adaptation_service_set_type()
|
static |
Definition at line 4139 of file cache_cf.cc.
References Adaptation::Config::ParseServiceSet().
◆ parse_address()
|
static |
Definition at line 1536 of file cache_cf.cc.
References DBG_CRITICAL, debugs, Ip::Address::GetHostByName(), ConfigParser::NextToken(), self_destruct(), Ip::Address::setAnyAddr(), and Ip::Address::setNoAddr().
Referenced by parse_acl_address().
◆ parse_authparam()
|
static |
Definition at line 1921 of file cache_cf.cc.
References DBG_CRITICAL, debugs, Auth::SchemeConfig::Find(), Auth::Scheme::Find(), ConfigParser::NextToken(), Auth::SchemeConfig::parse(), and self_destruct().
◆ parse_AuthSchemes()
|
static |
Definition at line 1980 of file cache_cf.cc.
References ACCESS_ALLOWED, DBG_CRITICAL, debugs, ConfigParser::LastTokenWasQuoted(), ConfigParser::NextQuotedToken(), ParseAclWithAction(), Auth::Config::schemeLists, self_destruct(), and Auth::TheConfig.
◆ parse_b_int64_t()
|
static |
Definition at line 3044 of file cache_cf.cc.
References B_BYTES_STR, and parseBytesLine64().
Referenced by parse_acl_b_size_t().
◆ parse_b_size_t()
|
static |
Definition at line 3032 of file cache_cf.cc.
References B_BYTES_STR, and parseBytesLine().
◆ parse_b_ssize_t()
|
static |
Definition at line 3038 of file cache_cf.cc.
References B_BYTES_STR, and parseBytesLineSigned().
◆ parse_cache_log_message()
|
static |
Definition at line 4586 of file cache_cf.cc.
References assert, Here, DebugMessage::id, DebugMessage::level, DebugMessage::levelled(), DebugMessage::limit, DebugMessage::limited(), ConfigParser::NextKvPair(), ParseDebugMessageId(), ToSBuf(), xatoi(), and xatoull().
◆ parse_cachedir()
|
static |
Definition at line 2033 of file cache_cf.cc.
References assert, and Store::Disks::Parse().
◆ parse_cachemgrpasswd()
|
static |
Definition at line 2431 of file cache_cf.cc.
References Mgr::ActionPasswordList::actions, config_lineno, DBG_PARSE_NOTE, debugs, head, Mgr::ActionPasswordList::next, ConfigParser::NextQuotedToken(), parse_string(), and Mgr::ActionPasswordList::passwd.
◆ parse_client_delay_pool_access()
|
static |
Definition at line 1833 of file cache_cf.cc.
References LegacyParser, and ClientDelayConfig::parsePoolAccess().
◆ parse_client_delay_pool_count()
|
static |
Definition at line 1821 of file cache_cf.cc.
References ClientDelayConfig::parsePoolCount().
◆ parse_client_delay_pool_rates()
|
static |
Definition at line 1827 of file cache_cf.cc.
References ClientDelayConfig::parsePoolRates().
◆ parse_configuration_includes_quoted_values()
|
static |
Definition at line 4838 of file cache_cf.cc.
References parse_onoff(), ConfigParser::RecognizeQuotedValues, and ConfigParser::StrictMode.
◆ parse_CpuAffinityMap()
|
static |
Definition at line 4079 of file cache_cf.cc.
References DBG_CRITICAL, debugs, ConfigParser::NextToken(), and self_destruct().
◆ parse_delay_pool_access()
|
static |
Definition at line 1790 of file cache_cf.cc.
References LegacyParser, and DelayConfig::parsePoolAccess().
◆ parse_delay_pool_class()
|
static |
Definition at line 1778 of file cache_cf.cc.
References DelayConfig::parsePoolClass().
◆ parse_delay_pool_count()
|
static |
Definition at line 1772 of file cache_cf.cc.
References DelayConfig::parsePoolCount().
◆ parse_delay_pool_rates()
|
static |
Definition at line 1784 of file cache_cf.cc.
References DelayConfig::parsePoolRates().
◆ parse_denyinfo()
|
static |
Definition at line 2488 of file cache_cf.cc.
References aclParseDenyInfoLine().
◆ parse_ecap_service_type()
|
static |
Definition at line 4198 of file cache_cf.cc.
References Adaptation::Config::parseService().
◆ parse_eol()
void parse_eol | ( | char *volatile * | var | ) |
Definition at line 2897 of file cache_cf.cc.
References ConfigParser::NextQuotedOrToEol(), safe_free, self_destruct(), xisspace, and xstrdup.
◆ parse_ftp_epsv()
|
static |
Definition at line 4674 of file cache_cf.cc.
References ACCESS_ALLOWED, ACCESS_DENIED, aclParseAccessLine(), cfg_directive, DBG_CRITICAL, debugs, Acl::Node::FindByName(), FtpEspvDeprecated, LegacyParser, ConfigParser::NextToken(), ParseAclWithAction(), ConfigParser::PeekAtToken(), and self_destruct().
◆ parse_HeaderWithAclList()
|
static |
Definition at line 4510 of file cache_cf.cc.
References HeaderWithAcl::aclList, aclParseAclList(), Http::BAD_HDR, ConfigParser::DisableMacros(), ConfigParser::EnableMacros(), HeaderWithAcl::fieldId, HeaderWithAcl::fieldName, HeaderWithAcl::fieldValue, Http::HeaderLookupTable, Http::HeaderTableRecord::id, ConfigParser::LastTokenWasQuoted(), LegacyParser, Http::HeaderLookupTable_t::lookup(), ConfigParser::NextQuotedToken(), ConfigParser::NextToken(), Http::OTHER, Format::Format::parse(), HeaderWithAcl::quoted, self_destruct(), String::termedBuf(), and HeaderWithAcl::valueFormat.
◆ parse_hostdomaintype()
|
static |
Definition at line 2510 of file cache_cf.cc.
References ConfigParser::cachePeer(), LegacyParser, ConfigParser::NextToken(), parseNeighborType(), self_destruct(), xcalloc(), and xstrdup.
◆ parse_http_header_access()
|
static |
Definition at line 1848 of file cache_cf.cc.
References headerMangler::access_list, aclParseAccessLine(), assert, cfg_filename, config_input_line, config_lineno, DBG_CRITICAL, debugs, LegacyParser, ConfigParser::NextToken(), and HeaderManglers::track().
◆ parse_http_header_replace()
|
static |
Definition at line 1887 of file cache_cf.cc.
References cfg_filename, config_input_line, config_lineno, DBG_CRITICAL, debugs, ConfigParser::NextQuotedOrToEol(), ConfigParser::NextToken(), and HeaderManglers::setReplacement().
◆ parse_http_upgrade_request_protocols()
|
static |
Definition at line 4914 of file cache_cf.cc.
References assert, and LegacyParser.
◆ parse_icap_access_type()
|
static |
Definition at line 4186 of file cache_cf.cc.
References DBG_CRITICAL, debugs, LegacyParser, and Adaptation::Config::ParseAccess().
◆ parse_icap_class_type()
|
static |
Definition at line 4178 of file cache_cf.cc.
References DBG_CRITICAL, debugs, and Adaptation::Config::ParseServiceSet().
◆ parse_icap_service_failure_limit()
|
static |
Definition at line 4218 of file cache_cf.cc.
References config_input_line, DBG_CRITICAL, debugs, GetInteger(), ConfigParser::NextToken(), Adaptation::Config::oldest_service_failure, parse_time_t(), self_destruct(), and Adaptation::Config::service_failure_limit.
◆ parse_icap_service_type()
|
static |
Definition at line 4160 of file cache_cf.cc.
References Adaptation::Config::parseService().
◆ parse_int()
void parse_int | ( | int * | var | ) |
Definition at line 2539 of file cache_cf.cc.
References GetInteger().
Referenced by parse_obsolete(), and parse_pipelinePrefetch().
◆ parse_int64_t()
|
static |
Definition at line 2559 of file cache_cf.cc.
References GetInteger64().
◆ parse_IpAddress_list()
|
static |
Definition at line 3329 of file cache_cf.cc.
References GetHostWithPort(), head, squidaio_request_t::next, ConfigParser::NextToken(), Ip::Address_list::s, self_destruct(), and xcalloc().
◆ parse_kb_int64_t()
|
static |
Definition at line 3050 of file cache_cf.cc.
References B_KBYTES_STR, and parseBytesLine64().
◆ parse_line()
|
static |
Referenced by sslBumpCfgRr::finalizeConfig(), and parseOneConfigFile().
◆ parse_memcachemode()
|
static |
Definition at line 3261 of file cache_cf.cc.
References Config, DBG_PARSE_NOTE, debugs, SquidConfig::memory_cache_disk, SquidConfig::memory_cache_first, ConfigParser::NextToken(), SquidConfig::onoff, and self_destruct().
◆ parse_note()
|
static |
Definition at line 4562 of file cache_cf.cc.
References assert, LegacyParser, and Notes::parse().
◆ parse_obsolete()
|
static |
Parse a line containing an obsolete directive. To upgrade it where possible instead of just "Bungled config" for directives which cannot be marked as simply aliases of the some name. For example if the parameter order and content has changed. Or if the directive has been completely removed.
Definition at line 1065 of file cache_cf.cc.
References SBuf::append(), SBuf::c_str(), SquidConfig::cache_miss_revalidate, Helper::ChildConfig::concurrency, Config, DBG_CRITICAL, debugs, Here, ConfigParser::NextQuotedOrToEol(), SquidConfig::onoff, Security::PeerOptions::parse(), parse_int(), parse_onoff(), Security::ProxyOutgoingConfig(), SquidConfig::redirectChildren, self_destruct(), and ToSBuf().
◆ parse_on_unsupported_protocol()
|
static |
Definition at line 4868 of file cache_cf.cc.
References ACCESS_ALLOWED, DBG_CRITICAL, debugs, ConfigParser::NextToken(), ParseAclWithAction(), and self_destruct().
◆ parse_onoff()
void parse_onoff | ( | int * | var | ) |
Definition at line 2579 of file cache_cf.cc.
References DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, ConfigParser::NextToken(), and self_destruct().
Referenced by Auth::SchemeConfig::parse(), parse_configuration_includes_quoted_values(), parse_obsolete(), and parse_YesNoNone().
◆ parse_peer()
|
static |
Definition at line 2161 of file cache_cf.cc.
References CachePeers::add(), DBG_CRITICAL, DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, fatalf(), findCachePeerByName(), GetTcpService(), GetUdpService(), Here, ConfigParser::NextToken(), parseNeighborType(), PEER_MULTICAST, PEER_PARENT, peerClearRRStart(), rfc1738_unescape(), safe_free, self_destruct(), ToSBuf(), xatoi(), and xstrdup.
◆ parse_peer_access()
|
static |
Definition at line 2501 of file cache_cf.cc.
References aclParseAccessLine(), ConfigParser::cachePeer(), LegacyParser, and CachePeer::name.
◆ parse_pipelinePrefetch()
|
static |
Definition at line 2650 of file cache_cf.cc.
References DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, ConfigParser::NextToken(), parse_int(), ConfigParser::PeekAtToken(), and self_destruct().
◆ parse_port_option()
|
static |
Definition at line 3489 of file cache_cf.cc.
References cfg_directive, DBG_CRITICAL, DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, DISABLE_PMTU_ALWAYS, DISABLE_PMTU_OFF, DISABLE_PMTU_TRANSPARENT, Ip::Interceptor, parsePortProtocol(), safe_free, self_destruct(), Ip::Intercept::StartInterception(), Ip::Intercept::StartTransparency(), TexcHere, ToSBuf(), ToUpper(), xatos(), xatoui(), and xstrdup.
Referenced by parsePortCfg().
◆ parse_refreshpattern()
|
static |
Definition at line 2720 of file cache_cf.cc.
References DBG_CRITICAL, DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, RefreshPattern::flags, GetInteger(), GetPercentage(), head, RefreshPattern::ignore_no_store, RefreshPattern::ignore_private, RefreshPattern::ignore_reload, LegacyParser, RefreshPattern::max, max(), RefreshPattern::max_stale, RefreshPattern::min, min(), squidaio_request_t::next, RefreshPattern::next, ConfigParser::NextToken(), RefreshPattern::override_expire, RefreshPattern::override_lastmod, RefreshPattern::pct, RefreshPattern::refresh_ims, refresh_nocache_hack, ConfigParser::regex(), RefreshPattern::reload_into_ims, RefreshPattern::store_stale, and xatoi().
◆ parse_removalpolicy()
|
static |
Definition at line 3210 of file cache_cf.cc.
References free_removalpolicy(), parse_string(), and parse_wordlist().
◆ parse_SBufList()
|
static |
Definition at line 1446 of file cache_cf.cc.
References ConfigParser::NextQuotedToken().
◆ parse_sslproxy_cert_adapt()
|
static |
Definition at line 4252 of file cache_cf.cc.
References sslproxy_cert_adapt::aclList, aclParseAclList(), sslproxy_cert_adapt::alg, Ssl::algSetCommonName, Ssl::algSetValidAfter, Ssl::algSetValidBefore, Ssl::CertAdaptAlgorithmStr, DBG_CRITICAL, debugs, LegacyParser, sslproxy_cert_adapt::next, ConfigParser::NextToken(), sslproxy_cert_adapt::param, self_destruct(), and xstrdup.
◆ parse_sslproxy_cert_sign()
|
static |
Definition at line 4322 of file cache_cf.cc.
References sslproxy_cert_sign::aclList, aclParseAclList(), sslproxy_cert_sign::alg, Ssl::algSignSelf, Ssl::algSignTrusted, Ssl::algSignUntrusted, Ssl::CertSignAlgorithmStr, DBG_CRITICAL, debugs, LegacyParser, sslproxy_cert_sign::next, ConfigParser::NextToken(), and self_destruct().
◆ parse_sslproxy_ssl_bump()
|
static |
Definition at line 4402 of file cache_cf.cc.
References ACCESS_ALLOWED, Ssl::bumpBump, Ssl::bumpClientFirst, Ssl::bumpEnd, Ssl::BumpModeStr, Ssl::bumpNone, Ssl::bumpPeek, Ssl::bumpServerFirst, Ssl::bumpSplice, Ssl::bumpStare, Ssl::bumpTerminate, DBG_CRITICAL, debugs, sslBumpCfgRr::lastDeprecatedRule, ConfigParser::NextToken(), ParseAclWithAction(), and self_destruct().
◆ parse_string()
|
static |
Definition at line 2877 of file cache_cf.cc.
References ConfigParser::NextToken(), safe_free, self_destruct(), and xstrdup.
Referenced by parse_cachemgrpasswd(), and parse_removalpolicy().
◆ parse_time_msec()
|
static |
Definition at line 2977 of file cache_cf.cc.
◆ parse_time_nanoseconds()
|
static |
Definition at line 2996 of file cache_cf.cc.
◆ parse_time_t()
void parse_time_t | ( | time_t * | var | ) |
Definition at line 2951 of file cache_cf.cc.
References max(), TexcHere, and ToSBuf().
Referenced by parse_icap_service_failure_limit().
◆ parse_TokenOrQuotedString()
|
static |
Definition at line 2927 of file cache_cf.cc.
References ConfigParser::NextQuotedToken(), safe_free, self_destruct(), and xstrdup.
◆ parse_tristate()
|
static |
Definition at line 2621 of file cache_cf.cc.
References DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, ConfigParser::NextToken(), and self_destruct().
◆ parse_u_short()
|
static |
Definition at line 3093 of file cache_cf.cc.
References ConfigParser::ParseUShort().
◆ parse_uri_whitespace()
|
static |
Definition at line 3151 of file cache_cf.cc.
References DBG_PARSE_NOTE, debugs, ConfigParser::NextToken(), self_destruct(), URI_WHITESPACE_ALLOW, URI_WHITESPACE_CHOP, URI_WHITESPACE_DENY, URI_WHITESPACE_ENCODE, and URI_WHITESPACE_STRIP.
◆ parse_UrlHelperTimeout()
|
static |
Definition at line 4772 of file cache_cf.cc.
References SquidConfig::UrlHelperTimeout::action, Config, DBG_CRITICAL, debugs, ConfigParser::NextKvPair(), ParseUrlRewriteTimeout(), SquidConfig::UrlHelperTimeout::response, self_destruct(), SquidConfig::Timeout, toutActBypass, toutActFail, toutActRetry, toutActUseConfiguredResponse, SquidConfig::urlRewrite, and xstrdup.
◆ parse_wordlist()
void parse_wordlist | ( | wordlist ** | list | ) |
Definition at line 3133 of file cache_cf.cc.
References ConfigParser::NextQuotedToken(), and wordlistAdd().
Referenced by Auth::SchemeConfig::parse(), parse_externalAclHelper(), parse_removalpolicy(), and ConfigParser::ParseWordList().
◆ parse_YesNoNone()
|
static |
Definition at line 3242 of file cache_cf.cc.
References YesNoNone::configure(), and parse_onoff().
◆ ParseAclWithAction()
|
static |
Definition at line 2012 of file cache_cf.cc.
References Acl::InnerNode::add(), assert, config_input_line, Acl::Node::context(), Acl::InnerNode::lineParse(), and ToSBuf().
Referenced by parse_AuthSchemes(), parse_ftp_epsv(), parse_on_unsupported_protocol(), and parse_sslproxy_ssl_bump().
◆ parseBytesLine()
|
static |
Definition at line 1295 of file cache_cf.cc.
References config_input_line, DBG_CRITICAL, debugs, ConfigParser::NextToken(), parseBytesUnits(), self_destruct(), and xatof().
Referenced by parse_b_size_t().
◆ parseBytesLine64()
|
static |
Definition at line 1248 of file cache_cf.cc.
References config_input_line, DBG_CRITICAL, debugs, ConfigParser::NextToken(), parseBytesUnits(), self_destruct(), and xatof().
Referenced by parse_b_int64_t(), and parse_kb_int64_t().
◆ parseBytesLineSigned()
|
static |
Definition at line 1342 of file cache_cf.cc.
References config_input_line, DBG_CRITICAL, debugs, ConfigParser::NextToken(), parseBytesUnits(), self_destruct(), and xatof().
Referenced by parse_b_ssize_t().
◆ parseBytesOptionValue()
void parseBytesOptionValue | ( | size_t * | bptr, |
const char * | units, | ||
char const * | value | ||
) |
Parse bytes from a string. Similar to the parseBytesLine function but parses the string value instead of the current token value.
Definition at line 1394 of file cache_cf.cc.
References parseBytesUnits(), self_destruct(), and xatoi().
Referenced by Security::ServerOptions::parse(), and FormattedLog::parseOptions().
◆ parseBytesUnits()
|
static |
Definition at line 1426 of file cache_cf.cc.
References B_BYTES_STR, B_GBYTES_STR, B_KBYTES_STR, B_MBYTES_STR, DBG_CRITICAL, and debugs.
Referenced by parseBytesLine(), parseBytesLine64(), parseBytesLineSigned(), and parseBytesOptionValue().
◆ ParseDebugMessageId()
|
static |
Definition at line 4578 of file cache_cf.cc.
References DebugMessageIdUpperBound, Here, ToSBuf(), and xatoui().
Referenced by parse_cache_log_message().
◆ ParseDirective()
|
static |
Sets the given raw SquidConfig data member. Extracts and interprets parser's configuration tokens.
Definition at line 663 of file cache_cf.cc.
References ConfigParser::closeDirective(), Must, Configuration::Component< T >::Parse(), ConfigParser::rejectDuplicateDirective(), and SawDirective().
◆ parseManyConfigFiles()
Definition at line 311 of file cache_cf.cc.
References fatalf(), int, NULL, parseOneConfigFile(), strwordtok(), and xstrerr().
Referenced by parseOneConfigFile().
◆ parseNeighborType()
|
static |
Definition at line 3305 of file cache_cf.cc.
References DBG_CRITICAL, debugs, PEER_MULTICAST, PEER_PARENT, and PEER_SIBLING.
Referenced by parse_hostdomaintype(), and parse_peer().
◆ parseOneConfigFile()
Definition at line 446 of file cache_cf.cc.
References BUFSIZ, cfg_filename, config_input_line, config_lineno, CurrentException(), ConfigParser::CurrentLocation(), DBG_CRITICAL, debugs, EvalBoolExpr(), Debug::Extra(), fatalf(), FindStatement(), Important, IsSpace(), O_TEXT, opt_parse_cfg_only, parse_line(), parseManyConfigFiles(), ProcessMacros(), safe_free, self_destruct(), SetConfigFilename(), skip_ws(), trim_trailing_ws(), xfree, xrealloc(), xstrerr(), and xstrncpy().
Referenced by Configuration::Parse(), and parseManyConfigFiles().
◆ parsePortCfg()
|
static |
Definition at line 3721 of file cache_cf.cc.
References SBuf::cmp(), DBG_CRITICAL, debugs, Ip::EnableIpv6, head, IPV6_SPECIAL_SPLITSTACK, SBuf::isEmpty(), ConfigParser::NextToken(), parse_port_option(), parsePortProtocol(), parsePortSpecification(), AnyP::PROTO_HTTPS, and self_destruct().
◆ parsePortProtocol()
|
static |
parses the protocol= option of the *_port directive, returning parsed value unsupported option values result in a fatal error message upper case values required; caller may convert for backward compatibility
Definition at line 3471 of file cache_cf.cc.
References cfg_directive, SBuf::cmp(), fatalf(), AnyP::PROTO_HTTPS, Http::ProtocolVersion(), Ftp::ProtocolVersion(), SQUIDSBUFPH, and SQUIDSBUFPRINT.
Referenced by add_http_port(), parse_port_option(), and parsePortCfg().
◆ parsePortSpecification()
|
static |
Definition at line 3386 of file cache_cf.cc.
References DBG_CRITICAL, debugs, DISABLE_PMTU_OFF, Ip::EnableIpv6, AnyP::UriScheme::image(), port, self_destruct(), xatos(), and xstrdup.
Referenced by add_http_port(), and parsePortCfg().
◆ parseTimeLine()
|
static |
Parses a time specification from the config file and returns the time as a chrono duration object of 'TimeUnit' type.
Definition at line 1213 of file cache_cf.cc.
References ConfigParser::CurrentLocation(), DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, ConfigParser::NextToken(), ConfigParser::PeekAtToken(), TexcHere, ToNanoSeconds(), ToSBuf(), and xatof().
◆ parseTimeUnit()
|
static |
Assigns 'ns' the number of nanoseconds corresponding to 'unitName'.
- Parameters
-
MinimalUnit is a chrono duration type specifying the minimal allowed time unit.
- Returns
- true if unitName is correct and its time unit is not less than MinimalUnit.
Definition at line 1142 of file cache_cf.cc.
References HoursPerYear, T_DAY_STR, T_DECADE_STR, T_FORTNIGHT_STR, T_HOUR_STR, T_MICROSECOND_STR, T_MILLISECOND_STR, T_MINUTE_STR, T_MONTH_STR, T_NANOSECOND_STR, T_SECOND_STR, T_WEEK_STR, T_YEAR_STR, TexcHere, and ToSBuf().
◆ ParseUrlRewriteTimeout()
|
static |
Like parseTimeLine() but does not require the timeunit to be specified. If missed, the default 'second' timeunit is assumed.
Definition at line 4741 of file cache_cf.cc.
References assert, ConfigParser::CurrentLocation(), DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, ConfigParser::NextToken(), ConfigParser::PeekAtToken(), T_SECOND_STR, TexcHere, ToNanoSeconds(), and xatof().
Referenced by parse_UrlHelperTimeout().
◆ peer_type_str()
|
static |
Definition at line 2040 of file cache_cf.cc.
References PEER_MULTICAST, PEER_PARENT, and PEER_SIBLING.
Referenced by dump_peer().
◆ ProcessMacros()
|
static |
Definition at line 370 of file cache_cf.cc.
References SBuf::c_str(), KidIdentifier, service_name, SubstituteMacro(), TheKidName, and xitoa().
Referenced by parseOneConfigFile().
◆ ReplaceSubstr()
|
static |
◆ requirePathnameExists()
void requirePathnameExists | ( | const char * | name, |
const char * | path | ||
) |
Definition at line 3925 of file cache_cf.cc.
References assert, BUFSIZ, SquidConfig::chroot_dir, Config, DBG_CRITICAL, debugs, fatalf(), opt_parse_cfg_only, opt_send_signal, and xstrerr().
Referenced by configDoConfigure(), ipcCreate(), and Auth::SchemeConfig::parse().
◆ SawDirective()
|
static |
Definition at line 654 of file cache_cf.cc.
Referenced by DumpDirective(), and ParseDirective().
◆ self_destruct()
void self_destruct | ( | void | ) |
Definition at line 275 of file cache_cf.cc.
References ConfigParser::destruct(), and LegacyParser.
Referenced by configDoConfigure(), dump_wccp2_amethod(), dump_wccp2_method(), ErrorDynamicPageInfo::ErrorDynamicPageInfo(), acl_ip_data::FactoryParse(), GetInteger(), GetInteger64(), GetPercentage(), GetService(), GetShort(), Acl::InnerNode::lineParse(), ConfigParser::NextToken(), Fs::Ufs::UFSSwapDir::optionIOParse(), Store::Disk::optionObjectSizeParse(), ACLAdaptationServiceData::parse(), DelaySpec::parse(), ACLTimeData::parse(), ACLHasComponentData::parse(), ACLSquidErrorData::parse(), ACLIntRange::parse(), ACLAnnotationData::parse(), IcmpConfig::parse(), ACLCertificateData::parse(), ACLExternal::parse(), Security::ServerOptions::parse(), Auth::SchemeConfig::parse(), parse_access_log(), parse_acl_tos(), parse_address(), parse_authparam(), parse_AuthSchemes(), parse_CpuAffinityMap(), parse_eol(), parse_externalAclHelper(), parse_ftp_epsv(), parse_HeaderWithAclList(), parse_hostdomaintype(), parse_icap_service_failure_limit(), parse_IpAddress_list(), parse_memcachemode(), parse_obsolete(), parse_on_unsupported_protocol(), parse_onoff(), parse_peer(), parse_pipelinePrefetch(), parse_port_option(), parse_sslproxy_cert_adapt(), parse_sslproxy_cert_sign(), parse_sslproxy_ssl_bump(), parse_string(), parse_TokenOrQuotedString(), parse_tristate(), parse_uri_whitespace(), parse_UrlHelperTimeout(), parse_wccp2_amethod(), parse_wccp2_method(), parse_wccp2_service(), parse_wccp2_service_info(), ConfigParser::ParseBool(), parseBytesLine(), parseBytesLine64(), parseBytesLineSigned(), parseBytesOptionValue(), ACLHasComponentData::parseComponent(), Helper::ChildConfig::parseConfig(), Log::LogConfig::parseFormats(), XactionInitiator::ParseInitiators(), parseOneConfigFile(), Store::Disk::parseOptions(), parsePortCfg(), parsePortSpecification(), Rock::SwapDir::parseRateOption(), MessageDelayConfig::parseResponseDelayPool(), Rock::SwapDir::parseSizeOption(), Rock::SwapDir::parseTimeOption(), ConfigParser::RegexStrtokFile(), ConfigParser::TokenParse(), ConfigParser::UnQuote(), xatof(), xatoi(), xatol(), xatoll(), and xatos().
◆ SetConfigFilename()
|
static |
Definition at line 281 of file cache_cf.cc.
References cfg_filename.
Referenced by parseOneConfigFile().
◆ skip_ws()
|
static |
Definition at line 302 of file cache_cf.cc.
References IsSpace().
Referenced by EvalBoolExpr(), FindStatement(), and parseOneConfigFile().
◆ StrToInt()
|
static |
◆ SubstituteMacro()
|
static |
Definition at line 359 of file cache_cf.cc.
References assert, and ReplaceSubstr().
Referenced by ProcessMacros().
◆ TimeUnitToString()
|
static |
Definition at line 1120 of file cache_cf.cc.
References assert, T_MICROSECOND_STR, T_MILLISECOND_STR, T_NANOSECOND_STR, and T_SECOND_STR.
◆ ToNanoSeconds()
|
static |
Definition at line 1183 of file cache_cf.cc.
References HoursPerYear, max(), TexcHere, and ToSBuf().
Referenced by parseTimeLine(), and ParseUrlRewriteTimeout().
◆ trim_trailing_ws()
|
static |
Definition at line 378 of file cache_cf.cc.
References assert, and IsSpace().
Referenced by EvalBoolExpr(), and parseOneConfigFile().
Variable Documentation
◆ B_BYTES_STR
|
static |
Definition at line 156 of file cache_cf.cc.
Referenced by dump_acl_b_size_t(), dump_b_int64_t(), dump_b_size_t(), dump_b_ssize_t(), parse_b_int64_t(), parse_b_size_t(), parse_b_ssize_t(), and parseBytesUnits().
◆ B_GBYTES_STR
|
static |
Definition at line 159 of file cache_cf.cc.
Referenced by parseBytesUnits().
◆ B_KBYTES_STR
|
static |
Definition at line 157 of file cache_cf.cc.
Referenced by dump_kb_int64_t(), parse_kb_int64_t(), and parseBytesUnits().
◆ B_MBYTES_STR
|
static |
Definition at line 158 of file cache_cf.cc.
Referenced by parseBytesUnits().
◆ cfg_directive
const char* cfg_directive = nullptr |
Definition at line 269 of file cache_cf.cc.
Referenced by aclParseAclList(), ConfigParser::closeDirective(), HttpUpgradeProtocolAccess::configureGuard(), ConfigParser::CurrentLocation(), ConfigParser::optionalAclList(), parse_acl_access(), parse_ftp_epsv(), parse_port_option(), FormattedLog::parseOptions(), parsePortProtocol(), ConfigParser::rejectDuplicateDirective(), and FormattedLog::setLogformat().
◆ cfg_filename
const char* cfg_filename = nullptr |
Definition at line 270 of file cache_cf.cc.
Referenced by aclParseAccessLine(), aclParseArpData(), aclParseDenyInfoLine(), aclParseEuiData(), compileOptimisedREs(), ConfigParser::CurrentLocation(), ConfigParser::destruct(), Adaptation::ServiceConfig::grokBool(), Adaptation::ServiceConfig::grokExtension(), Adaptation::ServiceConfig::grokLong(), Adaptation::ServiceConfig::grokOnOverload(), Adaptation::ServiceConfig::grokUri(), ACLTimeData::parse(), ACLRegexData::parse(), Adaptation::ServiceConfig::parse(), parse_http_header_access(), parse_http_header_replace(), Log::LogConfig::parseFormats(), parseOneConfigFile(), Adaptation::Config::parseService(), removeUnnecessaryWildcards(), and SetConfigFilename().
◆ config_input_line
char config_input_line[BUFSIZ] = {} |
Definition at line 272 of file cache_cf.cc.
Referenced by aclParseAccessLine(), aclParseAclList(), aclParseArpData(), aclParseDenyInfoLine(), aclParseEuiData(), compileOptimisedREs(), ConfigParser::destruct(), Acl::InnerNode::lineParse(), ACLTimeData::parse(), ACLRegexData::parse(), Acl::AllOf::parse(), parse_http_header_access(), parse_http_header_replace(), parse_icap_service_failure_limit(), ParseAclWithAction(), parseBytesLine(), parseBytesLine64(), parseBytesLineSigned(), Acl::Node::ParseNamed(), parseOneConfigFile(), and removeUnnecessaryWildcards().
◆ config_lineno
int config_lineno = 0 |
Definition at line 271 of file cache_cf.cc.
Referenced by aclParseAccessLine(), aclParseArpData(), aclParseDenyInfoLine(), aclParseEuiData(), compileOptimisedREs(), ConfigParser::CurrentLocation(), ConfigParser::destruct(), Adaptation::ServiceConfig::grokBool(), Adaptation::ServiceConfig::grokExtension(), Adaptation::ServiceConfig::grokLong(), Adaptation::ServiceConfig::grokOnOverload(), Adaptation::ServiceConfig::grokUri(), ACLTimeData::parse(), ACLRegexData::parse(), Adaptation::ServiceConfig::parse(), parse_cachemgrpasswd(), parse_http_header_access(), parse_http_header_replace(), Log::LogConfig::parseFormats(), parseOneConfigFile(), Adaptation::Config::parseService(), and removeUnnecessaryWildcards().
◆ dump_config
|
static |
Definition at line 187 of file cache_cf.cc.
Referenced by Configuration::Parse().
◆ FtpEspvDeprecated
|
static |
Definition at line 4673 of file cache_cf.cc.
Referenced by free_ftp_epsv(), and parse_ftp_epsv().
◆ HoursPerYear
|
static |
Definition at line 162 of file cache_cf.cc.
Referenced by parseTimeUnit(), and ToNanoSeconds().
◆ LegacyParser
|
static |
Definition at line 267 of file cache_cf.cc.
Referenced by parse_access_log(), parse_acl(), parse_acl_access(), parse_acl_address(), parse_acl_b_size_t(), parse_acl_tos(), parse_adaptation_access_type(), parse_client_delay_pool_access(), parse_delay_pool_access(), parse_ftp_epsv(), parse_HeaderWithAclList(), parse_hostdomaintype(), parse_http_header_access(), parse_http_upgrade_request_protocols(), parse_icap_access_type(), parse_note(), parse_peer_access(), parse_refreshpattern(), parse_sslproxy_cert_adapt(), parse_sslproxy_cert_sign(), self_destruct(), and TestACLMaxUserIP::testParseLine().
◆ T_DAY_STR
|
static |
Definition at line 149 of file cache_cf.cc.
Referenced by parseTimeUnit().
◆ T_DECADE_STR
|
static |
Definition at line 154 of file cache_cf.cc.
Referenced by parseTimeUnit().
◆ T_FORTNIGHT_STR
|
static |
Definition at line 151 of file cache_cf.cc.
Referenced by parseTimeUnit().
◆ T_HOUR_STR
|
static |
Definition at line 148 of file cache_cf.cc.
Referenced by parseTimeUnit().
◆ T_MICROSECOND_STR
|
static |
Definition at line 144 of file cache_cf.cc.
Referenced by parseTimeUnit(), and TimeUnitToString().
◆ T_MILLISECOND_STR
|
static |
Definition at line 145 of file cache_cf.cc.
Referenced by parseTimeUnit(), and TimeUnitToString().
◆ T_MINUTE_STR
|
static |
Definition at line 147 of file cache_cf.cc.
Referenced by parseTimeUnit().
◆ T_MONTH_STR
|
static |
Definition at line 152 of file cache_cf.cc.
Referenced by parseTimeUnit().
◆ T_NANOSECOND_STR
|
static |
Definition at line 143 of file cache_cf.cc.
Referenced by parseTimeUnit(), and TimeUnitToString().
◆ T_SECOND_STR
|
static |
Definition at line 146 of file cache_cf.cc.
Referenced by parseTimeUnit(), ParseUrlRewriteTimeout(), and TimeUnitToString().
◆ T_WEEK_STR
|
static |
Definition at line 150 of file cache_cf.cc.
Referenced by parseTimeUnit().
◆ T_YEAR_STR
|
static |
Definition at line 153 of file cache_cf.cc.
Referenced by parseTimeUnit().
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:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products