ofproto: Use UINT16_MAX in place of -1, for clarity.
authorBen Pfaff <blp@nicira.com>
Fri, 12 Feb 2010 21:58:17 +0000 (13:58 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 12 Feb 2010 21:58:17 +0000 (13:58 -0800)
Reported-by: Jesse Gross <jesse@nicira.com>
ofproto/ofproto.c

index 7ab9dee67fb81822bfb24161859ac99294f5dcd8..a431cc78f00295aeb05f82b4ab562bf2fd589b11 100644 (file)
@@ -2801,7 +2801,7 @@ add_flow(struct ofproto *p, struct ofconn *ofconn,
                                 &packet, &in_port);
     } else {
         packet = NULL;
-        in_port = -1;
+        in_port = UINT16_MAX;
     }
 
     rule_insert(p, rule, packet, in_port);