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;