Re: [squid-users] Trouble adding a new Squid configuration parameter

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Thu, 19 Sep 2013 16:07:52 -0600

On 09/19/2013 12:48 PM, Peter Belau wrote:

> I'm trying to add a configuration derive to Squid by modifying cf.data.pre
> My addition looks like this:
>
> NAME: scrly_internal_ip_address
> TYPE: string
> LOC:
> Config.scrly_internal_ip_address
> DEFAULT: none
> DOC_START
> DOC_END
>
>
> However, when I attempt to build Squid I get the following error:
>
> In file included from cache_cf.cc:3401:0:
> cf_parser.cci: In function ‘int parse_line(char*)’:
> cf_parser.cci:2645:30: error: ‘class SquidConfig’ has no member named ‘scrly_internal_ip_address’
>
>
> Any ideas on what I'm doing wrong and how I could fix it ?

Hi Peter,

    Squid development should be discussed on the squid-dev mailing list
rather than here, but the answer to your question is that you need to
add a new data member called "scrly_internal_ip_address" to the
SquidConfig class (src/SquidConfig.h). That addition will not be done
automatically for you.

BTW, the proper TYPE for an IP addresses is usually "address", not
"string", but YMMV.

HTH,

Alex.
Received on Thu Sep 19 2013 - 22:08:13 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 20 2013 - 12:00:05 MDT