[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"
/* IPv6 options */
struct ip6_opt{
uint8_t  ip6o_type;
uint8_t  ip6o_len;
} __attribute__ ((__packed__));

…and hopefully won't break on 10.8 and above…  I don't have such a system
to test with though.



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

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