Dissector: register a name for a ethertype
I am making a new dissector, that is triggered on an specific ethertype. I register it like this:
```c
static dissector_handle_t foo_handle;
foo_handle = create_dissector_handle(dissect_foo_sos, proto_foo_sos);
dissector_add_uint("ethertype", FOO_PROTO_ETHERTYPE, foo_handle);
```
The dissector works great, but when browsing the capture, the llc.type
type corresponding to the ethertype I am parsing, is shown as Type: Unknown (0x1234)
.
Is there a way to register a protocol name for this specific ethertype?
Is that really your code? The "foo"s and the "wiyo"s don't seem to match up.
See the end of packet-aarp.c for a simple example.
No, sorry, I have corrected it.