From: Amos Jeffries Date: Sat, 31 Oct 2009 10:06:17 +0000 (+1300) Subject: Wider support for EUI X-Git-Tag: SQUID_3_2_0_1~637 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a98c2da567f9ae13ee2450d9142537f8b44270d9;p=thirdparty%2Fsquid.git Wider support for EUI * Logging * external ACL helper tag * EUI-64 from IPv6 SLAAC addressing * run-time option to enable/disable lookups --- diff --git a/CREDITS b/CREDITS index 4a00651cc0..bb506d5312 100644 --- a/CREDITS +++ b/CREDITS @@ -263,6 +263,38 @@ From Linux libc-5.4.46. ============================================================================== +lib/eui64_aton.h lib/eui64_aton.c: + +/*- + * Copyright 2004 The Aerospace Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions, and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions, and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of The Aerospace Corporation may not be used to endorse or + * promote products derived from this software. + * + * THIS SOFTWARE IS PROVIDED BY THE AEROSPACE CORPORATION "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AEROSPACE CORPORATION BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +============================================================================== + mcast_encode() in src/access_log.c is derived from Mark Atkinson's (mark_a@cix.compulink.co.uk) "Tiny Encryption Algorithm". http://www.io.com/~paulhart/game/algorithms/tea.html diff --git a/configure.in b/configure.in index 51cbce6dc1..07200f8e43 100644 --- a/configure.in +++ b/configure.in @@ -1076,9 +1076,11 @@ AC_ARG_ENABLE(cachemgr-hostname, ]) AM_CONDITIONAL(USE_SQUID_EUI, false) +use_sq_eui="yes" AC_ARG_ENABLE(eui, - AS_HELP_STRING([--enable-eui],[Enable use of ARP / MAC/ EUI (ether address)]), -[ if test "$enableval" = "yes" ; then + AS_HELP_STRING([--disable-eui],[Enable use of ARP / MAC/ EUI (ether address)]), + [use_sq_eui="$enableval"]) +if test "$use_sq_eui" = "yes" ; then AC_MSG_NOTICE([EUI controls enabled (ether address)]) case "$host" in *-linux-*) @@ -1115,8 +1117,9 @@ AC_ARG_ENABLE(eui, ) AC_DEFINE(USE_SQUID_EUI,1,[Define this to include code which lets you use ethernet hardware addresses. This code uses functions found in 4.4 BSD derviations (e.g. FreeBSD, ?).]) AM_CONDITIONAL(USE_SQUID_EUI, true) - fi -]) +else + AC_MSG_NOTICE([EUI controls disabled (ether address)]) +fi USE_HTCP=true AM_CONDITIONAL(ENABLE_HTCP, false) @@ -3285,6 +3288,7 @@ AC_CHECK_FUNCS(\ dnl ... and some we provide local replacements for AC_REPLACE_FUNCS(\ drand48 \ + eui64_aton \ inet_ntop \ inet_pton \ initgroups \ diff --git a/doc/release-notes/release-3.2.sgml b/doc/release-notes/release-3.2.sgml index dcc71782c2..7641215918 100644 --- a/doc/release-notes/release-3.2.sgml +++ b/doc/release-notes/release-3.2.sgml @@ -294,6 +294,9 @@ This section gives a thorough account of those changes in three categories: New tags