projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c69ee87
)
ofproto: Use UINT16_MAX in place of -1, for clarity.
author
Ben Pfaff
<blp@nicira.com>
Fri, 12 Feb 2010 21:58:17 +0000
(13:58 -0800)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index 7ab9dee67fb81822bfb24161859ac99294f5dcd8..a431cc78f00295aeb05f82b4ab562bf2fd589b11 100644
(file)
--- 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);