use 4711 as "rlogin port"

This commit is contained in:
Stefan Lankes 2011-09-27 12:47:52 +02:00
parent 2cf7647200
commit dc679f44d5
2 changed files with 3 additions and 4 deletions

View file

@ -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 &

View file

@ -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 */