floodlight / loxigen-artifacts

This repository tracks loxigen-generated artifacts
Apache License 2.0
1 stars 15 forks source link

ofparse error #4

Open wenxueliu opened 7 years ago

wenxueliu commented 7 years ago

openflowj-2.0.0-SNAPSHOT without correct parse the typelen of 82436 and throw the error as follow when I use ovs-2.4.0.

Caused by: org.projectfloodlight.openflow.exceptions.OFParseError: Unknown value for discriminator typeLen of class OFOxmVer13: 82436 at org.projectfloodlight.openflow.protocol.ver13.OFOxmVer13$Reader.readFrom(OFOxmVer13.java:442) ~[controller.jar:na] at org.projectfloodlight.openflow.protocol.ver13.OFOxmVer13$Reader.readFrom(OFOxmVer13.java:36) ~[controller.jar:na] at org.projectfloodlight.openflow.util.ChannelUtils.readList(ChannelUtils.java:65) ~[controller.jar:na] at org.projectfloodlight.openflow.protocol.OFOxmList.readFrom(OFOxmList.java:102) ~[controller.jar:na] at org.projectfloodlight.openflow.protocol.ver13.OFMatchV3Ver13$Reader.readFrom(OFMatchV3Ver13.java:576) ~[controller.jar:na] at org.projectfloodlight.openflow.protocol.ver13.ChannelUtilsVer13.readOFMatch(ChannelUtilsVer13.java:16) ~[controller.jar:na] at org.projectfloodlight.openflow.protocol.ver13.OFPacketInVer13$Reader.readFrom(OFPacketInVer13.java:542) ~[controller.jar:na] at org.projectfloodlight.openflow.protocol.ver13.OFMessageVer13$Reader.readFrom(OFMessageVer13.java:97) ~[controller.jar:na] at org.projectfloodlight.openflow.protocol.ver13.OFMessageVer13$Reader.readFrom(OFMessageVer13.java:37) ~[controller.jar:na]

wenxueliu commented 7 years ago

I dig the problem the source code is in OFOxmVer13.java, the field is 33 base(printf "%x" 82436 which is 14204) on the of13 correspond to MFF_ND_TLL of ovs's lib/meta-flow.h. May be I have some error.