Re: IPv6 temporary address and SSH

Gert Doering <[email protected]>
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
Hi,

On Tue, Nov 28, 2023 at 10:55:08AM -0000, Michael van Elst wrote:
> [email protected] (Gert Doering) writes:
> 
> >Now this sounds highly interesting.  Is this a NetBSD specific thing, or
> >"generic POSIX sockets" or so?  I see FreeBSD has all the #defines in in6.h,
> >while MacOS has the IPV6_PREFER_TEMPADDR but not the IP6PO_ defines..
> 
> https://opensource.apple.com/source/xnu/xnu-1699.24.8/bsd/netinet6/ip6_var.h
> 
> shows
> 
> #define IP6PO_TEMPADDR_SYSTEM   -1 /* follow the system default */
> #define IP6PO_TEMPADDR_NOTPREFER 0 /* not prefer temporary address */   
> #define IP6PO_TEMPADDR_PREFER    1 /* prefer temporary address */

I just looked locally on the Mac in front of me, and there's a twisty
maze of "usr/include" paths in the XCode tree, so maybe I got the wrong
one...  but it seems I do have netinet6/in6.h (many variants) but no
ip6_var.h

A test program trying to print IP6PO_TEMPADDR_SYSTEM will also just
report include / identifier not found...

gert
-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.