aboutsummaryrefslogtreecommitdiff
path: root/lib/packets.c
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2009-11-13 13:21:13 -0800
committerJustin Pettit <jpettit@nicira.com>2010-02-20 02:22:27 -0800
commitb123cc3ce4972378a5e564a89b8945473f561578 (patch)
tree3266b0103c38b102d1b6d7c07be24f514460a148 /lib/packets.c
parent246e61ea75df598de1ef11130ca32407196dd736 (diff)
ofproto: Use 64-bit datapath id and management id (OpenFlow 0.9)
The length of a datapath was changed from 48 bits to 64 bits in OpenFlow 0.9. For parity, we increased the management id size to match. NOTE: This is the final commit in the OpenFlow 0.9 set. Starting with this commit, OVS is OpenFlow 0.9-compliant.
Diffstat (limited to 'lib/packets.c')
-rw-r--r--lib/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/packets.c b/lib/packets.c
index 29c4e7e4..5c51feb1 100644
--- a/lib/packets.c
+++ b/lib/packets.c
@@ -23,7 +23,7 @@
bool
dpid_from_string(const char *s, uint64_t *dpidp)
{
- *dpidp = (strlen(s) == 12 && strspn(s, "0123456789abcdefABCDEF") == 12
+ *dpidp = (strlen(s) == 16 && strspn(s, "0123456789abcdefABCDEF") == 16
? strtoll(s, NULL, 16)
: 0);
return *dpidp != 0;