Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you don't want to modify other dissectors to make yours work, you can fetch the pointer to the VLAN dissector from the ethertype table and store it in a variable, then register your own dissector to the table instead, and let your dissector call the VLAN one if the VID doesn't match the one you've used to identify your protocol. If it matches, your dissector has to do the job of the VLAN one (or just skip the bytes without dissecting them if you are not a perfectionist).