$NetBSD$ * enable test on illumos * use ifru_addr_sa that is available both on illumos and linux --- src/lib/dhcp/tests/iface_mgr_unittest.cc.orig 2020-12-12 08:24:07.381603286 +0000 +++ src/lib/dhcp/tests/iface_mgr_unittest.cc @@ -1636,7 +1636,7 @@ TEST_F(IfaceMgrTest, setPacketFilter6) { EXPECT_NO_THROW(iface_mgr->setPacketFilter(custom_packet_filter)); } -#if defined OS_LINUX || OS_BSD +#if defined OS_LINUX || OS_BSD || OS_SOLARIS // This test is only supported on Linux and BSD systems. It checks // if it is possible to use the IfaceMgr to select the packet filter @@ -2716,7 +2716,7 @@ checkIfFlags(const Iface & iface, bool checkIfAddrs(const Iface & iface, struct ifaddrs *& ifptr) { const unsigned char * p = 0; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_SOLARIS) // Workaround for Linux ... if(ifptr->ifa_data != 0) { // We avoid localhost as it has no MAC Address @@ -2740,7 +2740,7 @@ checkIfAddrs(const Iface & iface, struct } const uint8_t * p = - reinterpret_cast(ifr.ifr_ifru.ifru_hwaddr.sa_data); + reinterpret_cast(ifr.ifr_ifru.ifru_addr.sa_data); close(s);