components/nmap/patches/libdnet-stripped.src.intf.c.patch
author Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
Fri, 11 Dec 2015 03:49:26 -0800
changeset 5867 445e2cf1c845
parent 1091 ce8b381f34b6
permissions -rw-r--r--
PSARC/2014/169 Net-snmp upgrade to version 5.7.2.1 15685782 SUNBT7005330 NET-SNMP upgrade to 5.7.2.1 15705167 SUNBT7030994 find memory leaks for snmp-notify after doing libfmnotif

--- nmap-6.25/libdnet-stripped/src/intf.c.orig	2012-12-06 13:43:47.010382941 -0800
+++ nmap-6.25/libdnet-stripped/src/intf.c	2012-12-06 13:43:55.634656979 -0800
@@ -339,7 +339,7 @@
 	/* Set link-level address. */
 	if (entry->intf_link_addr.addr_type == ADDR_TYPE_ETH &&
 	    addr_cmp(&entry->intf_link_addr, &orig->intf_link_addr) != 0) {
-#if defined(SIOCSIFHWADDR)
+#if defined(SIOCSIFHWADDR) && (!defined(sun) && !defined(__sun) && !defined(__sun))
 		if (addr_ntos(&entry->intf_link_addr, &ifr.ifr_hwaddr) < 0)
 			return (-1);
 		if (ioctl(intf->fd, SIOCSIFHWADDR, &ifr) < 0)