diff options
Diffstat (limited to 'ctrl/libhicnctrl/src/cli.c')
-rw-r--r-- | ctrl/libhicnctrl/src/cli.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ctrl/libhicnctrl/src/cli.c b/ctrl/libhicnctrl/src/cli.c index 879454c3a..fc81139d6 100644 --- a/ctrl/libhicnctrl/src/cli.c +++ b/ctrl/libhicnctrl/src/cli.c @@ -401,7 +401,8 @@ parse_options(int argc, char *argv[], hc_command_t * command) goto ERR_PARAM; command->face.face.remote_port = atoi(argv[optind++]); if (argc != optind) { - netdevice_set_name(&command->face.face.netdevice, argv[optind++]); + //netdevice_set_name(&command->face.face.netdevice, argv[optind++]); + command->face.face.netdevice.index = atoi(argv[optind++]); } break; @@ -439,7 +440,8 @@ parse_options(int argc, char *argv[], hc_command_t * command) goto ERR_PARAM; command->face.face.remote_port = atoi(argv[optind++]); if (argc != optind) { - netdevice_set_name(&command->face.face.netdevice, argv[optind++]); + command->face.face.netdevice.index = atoi(argv[optind++]); + //netdevice_set_name(&command->face.face.netdevice, argv[optind++]); } } break; |