/* Initialize VTTY */ int vm_init_vtty(vm_instance_t *vm) { /* Create Console and AUX ports */ vm->vtty_con = vtty_create(vm,"Console port", vm->vtty_con_type,vm->vtty_con_tcp_port, &vm->vtty_con_serial_option); vm->vtty_aux = vtty_create(vm,"AUX port", vm->vtty_aux_type,vm->vtty_aux_tcp_port, &vm->vtty_aux_serial_option); return(0); }
/* Initialize VTTY */ int vm_init_vtty (vm_instance_t * vm) { int i; /* Create Console and AUX ports */ vm->vtty_con[0] = vtty_create (vm, "Console port", vm->vtty_type[0], vm->vtty_tcp_port[0], &vm->vtty_serial_option[0]); for (i=1; i<NVTTY; i++) vm->vtty_con[i] = vtty_create (vm, "UART port", vm->vtty_type[i], vm->vtty_tcp_port[i], &vm->vtty_serial_option[i]); return (0); }