]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: fix ACL ARP build error.
authorserassio <>
Wed, 23 Jan 2008 05:34:47 +0000 (05:34 +0000)
committerserassio <>
Wed, 23 Jan 2008 05:34:47 +0000 (05:34 +0000)
src/ACLARP.cc

index 7b00f4a04dd1826d392e79ad69baa6e3a150e9d4..31d1816bbc61084920895f5f21844bff298b739d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ACLARP.cc,v 1.27 2008/01/20 17:23:19 serassio Exp $
+ * $Id: ACLARP.cc,v 1.28 2008/01/22 22:34:47 serassio Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -568,7 +568,9 @@ aclMatchArp(SplayNode<acl_arp_data *> **dataptr, IPAddress &c)
 
     /* Find MAC address from net table */
     for (i = 0 ; i < NetTable->dwNumEntries ; i++) {
-        if ((c == (struct in_addr)NetTable->table[i].dwAddr) && (NetTable->table[i].dwType > 2)) {
+        in_addr a;
+        a.s_addr = NetTable->table[i].dwAddr;
+        if (c == a && (NetTable->table[i].dwType > 2)) {
             arpReq.arp_ha.sa_family = AF_UNSPEC;
             memcpy(arpReq.arp_ha.sa_data, NetTable->table[i].bPhysAddr, NetTable->table[i].dwPhysAddrLen);
         }