]> git.ipfire.org Git - thirdparty/iproute2.git/commit
lib: rt_names: Add rtnl_dsfield_get_name()
authorPetr Machata <me@pmachata.org>
Sat, 2 Jan 2021 00:03:35 +0000 (01:03 +0100)
committerDavid Ahern <dsahern@kernel.org>
Mon, 18 Jan 2021 04:09:29 +0000 (04:09 +0000)
commitbf244ee6773486892e3223972afa07f5ab3b66bb
tree18d35ee3b10f4a01d44549c0212cedcf3f832fd8
parentfa2881b664be90bbd14fcbb5534ada68d39b13f1
lib: rt_names: Add rtnl_dsfield_get_name()

For formatting DSCP (not full dsfield), it would be handy to be able to
just get the name from the name table, and not get any of the remaining
cruft related to formatting. Add a new entry point to just fetch the
name table string uninterpreted. Use it from rtnl_dsfield_n2a().

Signed-off-by: Petr Machata <me@pmachata.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
include/rt_names.h
lib/rt_names.c