Hi, I hacked together support for two network interfaces. Please test it, if you can. If you have two network cards recognized by GNU Mach, try this out and let me know if you can set addresses for both cards, and ping to and fro both networks. Please try also with and without default gateway )and try different settings).
If you have only one card, try if it still works for you. Try with the card and one dummy interface. Again, try different gateway settings. As I don't have a network card at home, your test would let me know if my patch is basically correct. It is only meant as a proof of concept, but if you let me know it works, I will clean it up and expand it to an arbitrary number of network interfaces! So give it a try, please. It's available at http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/pfinet.multi.gz The patch is at http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/pfinet.multi.diff It's against the CVS version, and also includes the dummy patch. Examples: settrans -fg /servers/socket/2 /hurd/pfinet.multi \ -i eth0 -a 192.168.0.1 -m 255.255.255.0 This is a single interface at 192.168.0.1, class C network without gateway. ping 127.0.0.1 and 192.168.0.1 are local, ping 192.168.0.X goes out (X=2...254) while everything else has "Network is unreachable" settrans -fg /servers/socket/2 /hurd/pfinet.multi \ -i eth0 -a 192.168.0.1 -m 255.255.255.0 -g 192.168.0.2 Same as above, but with gateway. Everything else is forwarded to 192.168.0.2 (which hopefully knows what to do). Those work with the old pfinet as well. Now multiple: settrans -fg /servers/socket/2 /hurd/pfinet.multi \ -i eth0 192.168.0.1 -m 255.255.255.0 -g 192.168.0.2 \ -i dummy 192.168.1.1 -m 255.255.255.0 Same as above, but with a dummy interface at 192.168.1.1. Everything sent to 192.168.1.X is lost in the sink. 127.0.0.1, 192.168.0.1, 192.168.1.1 are local. settrans -fg /servers/socket/2 /hurd/pfinet.multi \ -i eth0 192.168.0.1 -m 255.255.255.0 -g 192.168.0.2 \ -i eth1 192.168.1.1 -m 255.255.255.0 Two networks, two cards, with the gateway in the first network (192.168.0) please test such a setup, if you can! I tested two dummy devices, which works. If one or two eth cards don't work, please attach gdb and see if you can get a backtrace (mail me if you need help). Even better, fix the problem and let us know what's wrong. Thanks, Marcus -- `Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server Marcus Brinkmann GNU http://www.gnu.org for public PGP Key [EMAIL PROTECTED], [EMAIL PROTECTED] PGP Key ID 36E7CD09 http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ [EMAIL PROTECTED]