libnl/lib/idiag
Thomas Haller f0e3017d0e idiag: fix idiagnl_exts2str()
idiagnl_exts2str() is used to print req->idiag_ext,
which is the extention types combined as flags, such as
( (1 << (INET_DIAG_TOS - 1)) | (1 << (INET_DIAG_MEMINFO - 1)) ).

This function was wrong from the beginning because the string lookup
array had indexes such as 'INET_DIAG_TOS', instead of '(1 << (INET_DIAG_TOS - 1)'.

Fix also idiagnl_attrs2str() which now converts an extension
type (e.g. INET_DIAG_TOS) to a string. Still this function is
deprecated, as the function name is not clear and it is not
used or very useful.

Fixes: 22eb2569a5
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-11-25 12:28:29 +01:00
..
idiag.c idiag: fix idiagnl_exts2str() 2014-11-25 12:28:29 +01:00
idiag_meminfo_obj.c idiag: remove clone functions from trivial structures 2014-11-24 18:39:27 +01:00
idiag_msg_obj.c idiag: add a oo_compare() function for idiag_msg objects 2014-11-24 18:44:47 +01:00
idiag_req_obj.c idiag: fix a typo in idiagnl_req_set_ifindex() 2014-09-24 07:50:25 +02:00
idiag_vegasinfo_obj.c idiag: remove clone functions from trivial structures 2014-11-24 18:39:27 +01:00