netlink: dissect errors and more flags, improve display and help
authorPeter Wu <peter@lekensteyn.nl>
Sat, 6 Aug 2016 14:42:19 +0000 (16:42 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Sun, 7 Aug 2016 21:04:47 +0000 (21:04 +0000)
commitef8098cb3778e2c93c4c235528e15b9fd849fb53
tree10b57c889cb0b2c154f97f226743eec8d7dc2c15
parentbad783b38ad33b96884ef2c679fde754fb39cf5d
netlink: dissect errors and more flags, improve display and help

Print "Protocol-specific" instead of "Unknown (0x0016)" for the type
since its interpretation depend on the subprotocol.

Dissect struct nlmsgerr (refactor and reuse the header dissection code).
Dissect Dump interrupted and Dump filtered flags.

Adjust field descriptions and value_string based on the netlink(7)
manual and linux/netlink.h. Display Flags as hex instead of decimal.
Expanded inline tabs, renamed netlink.hdr_flags.match_all to
netlink.hdr_flags.match for consistency.

Change-Id: If2b5c8d2b68fd94e70d1d8b98e63171b42b0d65c
Reviewed-on: https://code.wireshark.org/review/16932
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
epan/dissectors/packet-netlink.c
epan/dissectors/packet-netlink.h