Nmap Development mailing list archives

Re: Nmap fails to compile under OS X Lion


From: David Fifield <david () bamsoftware com>
Date: Sat, 17 Sep 2011 22:18:14 -0700

On Tue, Jul 26, 2011 at 08:43:01AM +0430, Babak Farrokhi wrote:
You may also want to try defining __APPLE_USE_RFC_3542 in libnetutil/netutil.cc as a temporary fix.

Thanks, I think this is the right fix and I have applied it.

What's happening is that there are two RFCs defining IPv6 socket APIs:
2292 and 3542. Apple wants you to declare what behavior you want by
defining either __APPLE_USE_RFC_2292 or __APPLE_USE_RFC_3542. Here's
what <netinet6/in6.h> says:

/*
 * RFC 3542 define the following socket options in a manner incompatible 
 * with RFC 2292:
 *   IPV6_PKTINFO
 *   IPV6_HOPLIMIT
 *   IPV6_NEXTHOP
 *   IPV6_HOPOPTS
 *   IPV6_DSTOPTS
 *   IPV6_RTHDR
 * 
 * To use the new IPv6 Sockets options introduced by RFC 3542
 * the constant __APPLE_USE_RFC_3542 must be defined before 
 * including <netinet/in.h>
 *
 * To use the old IPv6 Sockets options from RFC 2292
 * the constant __APPLE_USE_RFC_2292 must be defined before
 * including <netinet/in.h>
 *
 * Note that eventually RFC 3542 is going to be the 
 * default and RFC 2292 will be obsolete.
 */

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: