Changes between Version 6 and Version 7 of Internal/OpenFlow/miscOF
- Timestamp:
- May 23, 2013, 9:08:15 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/OpenFlow/miscOF
v6 v7 29 29 30 30 * creating arbitrary protocol data in Floodlight Ethernet class. You need to 31 32 31 1. Have a zero-argument constructor, and 33 2. add your class and Ethertype to the !etherTypeClassMap !HashMap32 2. add your class and Ethertype to the etherTypeClassMap !HashMap 34 33 35 34 the former is needed for the payload to be de-serialized properly, as class Ethernet calls getInstance() on the class being used as payload. The latter, or else it won't be parsed and casted properly. In addition point 2. implies that your class needs to implement IPacket. The best way to do this is by extending the provided abstract !BasePacket class.