From 680ec5223516f4efebbf3f9a03c8132d9169c6f1 Mon Sep 17 00:00:00 2001 From: serassio <> Date: Fri, 22 Dec 2006 03:01:00 +0000 Subject: [PATCH] Bug #1853: Support for ARP ACL on NetBSD Patch provided by Jaromir Dolecek --- configure | 2 ++ src/ACLARP.cc | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure b/configure index a74366d81e..458fb634f3 100755 --- a/configure +++ b/configure @@ -20883,6 +20883,8 @@ if test "${enable_arp_acl+set}" = set; then ;; *-openbsd*) ;; + *-netbsd*) + ;; *-cygwin*) LIBS="$LIBS -liphlpapi" ;; diff --git a/src/ACLARP.cc b/src/ACLARP.cc index fbcf6b2ac4..7b2261da01 100644 --- a/src/ACLARP.cc +++ b/src/ACLARP.cc @@ -1,5 +1,5 @@ /* - * $Id: ACLARP.cc,v 1.22 2006/07/29 16:17:29 serassio Exp $ + * $Id: ACLARP.cc,v 1.23 2006/12/21 20:01:00 serassio Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -67,7 +67,7 @@ struct arpreq #endif #include #include -#if defined(_SQUID_FREEBSD_) || defined(_SQUID_OPENBSD_) +#if defined(_SQUID_FREEBSD_) || defined(_SQUID_NETBSD_) || defined(_SQUID_OPENBSD_) #include #endif #if HAVE_NETINET_IF_ETHER_H @@ -437,7 +437,7 @@ aclMatchArp(SplayNode **dataptr, struct IN_ADDR c) return (0 == splayLastResult); } -#elif defined(_SQUID_FREEBSD_) || defined(_SQUID_OPENBSD_) +#elif defined(_SQUID_FREEBSD_) || defined(_SQUID_NETBSD_) || defined(_SQUID_OPENBSD_) struct arpreq arpReq; -- 2.47.3