Network driver for a small OS on Bochs
Posted: Sat Mar 05, 2011 7:54 pm
Hi,
I am still in the early stages of writing a network driver for NE2000 card. The OS will run on bochs.
I wrote an ISR for the interrupt of NIC. But it doesn't fire. The reason is the network packets that I send from the host OS donot reach bochs. I used TAP-Win32 interface. In order to check that the networking is up, I booted up bochs with dlxlinux, and I am able to ping both ways(host <-> guest). But when I boot up bochs with my OS and ping from the host, it says Request Timed Out. I modified the route table, I added static entry to the arp table (because I can't assign an IP address to the nic yet). I also enabled the card to receive broadcast packets. So, when I ping the broadcast address from the host, the packets should reach the nic and the interrupt should fire.. am I correct? But that doesnt happen.
I would like to know if I am right in thinking that the nic will be able to receive the packets and fire the interrupts, when they are broadcast packets (using an IP address). Since I have not yet assigned an IP address or subnet mask, will the packet reach my nic just because there is an arp table entry?
Thank you for your patience,
ADR
I am still in the early stages of writing a network driver for NE2000 card. The OS will run on bochs.
I wrote an ISR for the interrupt of NIC. But it doesn't fire. The reason is the network packets that I send from the host OS donot reach bochs. I used TAP-Win32 interface. In order to check that the networking is up, I booted up bochs with dlxlinux, and I am able to ping both ways(host <-> guest). But when I boot up bochs with my OS and ping from the host, it says Request Timed Out. I modified the route table, I added static entry to the arp table (because I can't assign an IP address to the nic yet). I also enabled the card to receive broadcast packets. So, when I ping the broadcast address from the host, the packets should reach the nic and the interrupt should fire.. am I correct? But that doesnt happen.
I would like to know if I am right in thinking that the nic will be able to receive the packets and fire the interrupts, when they are broadcast packets (using an IP address). Since I have not yet assigned an IP address or subnet mask, will the packet reach my nic just because there is an arp table entry?
Thank you for your patience,
ADR