Hi,
I'm sorry for the late response.
Basically what you need to do is to create a new class that inherits from "Layer" and implement the abstract methods which are:
parseNextLayer,
getHeaderLen,
computeCalculateFields,
toString,
getOsiModelLayer.
You can take VlanLayer as an example and implement something similar.
Then you need to make the changes you mentioned in ProtocolType.h and EthLayer.h
Last you need to parse your new layer right after EthernetII. To do that take a look at EthLayer::parseNextLayer: you need to initiate a new instance of your layer if the correct EtherType comes. See how the other layers are initiated there.
You can try implementing that, I will help in every way I can.
Thanks,