[ipv6hackers] Definition of "struct ip6_opt" in Mac OS
Adrian Bool
adrian.bool at revolution.net.eu
Fri Jul 20 11:05:10 CEST 2012
The following seems to work OK on my system,
#if defined(__APPLE__)
#include "AvailabilityMacros.h"
#ifndef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
/* IPv6 options */
struct ip6_opt{
uint8_t ip6o_type;
uint8_t ip6o_len;
} __attribute__ ((__packed__));
#endif
#endif
…and hopefully won't break on 10.8 and above… I don't have such a system
to test with though.
aid
--
Adrian Bool, Director, Network Revolution Limited
e adrian.bool at revolution.net.eu
w http://revolution.net.eu/
m +44 7525 781 982
*Learn and share IPv6 knowledge for free at
**http://ipv6exchange.net/*<http://ipv6exchange.net/>
Network Revolution Limited, 145-157 St John Street, London, EC1V 4PW,
United Kingdom.
Registered in England and Wales, 7607414.
More information about the Ipv6hackers
mailing list