diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-08-10 13:27:30 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-08-10 13:27:30 +0200 |
commit | bfe3d78c55c8823550d48a7b9f7c2b50926a3142 (patch) | |
tree | dae32a5941cf7a225629d74bfe6776e3834a5e11 /src | |
parent | d9638539eb82b74d9efc7abb0d71b2deb68a2547 (diff) | |
download | abaos-bfe3d78c55c8823550d48a7b9f7c2b50926a3142.tar.gz abaos-bfe3d78c55c8823550d48a7b9f7c2b50926a3142.tar.bz2 |
more testing with UDP
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 4 | ||||
-rw-r--r-- | src/drivers/net/rtl8139.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index feb7685..0817887 100644 --- a/src/Makefile +++ b/src/Makefile @@ -178,7 +178,7 @@ run-qemu-usb: image.bin run-qemu: image.bin qemu-system-i386 -cpu 486 -usb \ - -netdev user,id=net0,net=10.0.0.0/24,host=10.0.0.2,dhcpstart=10.0.0.16,hostfwd=tcp::8080-:80 \ + -netdev user,id=net0,net=10.0.0.0/24,host=10.0.0.2,dhcpstart=10.0.0.16,hostfwd=tcp::8080-:80,hostfwd=udp::8081-:81 \ -device rtl8139,netdev=net0 \ -object filter-dump,id=net0,netdev=net0,file=network.log \ -d guest_errors -m 32 -drive "file=image.bin,if=floppy,format=raw" \ @@ -186,7 +186,7 @@ run-qemu: image.bin run-qemu-debug: image.bin qemu-system-i386 -cpu 486 -usb \ - -netdev user,id=net0,net=10.0.0.0/24,host=10.0.0.2,dhcpstart=10.0.0.16,hostfwd=tcp::8080-:80 \ + -netdev user,id=net0,net=10.0.0.0/24,host=10.0.0.2,dhcpstart=10.0.0.16,hostfwd=tcp::8080-:80,hostfwd=udp::8081-:81 \ -device rtl8139,netdev=net0 \ -object filter-dump,id=net0,netdev=net0,file=network.log \ -S -s -d guest_errors -m 32 -drive "file=image.bin,if=floppy,format=raw" \ diff --git a/src/drivers/net/rtl8139.c b/src/drivers/net/rtl8139.c index 3dafaef..c500842 100644 --- a/src/drivers/net/rtl8139.c +++ b/src/drivers/net/rtl8139.c @@ -269,7 +269,7 @@ static void handle_receive_packet( rtl8139_t *rtl8139 ) uint16_t len = *( (uint16_t *)buffer ); buffer += sizeof( uint16_t ); #ifdef DEBUG - printf( "rtl8139: rcv len: %d\n", len ); + printf( "rtl8139: rcv len: %d\n", len - 4 ); #endif #ifdef DEBUG |