>> 2nd argument has to be IPPROTO_IPV6. >Is this general, or specific to some OS?
this is general. see draft-ietf-ipngwg-rfc2553bis-07.txt page 18.