Closed Aegle1 closed 2 years ago
For non-standard protocol IDs, (ushort)((EthernetType)Protocol) doesn't make sense. Therefore this PR.
I disagree, missing protocols should be added to EtherType. GRE's RFC also cleary states this:
The Protocol Type field contains the protocol type of the payload packet. These Protocol Types are defined in [RFC1700] as "ETHER TYPES" and in [ETYPES]. An implementation receiving a packet containing a Protocol Type which is not listed in [RFC1700] or [ETYPES] SHOULD discard the packet.
Provide non-enum accessor for GRE custom protocols