+static void
+do_dump_dps(int argc UNUSED, char *argv[] UNUSED)
+{
+ struct svec all_dps;
+ unsigned int i;
+ int error;
+
+ svec_init(&all_dps);
+ error = dp_enumerate(&all_dps);
+
+ for (i = 0; i < all_dps.n; i++) {
+ struct dpif dpif;
+ char dpif_name[IF_NAMESIZE];
+
+ if (dpif_open(all_dps.names[i], &dpif)) {
+ continue;
+ }
+ if (!dpif_get_name(&dpif, dpif_name, sizeof dpif_name)) {
+ printf("%s\n", dpif_name);
+ }
+ dpif_close(&dpif);
+ }
+
+ svec_destroy(&all_dps);
+ if (error) {
+ exit(EXIT_FAILURE);
+ }
+}
+