[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1427290352.25985.111.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Wed, 25 Mar 2015 06:32:32 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: roopa@...ulusnetworks.com, netdev@...r.kernel.org,
vadim4j@...il.com
Subject: Re: [PATCH iproute2] lib utils: fix family during af_bit_len
calculation
On Tue, 2015-03-24 at 15:05 -0700, Stephen Hemminger wrote:
> On Tue, 17 Mar 2015 19:18:28 -0700
> roopa@...ulusnetworks.com wrote:
>
> > From: Roopa Prabhu <roopa@...ulusnetworks.com>
> >
> > commit f3a2ddc124e0 ("lib utils: Use helpers to get AF bit/byte len")
> > used a wrong family or family of zero in the default case
> > during af_bit_len calculation causing ip route commands to
> > fail with below error
> >
> > Error: an inet prefix is expected rather than "10.0.2.14/24".
> >
> > Reported-by: Sven-Haegar Koch <haegar@...net.de>
> > Signed-off-by: Roopa Prabhu <roopa@...ulusnetworks.com>
>
> Applied, thanks everybody
okay... but... still not good.
Could someone add some basic regression tests on ss command ?
Vadim, can you take a look at this problem for example ?
root@...mazet-glaptop2:/usr/src/iproute2# ss --version ; ss -t dst 1.2.3.4
ss utility, iproute2-ss131122
State Recv-Q Send-Q Local Address:Port Peer Address:Port
(This was the expected result, and an old ss command is working)
But with current git tree we now have :
root@...mazet-glaptop2:/usr/src/iproute2# misc/ss --version ; misc/ss -t dst 1.2.3.4 | head -4
ss utility, iproute2-ss150210
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 172.29.161.170:37914 74.125.201.138:https
ESTAB 0 0 172.29.161.170:60388 74.125.69.189:https
ESTAB 0 0 172.29.161.170:42870 74.125.69.188:5228
Meaning filter does not work anymore.
A second problem I noticed are these, although they are not new.
root@...mazet-glaptop2:/usr/src/iproute2# misc/ss -ta dst ::1
Error: an inet prefix is expected rather than ":".
Cannot parse dst/src address.
root@...mazet-glaptop2:/usr/src/iproute2# misc/ss -ta dst ::ffff:1.2.3.4
Error: "1.2.3.4" does not look like a port.
Cannot parse dst/src address.
Thanks so much guys.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists