datapath: Use rtnl_link_stats64
[openvswitch] / lib / packets.c
index 29c4e7e4a9e3a9bd9820d69fb9afb84f5d6ee8bb..5c51feb1f3d289490de750063c8e9d79214df822 100644 (file)
@@ -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;