Fix bug in parsing large datapath IDs.
authorBen Pfaff <blp@nicira.com>
Thu, 21 Oct 2010 17:40:05 +0000 (10:40 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 21 Oct 2010 17:40:20 +0000 (10:40 -0700)
commit093ca5b366899cb187ac0fb70b9308eeb8f452eb
tree3d783099d6c8db3ebb57c9b2991e68d54f3b8e1b
parent4b6b46ce8a846269cf2ac95cea964ced7482030e
Fix bug in parsing large datapath IDs.

Datapath IDs are unsigned, but dpid_from_string() was parsing them as
signed integers, which caused high values to be capped at INT64_MAX.

Also, document that datapath IDs may not be all-zero.

Reported-by: Pankaj Thakkar <thakkar@nicira.com>
Reported-by: Teemu Koponen <koponen@nicira.com>
AUTHORS
lib/packets.c
utilities/ovs-openflowd.8.in
vswitchd/vswitch.xml