From: wessels <> Date: Tue, 18 Jul 2000 12:16:18 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1891 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42b51993fc0613645606529f3124e598a6dbc8e4;p=thirdparty%2Fsquid.git DW: - Synced HEAD with 2.3.STABLE4. --- diff --git a/ChangeLog b/ChangeLog index fbdc3cd5fd..a72e47dc4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -77,6 +77,43 @@ Changes to Squid-2.4.DEVEL2 (Feb 29, 2000): Changes to Squid-2.4.DEVEL1 (): +Changes to Squid-2.3.STABLE4 (July 18, 2000): + + - Fixed --localstatedir configure option (IKEDA Shigeru). + - Fixed IPFilter headers on OpenBSD (Nic Bellamy, Brad + Smith). + - Added pthread_sigmask() check to configure (Daniel + Ehrlich). + - Added CYGWIN patches from Robert Collins. + - Changed internal DNS lookups to retry queries that are + returned with RCODE 2 (ServFail). + - Added 'virtual port' support (Gregg Kellogg). If + 'httpd_accel_uses_host_header' is enabled, then we use + the port number from the Host header. Otherwise, when + 'httpd_accel_port' is set to "0" we use the port number + of the local end of the client socket. + - Fixed a typo in carp.c (Nikolaj Yourgandjiev). + - Made Squid accept GET requests that have a "content-length: + 0" header. + - Added a sanity check on the NHttpSockets[] array index + (Gregg Kellogg). + - Added a friendlier message when Squid can't find any DNS + nameserver addresses to use (Daniel Kiracofe). + - Added nonstandard WEBDAV methods: BMOVE, BDELETE, BPROPFIND + (Craig Whitmore). + - Added missing '%c' token replacement in error page + generation. + - Fixed a bug with 'minimum_object_size' that prevented + internal icons from being loaded. + - Fixed "extra semicolon" bug in storeExpiredReferenceAge() + that could prevent any objects from being replaced. + - Make sure that storeDirDiskFull() doesn't actually + *increase* the cache size. + - Changed a storeSwapMetaUnpack() assertion to a recoverable + error condition. + - Removed "wccpHereIam" event check that could cause Squid + to stop sending HERE_I_AM messages. + Changes to Squid-2.3.STABLE3 (May 15, 2000): - Fixed malloc linking problems on Solaris. The configure diff --git a/configure b/configure index 62c1d3e439..bf09b8292d 100755 --- a/configure +++ b/configure @@ -2621,6 +2621,7 @@ for ac_hdr in \ gnumalloc.h \ grp.h \ ip_compat.h \ + ip_fil_compat.h \ ip_fil.h \ ip_nat.h \ libc.h \ @@ -2635,6 +2636,7 @@ for ac_hdr in \ netinet/in.h \ netinet/tcp.h \ netinet/ip_compat.h \ + netinet/ip_fil_compat.h \ netinet/ip_fil.h \ netinet/ip_nat.h \ poll.h \ @@ -2674,17 +2676,17 @@ for ac_hdr in \ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2678: checking for $ac_hdr" >&5 +echo "configure:2680: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2712,12 +2714,12 @@ done echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:2716: checking for working const" >&5 +echo "configure:2718: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -2787,14 +2789,14 @@ EOF fi echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:2791: checking whether byte ordering is bigendian" >&5 +echo "configure:2793: checking whether byte ordering is bigendian" >&5 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_bigendian=unknown # See if sys/param.h defines the BYTE_ORDER macro. cat > conftest.$ac_ext < #include @@ -2805,11 +2807,11 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # It does; now see whether it defined to BIG_ENDIAN or not. cat > conftest.$ac_ext < #include @@ -2820,7 +2822,7 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:2824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_bigendian=yes else @@ -2840,7 +2842,7 @@ if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_bigendian=no else @@ -2878,20 +2880,20 @@ fi echo $ac_n "checking if ANSI prototypes work""... $ac_c" 1>&6 -echo "configure:2882: checking if ANSI prototypes work" >&5 +echo "configure:2884: checking if ANSI prototypes work" >&5 if eval "test \"`echo '$''{'ac_cv_have_ansi_prototypes'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_ansi_prototypes="yes" else @@ -2913,13 +2915,13 @@ EOF fi echo $ac_n "checking for tm->tm_gmtoff""... $ac_c" 1>&6 -echo "configure:2917: checking for tm->tm_gmtoff" >&5 +echo "configure:2919: checking for tm->tm_gmtoff" >&5 if eval "test \"`echo '$''{'ac_cv_have_tm_gmoff'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2928,7 +2930,7 @@ struct tm foo; foo.tm_gmtoff = 0; ; return 0; } EOF -if { (eval echo configure:2932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_tm_gmoff="yes" else @@ -2950,13 +2952,13 @@ EOF fi echo $ac_n "checking for struct mallinfo""... $ac_c" 1>&6 -echo "configure:2954: checking for struct mallinfo" >&5 +echo "configure:2956: checking for struct mallinfo" >&5 if eval "test \"`echo '$''{'ac_cv_have_struct_mallinfo'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if HAVE_MALLOC_H @@ -2974,7 +2976,7 @@ struct mallinfo foo; foo.keepcost = 0; ; return 0; } EOF -if { (eval echo configure:2978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_struct_mallinfo="yes" else @@ -2996,13 +2998,13 @@ EOF fi echo $ac_n "checking for extended mallinfo""... $ac_c" 1>&6 -echo "configure:3000: checking for extended mallinfo" >&5 +echo "configure:3002: checking for extended mallinfo" >&5 if eval "test \"`echo '$''{'ac_cv_have_ext_mallinfo'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3011,7 +3013,7 @@ struct mallinfo foo; foo.mxfast = 0; ; return 0; } EOF -if { (eval echo configure:3015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_ext_mallinfo="yes" else @@ -3033,13 +3035,13 @@ EOF fi echo $ac_n "checking for struct rusage""... $ac_c" 1>&6 -echo "configure:3037: checking for struct rusage" >&5 +echo "configure:3039: checking for struct rusage" >&5 if eval "test \"`echo '$''{'ac_cv_have_struct_rusage'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_struct_rusage="yes" else @@ -3074,13 +3076,13 @@ EOF fi echo $ac_n "checking for ip->ip_hl""... $ac_c" 1>&6 -echo "configure:3078: checking for ip->ip_hl" >&5 +echo "configure:3080: checking for ip->ip_hl" >&5 if eval "test \"`echo '$''{'ac_cv_have_ip_hl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3097,7 +3099,7 @@ struct iphdr ip; ip.ip_hl= 0; ; return 0; } EOF -if { (eval echo configure:3101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_ip_hl="yes" else @@ -3119,7 +3121,7 @@ EOF fi echo $ac_n "checking size of int""... $ac_c" 1>&6 -echo "configure:3123: checking size of int" >&5 +echo "configure:3125: checking size of int" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3127,7 +3129,7 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() @@ -3138,7 +3140,7 @@ main() exit(0); } EOF -if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int=`cat conftestval` else @@ -3158,7 +3160,7 @@ EOF echo $ac_n "checking size of long""... $ac_c" 1>&6 -echo "configure:3162: checking size of long" >&5 +echo "configure:3164: checking size of long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3166,7 +3168,7 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() @@ -3177,7 +3179,7 @@ main() exit(0); } EOF -if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long=`cat conftestval` else @@ -3197,7 +3199,7 @@ EOF echo $ac_n "checking size of void *""... $ac_c" 1>&6 -echo "configure:3201: checking size of void *" >&5 +echo "configure:3203: checking size of void *" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3205,7 +3207,7 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() @@ -3216,7 +3218,7 @@ main() exit(0); } EOF -if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_void_p=`cat conftestval` else @@ -3239,19 +3241,19 @@ EOF # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:3243: checking for working alloca.h" >&5 +echo "configure:3245: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF -if { (eval echo configure:3255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else @@ -3272,12 +3274,12 @@ EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:3276: checking for alloca" >&5 +echo "configure:3278: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else @@ -3337,12 +3339,12 @@ EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:3341: checking whether alloca needs Cray hooks" >&5 +echo "configure:3343: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3371: checking for $ac_func" >&5 +echo "configure:3373: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3422,7 +3424,7 @@ done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:3426: checking stack direction for C alloca" >&5 +echo "configure:3428: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3430,7 +3432,7 @@ else ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else @@ -3472,12 +3474,12 @@ fi echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:3476: checking for pid_t" >&5 +echo "configure:3478: checking for pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3505,12 +3507,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:3509: checking for size_t" >&5 +echo "configure:3511: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3538,12 +3540,12 @@ EOF fi echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 -echo "configure:3542: checking for ssize_t" >&5 +echo "configure:3544: checking for ssize_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3571,12 +3573,12 @@ EOF fi echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:3575: checking for off_t" >&5 +echo "configure:3577: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3604,12 +3606,12 @@ EOF fi echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:3608: checking for mode_t" >&5 +echo "configure:3610: checking for mode_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3637,12 +3639,12 @@ EOF fi echo $ac_n "checking for fd_mask""... $ac_c" 1>&6 -echo "configure:3641: checking for fd_mask" >&5 +echo "configure:3643: checking for fd_mask" >&5 if eval "test \"`echo '$''{'ac_cv_type_fd_mask'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3671,13 +3673,13 @@ fi echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 -echo "configure:3675: checking for socklen_t" >&5 +echo "configure:3677: checking for socklen_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3708,13 +3710,13 @@ EOF fi echo $ac_n "checking for mtyp_t""... $ac_c" 1>&6 -echo "configure:3712: checking for mtyp_t" >&5 +echo "configure:3714: checking for mtyp_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_mtyp_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3742,7 +3744,7 @@ EOF fi echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 -echo "configure:3746: checking for main in -lnsl" >&5 +echo "configure:3748: checking for main in -lnsl" >&5 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3750,14 +3752,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3785,7 +3787,7 @@ else fi echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 -echo "configure:3789: checking for main in -lsocket" >&5 +echo "configure:3791: checking for main in -lsocket" >&5 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3793,14 +3795,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3832,7 +3834,7 @@ if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then echo "skipping libmalloc check (--enable-dlmalloc specified)" else echo $ac_n "checking for main in -lgnumalloc""... $ac_c" 1>&6 -echo "configure:3836: checking for main in -lgnumalloc" >&5 +echo "configure:3838: checking for main in -lgnumalloc" >&5 ac_lib_var=`echo gnumalloc'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3840,14 +3842,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lgnumalloc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3890,7 +3892,7 @@ fi *) echo $ac_n "checking for main in -lmalloc""... $ac_c" 1>&6 -echo "configure:3894: checking for main in -lmalloc" >&5 +echo "configure:3896: checking for main in -lmalloc" >&5 ac_lib_var=`echo malloc'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3898,14 +3900,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lmalloc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3938,7 +3940,7 @@ fi fi echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6 -echo "configure:3942: checking for main in -lbsd" >&5 +echo "configure:3944: checking for main in -lbsd" >&5 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3946,14 +3948,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lbsd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3981,7 +3983,7 @@ else fi echo $ac_n "checking for main in -lregex""... $ac_c" 1>&6 -echo "configure:3985: checking for main in -lregex" >&5 +echo "configure:3987: checking for main in -lregex" >&5 ac_lib_var=`echo regex'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3989,14 +3991,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lregex $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4017,7 +4019,7 @@ else fi echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6 -echo "configure:4021: checking for gethostbyname in -lbind" >&5 +echo "configure:4023: checking for gethostbyname in -lbind" >&5 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4025,7 +4027,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lbind $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4070,7 +4072,7 @@ if test $ac_cv_lib_bind_gethostbyname = "no" ; then ;; *) echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 -echo "configure:4074: checking for inet_aton in -lresolv" >&5 +echo "configure:4076: checking for inet_aton in -lresolv" >&5 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4078,7 +4080,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lresolv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4105,7 +4107,7 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for inet_aton in -l44bsd""... $ac_c" 1>&6 -echo "configure:4109: checking for inet_aton in -l44bsd" >&5 +echo "configure:4111: checking for inet_aton in -l44bsd" >&5 ac_lib_var=`echo 44bsd'_'inet_aton | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4113,7 +4115,7 @@ else ac_save_LIBS="$LIBS" LIBS="-l44bsd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4156,7 +4158,7 @@ else fi echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6 -echo "configure:4160: checking for main in -lresolv" >&5 +echo "configure:4162: checking for main in -lresolv" >&5 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4164,14 +4166,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lresolv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4202,7 +4204,7 @@ fi esac fi echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 -echo "configure:4206: checking for main in -lm" >&5 +echo "configure:4208: checking for main in -lm" >&5 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4210,14 +4212,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4246,7 +4248,7 @@ fi echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 -echo "configure:4250: checking for crypt in -lcrypt" >&5 +echo "configure:4252: checking for crypt in -lcrypt" >&5 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4254,7 +4256,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcrypt $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4298,7 +4300,7 @@ fi echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6 -echo "configure:4302: checking for main in -lpthread" >&5 +echo "configure:4304: checking for main in -lpthread" >&5 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4306,14 +4308,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4348,7 +4350,7 @@ fi case "$host" in *-pc-sco3.2*) echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 -echo "configure:4352: checking for strftime in -lintl" >&5 +echo "configure:4354: checking for strftime in -lintl" >&5 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4356,7 +4358,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4523,6 +4525,7 @@ for ac_func in \ pthread_attr_setscope \ pthread_setschedparam \ pthread_attr_setschedparam \ + pthread_sigmask \ putenv \ random \ regcomp \ @@ -4548,12 +4551,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4552: checking for $ac_func" >&5 +echo "configure:4555: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4602,7 +4605,7 @@ done echo $ac_n "checking if setresuid is implemented""... $ac_c" 1>&6 -echo "configure:4606: checking if setresuid is implemented" >&5 +echo "configure:4609: checking if setresuid is implemented" >&5 if eval "test \"`echo '$''{'ac_cv_func_setresuid'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4610,7 +4613,7 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < @@ -4623,7 +4626,7 @@ else } EOF -if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_setresuid="yes" else @@ -4648,8 +4651,15 @@ fi if test "$IPF_TRANSPARENT" ; then echo $ac_n "checking if IP-Filter header files are installed""... $ac_c" 1>&6 -echo "configure:4652: checking if IP-Filter header files are installed" >&5 - if test "$ac_cv_header_ip_compat_h" = "yes" && +echo "configure:4655: checking if IP-Filter header files are installed" >&5 + # hold on to your hats... + if test "$ac_cv_header_ip_compat_h" = "yes" || + test "$ac_cv_header_ip_fil_compat_h" = "yes" || + test "$ac_cv_header_netinet_ip_compat_h" == "yes" || + test "$ac_cv_header_netinet_ip_fil_compat_h" == "yes" ; then + have_ipfilter_compat_header="yes" + fi + if test "x$have_ipfilter_compat_header" = "xyes" && test "$ac_cv_header_ip_fil_h" = "yes" && test "$ac_cv_header_ip_nat_h" = "yes" ; then IPF_TRANSPARENT="yes" @@ -4657,7 +4667,7 @@ echo "configure:4652: checking if IP-Filter header files are installed" >&5 #define IPF_TRANSPARENT 1 EOF - elif test "$ac_cv_header_netinet_ip_compat_h" = "yes" && + elif test "$have_ipfilter_compat_header" = "yes" && test "$ac_cv_header_netinet_ip_fil_h" = "yes" && test "$ac_cv_header_netinet_ip_nat_h" = "yes" ; then IPF_TRANSPARENT="yes" @@ -4691,13 +4701,13 @@ if test -z "$USE_GNUREGEX" ; then esac fi echo $ac_n "checking if GNUregex needs to be compiled""... $ac_c" 1>&6 -echo "configure:4695: checking if GNUregex needs to be compiled" >&5 +echo "configure:4705: checking if GNUregex needs to be compiled" >&5 if test -z "$USE_GNUREGEX"; then if test "$ac_cv_func_regcomp" = "no" || test "$USE_GNUREGEX" = "yes" ; then USE_GNUREGEX="yes" else cat > conftest.$ac_ext < #include @@ -4705,7 +4715,7 @@ int main() { regex_t t; regcomp(&t,"",0); ; return 0; } EOF -if { (eval echo configure:4709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* USE_GNUREGEX="no" else @@ -4736,12 +4746,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4740: checking for $ac_func" >&5 +echo "configure:4750: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4792,12 +4802,12 @@ done echo $ac_n "checking Default FD_SETSIZE value""... $ac_c" 1>&6 -echo "configure:4796: checking Default FD_SETSIZE value" >&5 +echo "configure:4806: checking Default FD_SETSIZE value" >&5 if test "$cross_compiling" = yes; then DEFAULT_FD_SETSIZE=256 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then DEFAULT_FD_SETSIZE=`cat conftestval` else @@ -4841,7 +4851,7 @@ EOF echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6 -echo "configure:4845: checking Maximum number of filedescriptors we can open" >&5 +echo "configure:4855: checking Maximum number of filedescriptors we can open" >&5 TLDFLAGS="$LDFLAGS" case $host in i386-unknown-freebsd*) @@ -4853,7 +4863,7 @@ if test "$cross_compiling" = yes; then SQUID_MAXFD=256 else cat > conftest.$ac_ext < @@ -4864,9 +4874,11 @@ else main() { FILE *fp; int i,j; -#if __CYGWIN32__ - /* getrlimit and sysconf returns bogous values on cygwin32. +#if defined(__CYGWIN32__) || defined (__CYGWIN__) + /* + * getrlimit and sysconf returns bogous values on cygwin32. * Number of fds is virtually unlimited in cygwin (sys/param.h) + * NOTE: __CYGWIN32__ is deprecated. */ i = NOFILE; #elif HAVE_SETRLIMIT @@ -4910,7 +4922,7 @@ main() { } EOF -if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SQUID_MAXFD=`cat conftestval` else @@ -4937,12 +4949,12 @@ fi LDFLAGS="$TLDFLAGS" echo $ac_n "checking Default UDP send buffer size""... $ac_c" 1>&6 -echo "configure:4941: checking Default UDP send buffer size" >&5 +echo "configure:4953: checking Default UDP send buffer size" >&5 if test "$cross_compiling" = yes; then SQUID_UDP_SO_SNDBUF=16384 else cat > conftest.$ac_ext < @@ -4963,7 +4975,7 @@ main () } EOF -if { (eval echo configure:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SQUID_UDP_SO_SNDBUF=`cat conftestval` else @@ -4982,12 +4994,12 @@ EOF echo $ac_n "checking Default UDP receive buffer size""... $ac_c" 1>&6 -echo "configure:4986: checking Default UDP receive buffer size" >&5 +echo "configure:4998: checking Default UDP receive buffer size" >&5 if test "$cross_compiling" = yes; then SQUID_UDP_SO_RCVBUF=16384 else cat > conftest.$ac_ext < @@ -5008,7 +5020,7 @@ main () } EOF -if { (eval echo configure:5012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SQUID_UDP_SO_RCVBUF=`cat conftestval` else @@ -5027,12 +5039,12 @@ EOF echo $ac_n "checking Default TCP send buffer size""... $ac_c" 1>&6 -echo "configure:5031: checking Default TCP send buffer size" >&5 +echo "configure:5043: checking Default TCP send buffer size" >&5 if test "$cross_compiling" = yes; then SQUID_TCP_SO_SNDBUF=16384 else cat > conftest.$ac_ext < @@ -5053,7 +5065,7 @@ main () } EOF -if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SQUID_TCP_SO_SNDBUF=`cat conftestval` else @@ -5072,12 +5084,12 @@ EOF echo $ac_n "checking Default TCP receive buffer size""... $ac_c" 1>&6 -echo "configure:5076: checking Default TCP receive buffer size" >&5 +echo "configure:5088: checking Default TCP receive buffer size" >&5 if test "$cross_compiling" = yes; then SQUID_TCP_SO_RCVBUF=16384 else cat > conftest.$ac_ext < @@ -5098,7 +5110,7 @@ main () } EOF -if { (eval echo configure:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then SQUID_TCP_SO_RCVBUF=`cat conftestval` else @@ -5117,19 +5129,19 @@ EOF echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6 -echo "configure:5121: checking if sys_errlist is already defined" >&5 +echo "configure:5133: checking if sys_errlist is already defined" >&5 if eval "test \"`echo '$''{'ac_cv_needs_sys_errlist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *s = sys_errlist; ; return 0; } EOF -if { (eval echo configure:5133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_needs_sys_errlist="no" else @@ -5151,16 +5163,16 @@ EOF fi echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6 -echo "configure:5155: checking for libresolv _dns_ttl_ hack" >&5 +echo "configure:5167: checking for libresolv _dns_ttl_ hack" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -5176,12 +5188,12 @@ fi rm -f conftest* echo $ac_n "checking if inet_ntoa() actually works""... $ac_c" 1>&6 -echo "configure:5180: checking if inet_ntoa() actually works" >&5 +echo "configure:5192: checking if inet_ntoa() actually works" >&5 if test "$cross_compiling" = yes; then INET_NTOA_RESULT="broken" else cat > conftest.$ac_ext < @@ -5200,7 +5212,7 @@ main () } EOF -if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then INET_NTOA_RESULT=`cat conftestval` else @@ -5226,9 +5238,9 @@ fi if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then echo $ac_n "checking for working statvfs() interface""... $ac_c" 1>&6 -echo "configure:5230: checking for working statvfs() interface" >&5 +echo "configure:5242: checking for working statvfs() interface" >&5 cat > conftest.$ac_ext < @@ -5245,7 +5257,7 @@ statvfs("/tmp", &sfs); ; return 0; } EOF -if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_func_statvfs=yes else @@ -5265,12 +5277,12 @@ fi fi echo $ac_n "checking for _res.nsaddr_list""... $ac_c" 1>&6 -echo "configure:5269: checking for _res.nsaddr_list" >&5 +echo "configure:5281: checking for _res.nsaddr_list" >&5 if eval "test \"`echo '$''{'ac_cv_have_res_nsaddr_list'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_res_nsaddr_list="yes" else @@ -5315,12 +5327,12 @@ fi if test $ac_cv_have_res_nsaddr_list = "no" ; then echo $ac_n "checking for _res.ns_list""... $ac_c" 1>&6 -echo "configure:5319: checking for _res.ns_list" >&5 +echo "configure:5331: checking for _res.ns_list" >&5 if eval "test \"`echo '$''{'ac_cv_have_res_ns_list'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_res_ns_list="yes" else diff --git a/configure.in b/configure.in index 1ece5a04f6..4f8ac68cc2 100644 --- a/configure.in +++ b/configure.in @@ -3,13 +3,13 @@ dnl Configuration input file for Squid dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.197 2000/07/13 08:38:36 wessels Exp $ +dnl $Id: configure.in,v 1.198 2000/07/18 06:16:19 wessels Exp $ dnl dnl dnl AC_INIT(src/main.c) AC_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.197 $)dnl +AC_REVISION($Revision: 1.198 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AC_CONFIG_AUX_DIR(cfgaux) @@ -793,6 +793,7 @@ AC_CHECK_HEADERS( \ gnumalloc.h \ grp.h \ ip_compat.h \ + ip_fil_compat.h \ ip_fil.h \ ip_nat.h \ libc.h \ @@ -807,6 +808,7 @@ AC_CHECK_HEADERS( \ netinet/in.h \ netinet/tcp.h \ netinet/ip_compat.h \ + netinet/ip_fil_compat.h \ netinet/ip_fil.h \ netinet/ip_nat.h \ poll.h \ @@ -1178,6 +1180,7 @@ AC_CHECK_FUNCS(\ pthread_attr_setscope \ pthread_setschedparam \ pthread_attr_setschedparam \ + pthread_sigmask \ putenv \ random \ regcomp \ @@ -1226,12 +1229,19 @@ dnl IP-Filter support requires ipf header files. These aren't dnl installed by default, so we need to check for them if test "$IPF_TRANSPARENT" ; then AC_MSG_CHECKING(if IP-Filter header files are installed) - if test "$ac_cv_header_ip_compat_h" = "yes" && + # hold on to your hats... + if test "$ac_cv_header_ip_compat_h" = "yes" || + test "$ac_cv_header_ip_fil_compat_h" = "yes" || + test "$ac_cv_header_netinet_ip_compat_h" == "yes" || + test "$ac_cv_header_netinet_ip_fil_compat_h" == "yes" ; then + have_ipfilter_compat_header="yes" + fi + if test "x$have_ipfilter_compat_header" = "xyes" && test "$ac_cv_header_ip_fil_h" = "yes" && test "$ac_cv_header_ip_nat_h" = "yes" ; then IPF_TRANSPARENT="yes" AC_DEFINE(IPF_TRANSPARENT, 1) - elif test "$ac_cv_header_netinet_ip_compat_h" = "yes" && + elif test "$have_ipfilter_compat_header" = "yes" && test "$ac_cv_header_netinet_ip_fil_h" = "yes" && test "$ac_cv_header_netinet_ip_nat_h" = "yes" ; then IPF_TRANSPARENT="yes" @@ -1333,9 +1343,11 @@ AC_TRY_RUN([ main() { FILE *fp; int i,j; -#if __CYGWIN32__ - /* getrlimit and sysconf returns bogous values on cygwin32. +#if defined(__CYGWIN32__) || defined (__CYGWIN__) + /* + * getrlimit and sysconf returns bogous values on cygwin32. * Number of fds is virtually unlimited in cygwin (sys/param.h) + * NOTE: __CYGWIN32__ is deprecated. */ i = NOFILE; #elif HAVE_SETRLIMIT diff --git a/include/autoconf.h.in b/include/autoconf.h.in index 49da5cbc08..23b32db6a2 100644 --- a/include/autoconf.h.in +++ b/include/autoconf.h.in @@ -374,6 +374,9 @@ /* Define if you have the pthread_setschedparam function. */ #undef HAVE_PTHREAD_SETSCHEDPARAM +/* Define if you have the pthread_sigmask function. */ +#undef HAVE_PTHREAD_SIGMASK + /* Define if you have the putenv function. */ #undef HAVE_PUTENV @@ -491,6 +494,9 @@ /* Define if you have the header file. */ #undef HAVE_IP_FIL_H +/* Define if you have the header file. */ +#undef HAVE_IP_FIL_COMPAT_H + /* Define if you have the header file. */ #undef HAVE_IP_NAT_H @@ -533,6 +539,9 @@ /* Define if you have the header file. */ #undef HAVE_NETINET_IP_FIL_H +/* Define if you have the header file. */ +#undef HAVE_NETINET_IP_FIL_COMPAT_H + /* Define if you have the header file. */ #undef HAVE_NETINET_IP_NAT_H diff --git a/lib/util.c b/lib/util.c index 98f7e8ad7c..dcae303f49 100644 --- a/lib/util.c +++ b/lib/util.c @@ -1,6 +1,6 @@ /* - * $Id: util.c,v 1.69 2000/03/27 21:56:21 wessels Exp $ + * $Id: util.c,v 1.70 2000/07/18 06:16:40 wessels Exp $ * * DEBUG: * AUTHOR: Harvest Derived @@ -73,7 +73,11 @@ void (*failure_notify) (const char *) = NULL; static char msg[128]; +#if !defined(__CYGWIN__) extern int sys_nerr; +#else +extern __declspec(dllimport) int sys_nerr; +#endif #if MEM_GEN_TRACE diff --git a/src/cache_cf.cc b/src/cache_cf.cc index c9a328c171..2adb7addd5 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.352 2000/06/25 22:41:21 wessels Exp $ + * $Id: cache_cf.cc,v 1.353 2000/07/18 06:16:40 wessels Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -316,8 +316,11 @@ configDoConfigure(void) if (Config.errHtmlText == NULL) Config.errHtmlText = xstrdup(null_string); storeConfigure(); - if (Config2.Accel.on && !strcmp(Config.Accel.host, "virtual")) + if (Config2.Accel.on && !strcmp(Config.Accel.host, "virtual")) { vhost_mode = 1; + if (Config.Accel.port == 0) + vport_mode = 1; + } if (Config.Sockaddr.http == NULL) fatal("No http_port specified!"); snprintf(ThisCache, sizeof(ThisCache), "%s:%d (%s)", diff --git a/src/carp.cc b/src/carp.cc index 6d39859b95..64dabdb420 100644 --- a/src/carp.cc +++ b/src/carp.cc @@ -1,6 +1,6 @@ /* - * $Id: carp.cc,v 1.9 2000/06/06 19:34:31 hno Exp $ + * $Id: carp.cc,v 1.10 2000/07/18 06:16:41 wessels Exp $ * * DEBUG: section 39 Cache Array Routing Protocol * AUTHOR: Eric Stern @@ -85,7 +85,7 @@ carpInit(void) peer * carpSelectParent(request_t * request) { -#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> ((size(u_long)*8)-(n)))) +#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> ((sizeof(u_long)*8)-(n)))) const char *c; peer *p = NULL; peer *tp; diff --git a/src/cf.data.pre b/src/cf.data.pre index 60e62f8134..10a1a68d43 100644 --- a/src/cf.data.pre +++ b/src/cf.data.pre @@ -1,6 +1,6 @@ # -# $Id: cf.data.pre,v 1.193 2000/07/15 23:56:22 hno Exp $ +# $Id: cf.data.pre,v 1.194 2000/07/18 06:16:41 wessels Exp $ # # # SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -1987,6 +1987,8 @@ DOC_START If you want virtual host support then specify the hostname as "virtual". + If you want virtual port support then specify the port as "0". + NOTE: enabling httpd_accel_host disables proxy-caching and ICP. If you want these features enabled also, then set the 'httpd_accel_with_proxy' option. diff --git a/src/client_side.cc b/src/client_side.cc index 0e8d0df155..cc3bc6c541 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.494 2000/07/16 05:29:43 wessels Exp $ + * $Id: client_side.cc,v 1.495 2000/07/18 06:16:41 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -41,7 +41,11 @@ #endif #include #include -#if HAVE_IP_COMPAT_H +#if HAVE_IP_FIL_COMPAT_H +#include +#elif HAVE_NETINET_IP_FIL_COMPAT_H +#include +#elif HAVE_IP_COMPAT_H #include #elif HAVE_NETINET_IP_COMPAT_H #include @@ -2340,6 +2344,8 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p, int *status, else if (Config2.Accel.on && *url == '/') { /* prepend the accel prefix */ if (opt_accel_uses_host && (t = mime_get_header(req_hdr, "Host"))) { + int vport = (int) Config.Accel.port; + char *q; /* If a Host: header was specified, use it to build the URL * instead of the one in the Config file. */ /* @@ -2349,16 +2355,25 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p, int *status, * refer to www.playboy.com. The 'dst' and/or 'dst_domain' ACL * types should be used to prevent httpd-accelerators * handling requests for non-local servers */ - strtok(t, " :/;@"); + strtok(t, " /;@"); + if ((q = strchr(t, ':'))) { + *q++ = '\0'; + vport = atoi(q); + } url_sz = strlen(url) + 32 + Config.appendDomainLen + strlen(t); http->uri = xcalloc(url_sz, 1); snprintf(http->uri, url_sz, "http://%s:%d%s", - t, (int) Config.Accel.port, url); + t, vport, url); } else if (vhost_mode) { + int vport; /* Put the local socket IP address as the hostname */ url_sz = strlen(url) + 32 + Config.appendDomainLen; http->uri = xcalloc(url_sz, 1); + if (vport_mode) + vport = (int) ntohs(http->conn->me.sin_port); + else + vport = (int) Config.Accel.port; #if IPF_TRANSPARENT natLookup.nl_inport = http->conn->me.sin_port; natLookup.nl_outport = http->conn->peer.sin_port; @@ -2381,18 +2396,15 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p, int *status, } else snprintf(http->uri, url_sz, "http://%s:%d%s", inet_ntoa(http->conn->me.sin_addr), - (int) Config.Accel.port, - url); + vport, url); } else snprintf(http->uri, url_sz, "http://%s:%d%s", inet_ntoa(natLookup.nl_realip), - (int) Config.Accel.port, - url); + vport, url); #else snprintf(http->uri, url_sz, "http://%s:%d%s", inet_ntoa(http->conn->me.sin_addr), - (int) Config.Accel.port, - url); + vport, url); #endif debug(33, 5) ("VHOST REWRITE: '%s'\n", http->uri); } else { @@ -2932,6 +2944,11 @@ clientHttpConnectionsOpen(void) sockaddr_in_list *s; int fd; for (s = Config.Sockaddr.http; s; s = s->next) { + if (MAXHTTPPORTS == NHttpSockets) { + debug(1, 1) ("WARNING: You have too many 'http_port' lines.\n"); + debug(1, 1) (" The limit is %d\n", MAXHTTPPORTS); + continue; + } enter_suid(); fd = comm_open(SOCK_STREAM, 0, diff --git a/src/comm_select.cc b/src/comm_select.cc index b197d846af..19de06a17d 100644 --- a/src/comm_select.cc +++ b/src/comm_select.cc @@ -1,6 +1,6 @@ /* - * $Id: comm_select.cc,v 1.45 2000/06/27 22:06:00 hno Exp $ + * $Id: comm_select.cc,v 1.46 2000/07/18 06:16:41 wessels Exp $ * * DEBUG: section 5 Socket Functions * @@ -320,9 +320,9 @@ comm_poll(int msec) int calldns = 0; static time_t last_timeout = 0; double timeout = current_dtime + (msec / 1000.0); - double start; do { #if !ALARM_UPDATES_TIME + double start; getCurrentTime(); start = current_dtime; #endif diff --git a/src/defines.h b/src/defines.h index fd984789ec..7507821a94 100644 --- a/src/defines.h +++ b/src/defines.h @@ -1,6 +1,6 @@ /* - * $Id: defines.h,v 1.81 2000/05/12 00:29:07 wessels Exp $ + * $Id: defines.h,v 1.82 2000/07/18 06:16:41 wessels Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -239,16 +239,28 @@ /* * Max number of ICP messages to receive per call to icpHandleUdp */ +#ifdef _SQUID_MSWIN_ +#define INCOMING_ICP_MAX 1 +#else #define INCOMING_ICP_MAX 15 +#endif /* * Max number of DNS messages to receive per call to DNS read handler */ +#ifdef _SQUID_MSWIN_ +#define INCOMING_DNS_MAX 1 +#else #define INCOMING_DNS_MAX 15 +#endif /* * Max number of HTTP connections to accept per call to httpAccept * and PER HTTP PORT */ +#ifdef _SQUID_MSWIN_ +#define INCOMING_HTTP_MAX 1 +#else #define INCOMING_HTTP_MAX 10 +#endif #define INCOMING_TOTAL_MAX (INCOMING_ICP_MAX+INCOMING_HTTP_MAX) /* diff --git a/src/dns_internal.cc b/src/dns_internal.cc index 2f2e32fe8c..a30c4b7360 100644 --- a/src/dns_internal.cc +++ b/src/dns_internal.cc @@ -1,6 +1,6 @@ /* - * $Id: dns_internal.cc,v 1.30 2000/07/14 17:45:54 wessels Exp $ + * $Id: dns_internal.cc,v 1.31 2000/07/18 06:16:41 wessels Exp $ * * DEBUG: section 78 DNS lookups; interacts with lib/rfc1035.c * AUTHOR: Duane Wessels @@ -42,6 +42,7 @@ #define DOMAIN_PORT 53 #endif +#define IDNS_MAX_TRIES 20 #define MAX_RCODE 6 #define MAX_ATTEMPT 3 static int RcodeMatrix[MAX_RCODE][MAX_ATTEMPT]; @@ -331,7 +332,7 @@ idnsRead(int fd, void *data) ssize_t len; struct sockaddr_in from; socklen_t from_len; - int max = 10; + int max = INCOMING_DNS_MAX; static char rbuf[512]; int ns; while (max--) { @@ -447,6 +448,10 @@ idnsInit(void) idnsParseNameservers(); if (0 == nns) idnsParseResolvConf(); + if (0 == nns) + fatal("Could not find any nameservers.\n" + " Please check your /etc/resolv.conf file\n" + " or use the 'dns_nameservers' option in squid.conf."); if (!init) { memDataInit(MEM_IDNS_QUERY, "idns_query", sizeof(idns_query), 0); cachemgrRegister("idns", diff --git a/src/enums.h b/src/enums.h index e8f01958a0..7415a46983 100644 --- a/src/enums.h +++ b/src/enums.h @@ -1,6 +1,6 @@ /* - * $Id: enums.h,v 1.168 2000/06/25 22:41:22 wessels Exp $ + * $Id: enums.h,v 1.169 2000/07/18 06:16:41 wessels Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -384,6 +384,9 @@ enum { METHOD_MOVE, METHOD_LOCK, METHOD_UNLOCK, + METHOD_BMOVE, + METHOD_BDELETE, + METHOD_BPROPFIND, METHOD_EXT00, METHOD_EXT01, METHOD_EXT02, diff --git a/src/errorpage.cc b/src/errorpage.cc index c5706e8062..33685197d2 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.153 2000/03/06 16:23:31 wessels Exp $ + * $Id: errorpage.cc,v 1.154 2000/07/18 06:16:41 wessels Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -429,6 +429,11 @@ errorConvert(char token, ErrorState * err) case 'B': p = r ? ftpUrlWith2f(r) : "[no URL]"; break; + case 'c': + assert(err->type >= ERR_NONE); + assert(err->type < ERR_MAX); + p = err_type_str[err->type]; + break; case 'e': memBufPrintf(&mb, "%d", err->xerrno); break; diff --git a/src/globals.h b/src/globals.h index 207b02834e..daf434c0da 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1,6 +1,6 @@ /* - * $Id: globals.h,v 1.96 2000/07/13 06:06:16 wessels Exp $ + * $Id: globals.h,v 1.97 2000/07/18 06:16:41 wessels Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -98,6 +98,7 @@ extern int theOutSnmpConnection; /* -1 */ extern char *snmp_agentinfo; #endif extern int vhost_mode; /* 0 */ +extern int vport_mode; /* 0 */ extern int n_disk_objects; /* 0 */ extern iostats IOStats; extern struct _acl_deny_info_list *DenyInfoList; /* NULL */ diff --git a/src/http.cc b/src/http.cc index 3b483ec00b..0474ac81d6 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.365 2000/07/16 05:31:08 wessels Exp $ + * $Id: http.cc,v 1.366 2000/07/18 06:16:41 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -188,6 +188,8 @@ httpMaybeRemovePublic(StoreEntry * e, http_status status) case METHOD_PROPPATCH: case METHOD_MKCOL: case METHOD_MOVE: + case METHOD_BMOVE: + case METHOD_BDELETE: /* * Remove any cached GET object if it is beleived that the * object may have changed as a result of other methods diff --git a/src/store.cc b/src/store.cc index c00f0f8c65..b10303e4ca 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.528 2000/06/27 08:41:30 hno Exp $ + * $Id: store.cc,v 1.529 2000/07/18 06:16:41 wessels Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -527,6 +527,8 @@ static int storeCheckTooSmall(StoreEntry * e) { MemObject *mem = e->mem_obj; + if (EBIT_TEST(e->flags, ENTRY_SPECIAL)) + return 1; if (STORE_OK == e->store_status) if (mem->object_sz < Config.Store.minObjectSize) return 1; diff --git a/src/store_dir.cc b/src/store_dir.cc index 4e9420df7a..c6169d2a5c 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -1,6 +1,6 @@ /* - * $Id: store_dir.cc,v 1.113 2000/06/26 04:57:17 wessels Exp $ + * $Id: store_dir.cc,v 1.114 2000/07/18 06:16:42 wessels Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -303,6 +303,8 @@ storeDirDiskFull(sdirno dirn) { SwapDir *SD = &Config.cacheSwap.swapDirs[dirn]; assert(0 <= dirn && dirn < Config.cacheSwap.n_configured); + if (SD->cur_size >= SD->max_size) + return; SD->max_size = SD->cur_size; debug(20, 1) ("WARNING: Shrinking cache_dir #%d to %d KB\n", dirn, SD->cur_size); diff --git a/src/store_swapmeta.cc b/src/store_swapmeta.cc index 7a6a3e6ac1..71646672f7 100644 --- a/src/store_swapmeta.cc +++ b/src/store_swapmeta.cc @@ -1,6 +1,6 @@ /* - * $Id: store_swapmeta.cc,v 1.10 2000/03/06 16:23:35 wessels Exp $ + * $Id: store_swapmeta.cc,v 1.11 2000/07/18 06:16:42 wessels Exp $ * * DEBUG: section 20 Storage Manager Swapfile Metadata * AUTHOR: Kostas Anagnostakis @@ -122,7 +122,12 @@ storeSwapMetaUnpack(const char *buf, int *hdr_len) return NULL; xmemcpy(&buflen, &buf[j], sizeof(int)); j += sizeof(int); - assert(buflen > (sizeof(char) + sizeof(int))); + /* + * sanity check on 'buflen' value. It should be at least big + * enough to hold one type and one length. + */ + if (buflen <= (sizeof(char) + sizeof(int))) + return NULL; while (buflen - j > (sizeof(char) + sizeof(int))) { type = buf[j++]; if (type < STORE_META_VOID || type > STORE_META_END) { diff --git a/src/url.cc b/src/url.cc index 809184f930..bbb4801259 100644 --- a/src/url.cc +++ b/src/url.cc @@ -1,6 +1,6 @@ /* - * $Id: url.cc,v 1.126 2000/06/25 22:41:22 wessels Exp $ + * $Id: url.cc,v 1.127 2000/07/18 06:16:42 wessels Exp $ * * DEBUG: section 23 URL Parsing * AUTHOR: Duane Wessels @@ -54,6 +54,9 @@ const char *RequestMethodStr[] = "MOVE", "LOCK", "UNLOCK", + "BMOVE", + "BDELETE", + "BPROPFIND", "%EXT00", "%EXT01", "%EXT02", diff --git a/src/wccp.cc b/src/wccp.cc index 46d01d11bb..da7015e3f2 100644 --- a/src/wccp.cc +++ b/src/wccp.cc @@ -1,6 +1,6 @@ /* - * $Id: wccp.cc,v 1.16 2000/06/27 22:06:05 hno Exp $ + * $Id: wccp.cc,v 1.17 2000/07/18 06:16:42 wessels Exp $ * * DEBUG: section 80 WCCP Support * AUTHOR: Glenn Chisholm @@ -103,8 +103,6 @@ void wccpInit(void) { debug(80, 5) ("wccpInit: Called\n"); - if (eventFind(wccpHereIam, NULL)) - return; memset(&wccp_here_i_am, '\0', sizeof(wccp_here_i_am)); wccp_here_i_am.type = htonl(WCCP_HERE_I_AM); wccp_here_i_am.version = htonl(Config.Wccp.version);