Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/app/rest_firewall.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ryu/app/rest_firewall.py b/ryu/app/rest_firewall.py
index e67ccd5..f007489 100644
--- a/ryu/app/rest_firewall.py
+++ b/ryu/app/rest_firewall.py
@@ -105,9 +105,9 @@ REST_ACTION_ALLOW = 'ALLOW'
 REST_ACTION_DENY = 'DENY'
 
 
-STATUS_FLOW_PRIORITY = ofproto_v1_2_parser.UINT16_MAX
-ARP_FLOW_PRIORITY = ofproto_v1_2_parser.UINT16_MAX - 1
-ACL_FLOW_PRIORITY_MAX = ofproto_v1_2_parser.UINT16_MAX - 2
+STATUS_FLOW_PRIORITY = 0xffff
+ARP_FLOW_PRIORITY = 0xffff - 1
+ACL_FLOW_PRIORITY_MAX = 0xffff - 2
 
 
 class RestFirewallAPI(app_manager.RyuApp):
@@ -208,7 +208,7 @@ class FirewallOfs(object):
 
     def get_cookie(self):
         self.cookie += 1
-        self.cookie &= ofproto_v1_2_parser.UINT64_MAX
+        self.cookie &= 0xffffffffffffffff
         return self.cookie
 
 
-- 
1.8.1.5


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to