#endif
IpAddress ipAddr = c;
+ ipAddr.SetPort(0); // ARP will fail if the port is included in the match.
#if defined(_SQUID_LINUX_)
acl_arp_data X;
memcpy (X.eth, arpReq.arp_ha.sa_data, 6);
*Top = (*Top)->splay(&X, aclArpCompare);
- debugs(28, 3, "aclMatchArp: '" << c << "' " << (splayLastResult ? "NOT found" : "found"));
+ debugs(28, 3, "aclMatchArp: '" << ipAddr << "' " << (splayLastResult ? "NOT found" : "found"));
return (0 == splayLastResult);
}
if (NULL != strchr(ifr->ifr_name, ':'))
continue;
- debugs(28, 4, "Looking up ARP address for " << c << " on " << ifr->ifr_name);
+ debugs(28, 4, "Looking up ARP address for " << ipAddr << " on " << ifr->ifr_name);
/* Set up structures for ARP lookup */
/* Return if match, otherwise continue to other interfaces */
if (0 == splayLastResult) {
- debugs(28, 3, "aclMatchArp: " << c << " found on " << ifr->ifr_name);
+ debugs(28, 3, "aclMatchArp: " << ipAddr << " found on " << ifr->ifr_name);
return 1;
}
/* Do lookup */
*Top = (*Top)->splay((acl_arp_data *)&arpReq.arp_ha.sa_data, aclArpCompare);
- debugs(28, 3, "aclMatchArp: '" << c << "' " << (splayLastResult ? "NOT found" : "found"));
+ debugs(28, 3, "aclMatchArp: '" << ipAddr << "' " << (splayLastResult ? "NOT found" : "found"));
return (0 == splayLastResult);
}
/* Do lookup */
*Top = (*Top)->splay((acl_arp_data *)&arpReq.arp_ha.sa_data, aclArpCompare);
- debugs(28, 3, "aclMatchArp: '" << c << "' " << (splayLastResult ? "NOT found" : "found"));
+ debugs(28, 3, "aclMatchArp: '" << ipAddr << "' " << (splayLastResult ? "NOT found" : "found"));
return (0 == splayLastResult);
/* Do lookup */
*Top = (*Top)->splay((acl_arp_data *)&arpReq.arp_ha.sa_data, aclArpCompare);
- debugs(28, 3, "aclMatchArp: '" << c << "' " << (splayLastResult ? "NOT found" : "found"));
+ debugs(28, 3, "aclMatchArp: '" << ipAddr << "' " << (splayLastResult ? "NOT found" : "found"));
return (0 == splayLastResult);
/*
* Address was not found on any interface
*/
- debugs(28, 3, "aclMatchArp: " << c << " NOT found");
+ debugs(28, 3, "aclMatchArp: " << ipAddr << " NOT found");
return 0;
}