wireshark: make enums global instead of local

These were exceeding the limit of 200 locals.
Merge into master from pull request #314:
wireshark: make enums global instead of local (https://github.com/floodlight/loxigen/pull/314)