Skip to content

Commit

Permalink
Added back compile-test to the default in build.xml.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Izard committed Dec 25, 2014
1 parent 6ba1f9d commit 919fc9f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
</target>
<target name="coverage" depends="instrument,test,coverage-report"/>

<target name="dist" depends="compile">
<target name="dist" depends="compile,compile-test">
<jar destfile="${floodlight-jar}" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private int checkFlow(Map<String, Object> rows) {
if (icmp6_type == true) {
//icmp_type must be set to 135/136 to set ipv6_nd_target
if (nd_target == true) {
if (!(icmp_type == 135 || icmp_type == 136)) {
if (!(icmp_type == 135 || icmp_type == 136)) { /* or 0x87 / 0x88 */
//invalid icmp6_type
state = 6;
return state;
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/net/floodlightcontroller/util/MatchUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,11 @@ public static Match fromString(String match, OFVersion ofVersion) throws Illegal
if (ver10 == true) {
throw new IllegalArgumentException("OF Version incompatible");
}
mb.setExact(MatchField.IPV6_FLABEL, IPv6FlowLabel.of(Integer.parseInt(key_value[1])));
if (key_value[1].startsWith("0x")) {
mb.setExact(MatchField.IPV6_FLABEL, IPv6FlowLabel.of(Integer.parseInt(key_value[1].replaceFirst("0x", ""), 16)));
} else {
mb.setExact(MatchField.IPV6_FLABEL, IPv6FlowLabel.of(Integer.parseInt(key_value[1])));
}
break;
//sanjivini

Expand Down

0 comments on commit 919fc9f

Please sign in to comment.