[ipv6hackers] Definition of "struct ip6_opt" in Mac OS

Adrian Bool adrian.bool at revolution.net.eu
Tue Jul 17 16:37:53 CEST 2012


Hi Fernando,

On Tue, Jul 17, 2012 at 2:46 PM, Fernando Gont <fgont at si6networks.com>wrote:

> Folks,
>
> While working on porting the IPv6 toolkit to Mac OS, I had to define
> "struct ip6_opt", since apparently it was not defined in netinet/ip6.h
> for Mac OS 10.7.4 (as *is* defined for *BSD and Linux).
>
>
I'm running 10.7.4 and have ip6_opt defined within
/usr/include/netinet/ip6.h

It is defined as,

struct ip6_opt {
        u_int8_t ip6o_type;
        u_int8_t ip6o_len;
} __attribute__((__packed__));

Here's the date stamp for this file,

aid at bullet:/usr/include$ ls -l netinet/ip6.h
-r--r--r--  1 root  wheel  11043 10 Apr 03:30 netinet/ip6.h

Lots of the build tools and libraries come with Xcode now on OS X.  Could
it be that you've got an older version of Xcode installed, with older
libraries?

My Xcode is 4.3.3 - installed from the AppStore.

Kind regards,

Adrian


-- 

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