Hi Roman, On Wed, Jun 12, 2019 at 12:01:20PM -0400, Roman Mashak wrote: > Hangbin Liu <liuhang...@gmail.com> writes: > > > Add a new parameter '-Numeric' to show the number of protocol, scope, > > dsfield, etc directly instead of converting it to human readable name. > > Do the same on tc and ss. > > > > This patch is based on David Ahern's previous patch. > > > > [...] > > It would be good idea to specify the numerical format, e.g. hex or dec, > very often hex is more conveninet representation (for example, when > skbmark is encoded of IP address or such).
Some functions use hex and some functions use integer. It's looks hard to unit all functions. I tried to make all the functions use itself printf to keep the compatibility. Only changed function nl_proto_n2a as it was only called by ss, and we removed function nl_proto_n2a. Thanks Hangbin > > Could you think of extending it '-Numeric' to have an optional argument > hex, and use decimal as default.