Use a dissector table instead of strcmp 57/16157/2
authorDave Barach <dave@barachs.net>
Sat, 24 Nov 2018 23:29:26 +0000 (18:29 -0500)
committerDamjan Marion <dmarion@me.com>
Sun, 25 Nov 2018 16:47:45 +0000 (16:47 +0000)
commitc2b4dc598149e9aa2e1727259257b2650f95c683
tree9eab89a8a02244e35ce4f3197f04e4e1b13f2afa
parentce55bcde5d3e4d69af4b9bcd3e8f4c31732a8603
Use a dissector table instead of strcmp

... to map vpp node names to dissector handles.

Wireshark has an easy-to-use string to dissector function handle
hashing scheme, so use it. Thanks to Guy Harris for writing up the
incantation.

Change-Id: I6c1eb609332b0afe87154ba447a98f783e13ca68
Signed-off-by: Dave Barach <dave@barachs.net>
extras/wireshark/packet-vpp.c