commit | 820eaee6dd9a01cd686f131404483791a28accc8 | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Mon Jan 12 18:49:28 2015 -0800 |
committer | alshabib <alshabibi.ali@gmail.com> | Mon Jan 12 18:49:28 2015 -0800 |
tree | e11f80fcb8471cb567bed3fc8a19e6a5c5b8d525 | |
parent | 19ba9fc52ea5fbd19b3b4b03126035f35844a6d0 [diff] |
fix for port showing up as negative
diff --git a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/OFPort.java b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/OFPort.java index 155a9db..d96942f 100644 --- a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/OFPort.java +++ b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/OFPort.java
@@ -434,7 +434,7 @@ if (portNumber < 0 && portNumber > OFPP_MAX_SHORT) throw new IllegalArgumentException("Unknown special port number: " + portNumber); - return new OFPort(portNumber); + return new OFPort(U16.f(portNumber)); } }