On Mon, Oct 16, 2017 at 07:49:58PM -0700, Stephen Hemminger wrote:
> On Mon, 16 Oct 2017 19:00:36 -0700
> Eric Dumazet <eric.duma...@gmail.com> wrote:
> 
> > On Mon, 2017-10-16 at 14:28 -0700, Stephen Hemminger wrote:
> > > On Mon, 16 Oct 2017 20:44:07 +0000
> > > Humberto Alves <hjal...@live.com> wrote:
> > >   
> > > > Yes, just get rid of this 'if statement'.
> > > > in6addr_any should be represented as '::', not '*'. Otherwise it's 
> > > > impossible to distinguish IPv4 listening addresses from IPv6. Thank you 
> > > > :)  
> > > 
> > > But IPv6 accepts IPv4 as well.  
> > 
> > Not always (IPV6_V6ONLY socket option)
> > 
> > I agree that this recent change in ss is problematic.
> > 
> > Please give us back a way to distinguish IPV6 and IPv4
> 
> What about
>       *:80    << both IPV6 and IPV4
>       [::]:80 << IPV6_ONLY
>       0.0.0.0:80  << IPV4_ONLY

Assuming that this will be distinguished based on INET_DIAG_SKV6ONLY
attribute, tc will then use the asterisk for v6only sockets on older
kernels not supporting the feature.

Fine with me, just a heads-up!

Cheers, Phil

Reply via email to