From: Joshua Rogers Date: Tue, 9 Sep 2025 04:00:06 +0000 (+0000) Subject: Fix debugging of Eui48::lookup() problems (#2211) X-Git-Tag: SQUID_7_2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64cb72bc1d11a5193bb3a91e76e819e6ec55a3c0;p=thirdparty%2Fsquid.git Fix debugging of Eui48::lookup() problems (#2211) arpReq.arp_ha.sa_data is not a null-terminated buffer. Log meaningful data: the sa_family which caused the log. --- diff --git a/src/eui/Eui48.cc b/src/eui/Eui48.cc index ea2068bfea..ef7a713d3e 100644 --- a/src/eui/Eui48.cc +++ b/src/eui/Eui48.cc @@ -207,7 +207,7 @@ Eui::Eui48::lookup(const Ip::Address &c) close(tmpSocket); if (arpReq.arp_ha.sa_family != ARPHRD_ETHER) { - debugs(28, 4, "id=" << (void*)this << " ... not an Ethernet interface: " << arpReq.arp_ha.sa_data); + debugs(28, 4, "id=" << (void*)this << " ... not an Ethernet interface, sa_family=" << arpReq.arp_ha.sa_family); clear(); return false; }