use 4711 as "rlogin port"
This commit is contained in:
parent
2cf7647200
commit
dc679f44d5
2 changed files with 3 additions and 4 deletions
|
@ -70,10 +70,10 @@ $(NAME).elf:
|
|||
$Q$(OBJCOPY_FOR_TARGET) $(STRIP_DEBUG) $(NAME).elf
|
||||
|
||||
qemu: newlib tools $(NAME).elf
|
||||
qemu -monitor stdio -smp 2 -net nic,model=rtl8139 -net user,hostfwd=tcp::12345-:7 -net dump -kernel metalsvm.elf -initrd tools/initrd.img
|
||||
qemu -monitor stdio -smp 2 -net nic,model=rtl8139 -net user,hostfwd=tcp::12345-:4711 -net dump -kernel metalsvm.elf -initrd tools/initrd.img
|
||||
|
||||
qemudbg: newlib tools $(NAME).elf
|
||||
qemu -S -s -smp 2 -net nic,model=rtl8139 -net user,hostfwd=tcp::12345-:7 -net dump -kernel metalsvm.elf -initrd tools/initrd.img
|
||||
qemu -S -s -smp 2 -net nic,model=rtl8139 -net user,hostfwd=tcp::12345-:4711 -net dump -kernel metalsvm.elf -initrd tools/initrd.img
|
||||
|
||||
gdb: $(NAME).elf
|
||||
make qemudbg > /dev/null &
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#undef errno
|
||||
extern int errno;
|
||||
|
||||
#define PORT 4211
|
||||
#define PORT 4711
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
@ -38,7 +38,6 @@ int main(int argc, char* argv[])
|
|||
unsigned int addrlen;
|
||||
struct sockaddr_in my_name, peer_name;
|
||||
int status;
|
||||
int cmd, i=0;
|
||||
pid_t pid;
|
||||
|
||||
/* create a socket */
|
||||
|
|
Loading…
Add table
Reference in a new issue