From: Ben Pfaff Date: Wed, 11 Mar 2009 23:22:53 +0000 (-0700) Subject: dpctl: Remove nl: special case that no longer makes sense. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3a6e2340de3cd1ce951142eeeb66073ada3a78b;p=openvswitch dpctl: Remove nl: special case that no longer makes sense. It looks like this was always broken anyway, since the "name" that was computed was never used. --- diff --git a/utilities/dpctl.c b/utilities/dpctl.c index a01c04f5..053e8e0a 100644 --- a/utilities/dpctl.c +++ b/utilities/dpctl.c @@ -1243,16 +1243,7 @@ static void do_monitor(const struct settings *s UNUSED, int argc UNUSED, char *argv[]) { struct vconn *vconn; - const char *name; - /* If the user specified, e.g., "nl:0", append ":1" to it to ensure that - * the connection will subscribe to listen for asynchronous messages, such - * as packet-in messages. */ - if (!strncmp(argv[1], "nl:", 3) && strrchr(argv[1], ':') == &argv[1][2]) { - name = xasprintf("%s:1", argv[1]); - } else { - name = argv[1]; - } open_vconn(argv[1], &vconn); for (;;) { struct ofpbuf *b;