Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 May 2008 08:40:56 +0100
From:      "Bruce M. Simpson" <bms@incunabulum.net>
To:        Julian Elischer <julian@elischer.org>
Cc:        freebsd-net@freebsd.org, Edwin Groothuis <edwin@mavetju.org>
Subject:   Re: IPPROTO_DIVERT and PF_INET6
Message-ID:  <48215D08.5050500@incunabulum.net>
In-Reply-To: <4821535B.8050001@elischer.org>
References:  <20080503100043.GA68835@k7.mavetju>	<m2od7k7e5z.wl%Jinmei_Tatuya@isc.org>	<481F6AE1.5020408@elischer.org> <20080505231009.GX44028@k7.mavetju> <481F95DE.6090201@elischer.org> <4821330E.8030101@incunabulum.net> <4821535B.8050001@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer wrote:
> actually the divert sockets should really not be in PF_INET
> they could deliver both inet and inet6 packets.
> the sockaddr that they return (and which needs to be read for divert
> to make sense) could be used to distinguish between them.

Good point. I'd forgotten that they were abusing the fields in sin_zero. 
This is not OK for IPv6, although the kludge can still be perpetuated by 
looking at sa_len and stashing what divert wants at the end of sockaddr_in6.

So there IS a case for making them a separate protocol family if 
someone's going to do a clean implementation of divert sockets for IPv6.

cheers
BMS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48215D08.5050500>