From f3a6e2340de3cd1ce951142eeeb66073ada3a78b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 11 Mar 2009 16:22:53 -0700 Subject: [PATCH] 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. --- utilities/dpctl.c | 9 --------- 1 file changed, 9 deletions(-) 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; -- 2.30.2