Andrew Curtis' PCNet Patch built on MingW
Hi All,
It took me some time, but I was finally able to compile Andrew Curtis PCNet patch against QEMU 0.6.0 on MingW...
The good news is it almost works... that is to say it compiles and detects under a guest linux when using the -nic-pcnet commandline parameter for qemu.
The bad news is it's broken, it does not actually dhcp down the 10.0.2.15 address and produces 'Bad SWSTYLE=0x04' on the console.
I suspect my brutal handling of the PACKED attribute in pcnet.h is the cause of this problem, but am unsure. I should proably warn you all that, I'm not a C programmer and haven't coded it for about 7 years, so it's rather a hack job that it compiles... :)
If anyone who builds on Windows would have a go at seeing if they can figure out what's messed up, I'd really appreciated it.
Cheers,
-G
Signature · 3 lines
Northern.CA ===-- http://www.northern.ca/ Canada's Search Engine
Of course, it would help if I included the url to get the stuff, eh?. :)
Here it is: http://www.northern.ca/projects/qemu/
Signature · 3 lines
Northern.CA ===-- http://www.northern.ca/ Canada's Search Engine
Quoted 11 lines · Garth Dahlstrom
Hi All,
It took me some time, but I was finally able to compile Andrew Curtis PCNet patch against QEMU 0.6.0 on MingW...
The good news is it almost works... that is to say it compiles and detects under a guest linux when using the -nic-pcnet commandline parameter for qemu.
The bad news is it's broken, it does not actually dhcp down the 10.0.2.15 address and produces 'Bad SWSTYLE=0x04' on the console.
There is no such SWSTYLE as 0x04 on the PC-Net chip I emulated. You should be able to safely ignore this message.
Quoted 4 lines
I suspect my brutal handling of the PACKED attribute in
pcnet.his the cause of this problem, but am unsure. I should proably warn you all that, I'm not a C programmer and haven't coded it for about 7 years, so it's rather a hack job that it compiles... :)
maybe the PACKED name conflicts with some existing symbol if you are having to undef it... Can you find what the original definition of it is? And perhaps I should call it PCN_PACKED maybe...
Quoted 6 lines
If anyone who builds on Windows would have a go at seeing if they can figure out what's messed up, I'd really appreciated it.
Cheers,
-G
Signature · 3 lines
Antony T Curtis, BSc. UNIX, Linux, *BSD, Networking [email protected] C++, J2EE, Perl, MySQL, Apache IT Consultancy.