components/nmap/patches/91.tcpip.cc.patch
author Rich Burridge <rich.burridge@oracle.com>
Mon, 14 Nov 2011 09:59:53 -0800
changeset 585 1d18a6d1c29a
parent 146 8e22ba234817
child 2339 96ba33152279
permissions -rw-r--r--
7096459 convmv says our perl is buggy

--- nmap-5.21/tcpip.cc	2010-01-14 19:55:23.000000000 -0800
+++ nmap-5.21/tcpip.cc	2010-03-09 20:30:38.315876272 -0800
@@ -3124,7 +3124,7 @@
       devs[count].device_type = devt_ethernet;
 
       /* If the device type is ethernet, get the MAC address. */
-#ifdef SIOCGIFHWADDR
+#if defined(SIOCGIFHWADDR) && (!defined(sun) && !defined(__sun) && !defined(__sun__))
       memcpy(&tmpifr.ifr_addr, sin, MIN(sizeof(tmpifr.ifr_addr), sizeof(*sin)));
       rc = ioctl(sd, SIOCGIFHWADDR, &tmpifr);
       if (rc < 0 && errno != EADDRNOTAVAIL)