From 165cd8a38b058e67c1554253bebc5e49a3b61314 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 12 Feb 2010 13:58:17 -0800 Subject: [PATCH] ofproto: Use UINT16_MAX in place of -1, for clarity. Reported-by: Jesse Gross --- ofproto/ofproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 7ab9dee6..a431cc78 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -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); -- 2.30.2