Sending data to emulated NIC
Sending data to emulated NIC
I need to test my RTL8139 driver, at least will it receive any packets. How can I send a packet to QEMU's network card?
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Re: Sending data to emulated NIC
Just send a packet from any computer (the host is the easiest) on the same network as the QEMU NIC. Make its physical destination address that of your QEMU interface. Or you could just send an ethernet packet to the broadcast destination address (FF:FF:FF:FF:FF:FF). Or you could send a DHCP Discover packet from your QEMU VM; that should result in a reply from your DHCP server.
Re: Sending data to emulated NIC
I don't even know does my code work. Also QEMU says that vlan0 isn't connected to the host network and I don't know any solution. BTW I want to only know did I set up NIC interrupt properly. If it's done properly I'll get the interrupt and "packet received" will be written to the log. I don't want to actually send or receive packets at first time.iansjack wrote:Just send a packet from any computer (the host is the easiest) on the same network as the QEMU NIC. Make its physical destination address that of your QEMU interface. Or you could just send an ethernet packet to the broadcast destination address (FF:FF:FF:FF:FF:FF). Or you could send a DHCP Discover packet from your QEMU VM; that should result in a reply from your DHCP server.
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Re: iansjack
I know.iansjack wrote:Well, the only way you can properly test that it is working is to send and receive some test packets. I
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Re: Sending data to emulated NIC
I always used "Network Traffic Generator and Analyzer" to play with packets. Very nice piece of SW.
http://ostinato.org/
Have fun .-)
http://ostinato.org/
Have fun .-)
[ MicroBe OS ]