commit | 551888298a26526816b79183114c8851d5ca509d | [log] [tgz] |
---|---|---|
author | abat <abat@bigswitch.com> | Tue Jan 13 12:54:31 2015 -0800 |
committer | abat <abat@bigswitch.com> | Tue Jan 13 12:54:31 2015 -0800 |
tree | 89b1d28c40da397260503019f6a9f69af79cdca6 | |
parent | 346d40d1b5b64fd57a3d13a402da989e5927438f [diff] | |
parent | bb66cd52ad0c947b1761ac859a4b5a4770c37e34 [diff] |
Merge into master from pull request #375: fix to support ports > 32768 (https://github.com/floodlight/loxigen/pull/375)
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)); } }