Code

Mac OX S 10.7 compile fixes.
authorClayton O'Neill <clayton@oneill.net>
Sun, 30 Oct 2011 23:36:46 +0000 (19:36 -0400)
committerFlorian Forster <octo@verplant.org>
Tue, 31 Jan 2012 15:01:07 +0000 (16:01 +0100)
commit3165470b21eef51bf214f474d4b167c2151276a9
tree4ee80faa0c4086ff6d56b00c7d42b9a89821e43c
parent773dbf0378e896f0203ce5d79cccfe86c54512b2
Mac OX S 10.7 compile fixes.

I've attached a patch that's required to be able to compile liboping on
MacOS 10.7 (Lion).  The issue is that the IPv6 API's are changing from
RFC 2292 to 3542, and Apple's headers require you to state which API you
want to use by defining a constant.  I've changed it to use either based
on the presence of constants, but to prefer 3542 on MacOS.

One problem I see with this is that if you have both multicast and
unicast TTL's set, then this won't report both of them, but I'm not sure
if that's even valid and it would require more significant rework.
Also, I noticed you have fixed the IP_RECVTOS issue in head.  That patch
is also required to be able to compile on Solaris and MacOS.

Signed-off-by: Florian Forster <octo@verplant.org>
src/liboping.c