Changes between Version 6 and Version 7 of Internal/OpenFlow/miscOF


Ignore:
Timestamp:
May 23, 2013, 9:08:15 PM (12 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/miscOF

    v6 v7  
    2929
    3030 * creating arbitrary protocol data in Floodlight Ethernet class. You need to
    31 
    3231    1. Have a zero-argument constructor, and
    33     2. add your class and Ethertype to the !etherTypeClassMap !HashMap
     32    2. add your class and Ethertype to the etherTypeClassMap !HashMap
    3433   
    3534 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.