I need an small program written in C that do some tasks using the network interface. Its not a program of high level programming.
The program has to be writen in C, its low level programming project.
Bochs is required to be used. [url removed, login to view] (Bochs is an emulator of virtual machines).
Basically the program must have a menu:
For example, press one to know if the network cable is connected in the network card, press two for transmit one byte by the network interface, and so on.
What i need is that the program perform tasks by interpreting the information that the I/O addresses of memory assigned to the network card have. In Bochs the network card is set in the port 300.
The network card uses a group of addresses to operate. In those addresses there is stored information about what the network card does. In need that the program displays basic information about the operation of the network card. Some of the tasks that I have proposed to deploy in the program are:
-- Find out if the network cable is connected. (for example: press one to know if the cable is plugged or not. If plugged and the user press one, a message says: the cable is connected.)
-- Transmit a byte (or a data packet) and explain the state of the transmission.
-- Knowing the mac address of the network card. (And if possible, change it)
If you can make other options instead of the ones i am propossing, no problem. Just i need to work with the I/O Addresses asigned to the network card.
The Bochs comes with TURBO C. the program must compile there and run in the MS-DOS that comes with Bochs.
This is supposed to be a simple task for a good C programmer. So please, if you think you can do it and you need more details from me, bid and let me know. My teacher said that he can do it easliy but i am not a low lever programmer.
I am attaching a program written in C that does some tasks with the network card so you can find out what i need. You can use the program i am attaching to develop what i need.
I didn't yet forget how things are done at low level. I've read and understood the source you provided (ne2000.c), and I'm sure I can write the program you need in several hours.