Extract errno value_strings from usb code
authorPeter Wu <peter@lekensteyn.nl>
Mon, 8 Aug 2016 12:51:38 +0000 (14:51 +0200)
committerAnders Broman <a.broman58@gmail.com>
Mon, 12 Jun 2017 06:34:16 +0000 (06:34 +0000)
commit6b09377285919333910810bcb0480f9413c5f452
tree3b086ec093042db1b1de0a6918dd065c3683c027
parente815bbb2e6946e210cd15b1d9c2d280332352c4e
Extract errno value_strings from usb code

The convention of returning negative errno codes from the Linux kernel
is not just limited to usb/usbip, it is also needed by netlink. Now
netlink error codes are properly dissected.

Also add ERFKILL and EHWPOISON (since 2009 and 2011) and change ESTALE
and ENOSYS to match the current description as of Linux 4.7. Fixed
header paths in comments too.

Used this command to generate the table (with fixups for gaps):

    cpp -dM -CC include/uapi/asm-generic/errno.h |
    perl -ne '/^#define (E[A-Z0-9]+) ([0-9]+) \/\* (.+) \*\// &&
    printf "    { -%-4s \"%s (-%s)\" },\n", "$2,", $3, $1' | sort -k2

Change-Id: I16fa41a42bd4201a8383ea8e70a0aa8a597b311d
Reviewed-on: https://code.wireshark.org/review/16952
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/CMakeLists.txt
epan/dissectors/Makefile.am
epan/dissectors/errno.c [new file with mode: 0644]
epan/dissectors/packet-netlink.c
epan/dissectors/packet-usb.c
epan/dissectors/packet-usb.h
epan/dissectors/packet-usbip.c