]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1853: Support for ARP ACL on NetBSD
authorserassio <>
Fri, 22 Dec 2006 03:01:00 +0000 (03:01 +0000)
committerserassio <>
Fri, 22 Dec 2006 03:01:00 +0000 (03:01 +0000)
Patch provided by Jaromir Dolecek

configure
src/ACLARP.cc

index a74366d81e20232f555166338eebb9968ba23a35..458fb634f39102b7a18e4afe9136b9e5a21c83fd 100755 (executable)
--- a/configure
+++ b/configure
@@ -20883,6 +20883,8 @@ if test "${enable_arp_acl+set}" = set; then
            ;;
        *-openbsd*)
            ;;
+       *-netbsd*)
+           ;;
        *-cygwin*)
         LIBS="$LIBS -liphlpapi"
            ;;
index fbcf6b2ac4603a966b47b562b16fb978421b6099..7b2261da01ae706e39382e4e50af638c8c298fe6 100644 (file)
@@ -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 <net/route.h>
 #include <net/if.h>
-#if defined(_SQUID_FREEBSD_) || defined(_SQUID_OPENBSD_)
+#if defined(_SQUID_FREEBSD_) || defined(_SQUID_NETBSD_) || defined(_SQUID_OPENBSD_)
 #include <net/if_arp.h>
 #endif
 #if HAVE_NETINET_IF_ETHER_H
@@ -437,7 +437,7 @@ aclMatchArp(SplayNode<acl_arp_data *> **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;