Subject: Re: RFC1933 IPv4 mapped address
To: Matt Thomas <matt@3am-software.com>
From: Andrew Brown <atatat@atatdot.net>
List: tech-net
Date: 12/20/1999 11:31:19
>> >if you're doing a bind to an INET6 socket and using an appropriately
>> >sized sockaddr in the accept call, can't you just check the ipv6
>> >address in the resulting sockaddr via the IN6_IS_ADDR_V4MAPPED() macro
>> >(from rfc2133, and superceded by rfc2553)?
>
>But you don't want the connections to match the listening socket at all
>so the connecting system gets ECONNREFUSED and not an arbitrarily closed
>socket.

ah...well, yes.  in that case, you would want a sysctl and/or a
setsockopt to affect this.  i was misled when someone said the
application didn't know what was connecting...since you can obviously
tell.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."