From: Joshua Rogers Date: Tue, 9 Sep 2025 04:00:06 +0000 (+0000) Subject: Fix debugging of Eui48::lookup() problems (#2211) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f569b9827c3142f86a501b8b847312753698fdd;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 392ff31501..810e2bcca1 100644 --- a/src/eui/Eui48.cc +++ b/src/eui/Eui48.cc @@ -209,7 +209,7 @@ Eui::Eui48::lookup(const Ip::Address &c) xclose(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; }