[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPh34me2T6+GbK3GTwir3kraa6eB-rMFkP_YaHN7Oaeyza6PVw@mail.gmail.com>
Date: Wed, 21 Jan 2015 09:54:02 +0100
From: Hagen Paul Pfeifer <hagen@...u.net>
To: Cong Wang <cwang@...pensource.com>
Cc: Vadim Kochan <vadim4j@...il.com>, netdev <netdev@...r.kernel.org>,
Stephen Hemminger <stephen@...workplumber.org>,
Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [PATCH iproute2 3/3] ss: Unify tcp stats output
20 January 2015 at 19:36, Cong Wang <cwang@...pensource.com> wrote:
> On the other hand, what blocks you from parsing the netlink message
> by yourself? Don't get me wrong, I am not a fan of netlink, but
> generally speaking, ss is not alone, too many scripts and applications
> nowadays parse iproute2 tools output.
Agree, thus the proposal:
1) *new* ss values are "prefixed" by an name to make it possible that
*humans* can understand the value ("make ss output human readable").
Concrete rule for scalar value: key:value. Concrete rule for list of
values: subsystem:(key1:val1,key1:val2). The actual ss output is
nearly formatted matching these rules. E.g. see socket memory for list
formated output. Sure, there are values like SACK that do not need any
prefix and can assumed to be known.
2) add JSON format for scripts and tools.
Hagen
--
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