Guide on how to test network of OS with Qemu ?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
wichtounet
Member
Member
Posts: 90
Joined: Fri Nov 01, 2013 4:05 pm
Location: Fribourg, Switzerland
Contact:

Re: Guide on how to test network of OS with Qemu ?

Post by wichtounet »

Thanks for your answers :)
mariuszp wrote:
wichtounet wrote:Here is the pcap file: https://baptiste-wicht.ch/thor.pcap

The RST packets are not from me and the first FIN,ACK packets neither. Pretty painful when I'm debugging TCP.
1) are you sure one of those addresses isn't QEMU's DHCP server?
2) is some form of NAT involved?
3) is there a firewall involved?
1) Qemu DHCP is 10.0.2.2 and the addresses involved in TCP are 10.0.2.15-16
2) Not that I know of. At least not on my part, but maybe Qemu does something of that sort
3) No firewall. The only two virtual machines are running my OS and I have nothing like a firewall. The host neither.
mariuszp wrote:In fact, is your TCP segment structure correct? Perhaps you are accidentally setting the wrong bit.
There may be errors in my TCP packets for sure, but I'm not sending all these packets. If I count the packets, I send less that what is shown.

I dont' think it's a bug on my side, I simply think that Qemu is using is using TCP for listen/connect and I'd like to get rid of these, at least in the pcap files.
Thor Operating System: C++ 64 bits OS: https://github.com/wichtounet/thor-os
Good osdeving!
Post Reply