ofproto: Maximum value of "int" is INT_MAX, not UINT32_MAX.
authorBen Pfaff <blp@nicira.com>
Fri, 9 Apr 2010 21:04:10 +0000 (14:04 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 13 Apr 2010 18:13:53 +0000 (11:13 -0700)
commit392804e7ee2753cea831503fbdbafc2d7780862a
tree6c96fb5b8db0cdfa5bd53ec3e4d864329c9f8de5
parent999f0d4588503af5a7645ed2f64764bd48c29b9b
ofproto: Maximum value of "int" is INT_MAX, not UINT32_MAX.

This bug seems to be dormant at the moment, since the -1 gets passed
through unchanged to do_send_packet_in() and then to make_packet_in()
and then gets converted to SIZE_MAX as part of the MIN invocation in that
function.  It is still better to fix it.

Reported-by: Jean Tourrilhes <jt@hpl.hp.com>
ofproto/ofproto.c