reposting to this list (replied to author only).
----- Forwarded message from Jason Nicholls <[EMAIL PROTECTED]> -----
From: Jason Nicholls <[EMAIL PROTECTED]>
To: Matthew Davidson <[EMAIL PROTECTED]>
Subject: Re: [SLUG] Mac OS, basiliskii
Date: Sun, 22 Apr 2001 11:52:39 +0800
G'day,
On Sun, Apr 15, 2001 at 12:29:53PM +1000, Matthew Davidson wrote:
> I got BasiliskII running using the 7.5.3 OS downloaded from apple's
> website. I have a perverse fascination with emulators, and this had me
> giggling with delight for hours. Got Netscape, and even Wolfenstein3D
> running quite acceptably on a PII.
After seeing some BasiliskII posts I decided to give it a go too. I was
interested in playing an old game I used to run on our old Mac SE/II called
Dark Castle!.
> One thing I never managed to get working was the "sheepnet" network
> drivers, rendering it pretty much useless. Anybody works out how to do
> this, I'd be grateful for a mini-HOWTO. It requires something called
> ethertap, which I noticed as an "experimental" option in some 2.2
> kernels, but can't find it in 2.4.
I managed to get networking working but it's not 100%. Let me
explain. BTW, I'm using MacOS 7.5.5 with OpenTransport 1.1.2 and BasiliskII
0.9-2 (JIT compiler enabled).
- Tried the ethertap way (using 2.2.19). Involved enabling "Kernel/User
netlink socket" (Networking options menu), and "Ethertap" (Network device
support menu). It's probably not in kernel 2.4 because they wanted to
remove it altogether after 2.2.
- Setup a tap network interface, started up BasiliskII and was never able to
get it to work. Nor did I see any traffic on the interface with tcpdump,
although I'm not sure tcpdump would work on the tap device anyway...
- Decided to try sheep_net instead. In the BasiliskII source tree, switch
into "src/Unix/Linux/NetDriver/" and "make". This created a loadable kernel
module that I copied into my normal modules directory. I ran depmod then
modprobe and it was inserted fine. ie: _no_ kernel src/compile mumbo-jumbo.
- With sheep_net you don't need to setup any separate ethernet devices, just
configure BasiliskII to use an existing one such as eth0. In my case eth0
has the IP address 192.168.1.1. On the Mac side of things configure the
ethernet to use a _different_ IP address on the same network, eg:
192.168.1.2.
- After all this I was beginning to see traffic on the device but things were
not working that well. First of all OpenTransport uses an MTU of 1500 and I
don't know whether MTU discovery would be working because of the way it was
setup. BTW, MTU on my lan is 1412 because of ADSL. I found some utility to
fix this so no big problem.
Next up I couldn't communicate with 192.168.1.1 at all. Nothing showed up
on the local or eth0 interface and anything I did just hang there. eg:
trying to connect to a web server or DNS on 192.168.1.1. At this point I
configured DNS to use Telstra's servers.
Web sort of worked. The explanation that follows is probably full of holes
but I'll try to describe the behaviour from a non-technical stand point
first:
- DNS was working
- Hitting a web site that redirected (eg: ADSL customers might try
www.vic.bigpond.net au -> www.telstra.com) would redirect the
browser. I was using Netscape 4.03 and IE 4.x?
- Actually loading a page would fail (hang).
(BTW: I'd like to get some utils like ping traceroute etc... for a
mac)
Looking at eth0 with tcp dump revealed that web pages were hanging because
incoming TCP packets from the web server were being dropped and ICMP
"destination unreachable"s being sent back. There was also ARP traffic on
the interface: "who has 192.168.1.2, tell 192.168.1.1". Duh! we have
192.168.1.2 spaz. I tried setting up interface and host routes but that
didn't help.
- By this time I was getting pretty bored of the whole thing but I tried one
last thing. Turn off ARP. (ifconfig eth0 -arp). Bang the Mac side of things
started to work BUT the linux side of things broke. ie: my ssh session to
another host on the lan died, and I couldn't do any traffic to
local/external hosts.
[UPDATE: I wasn't sure about this last step because I did a couple things at
the same time. I just ran another test and it appears, despite having icmp
messages sent back, pages load without having to turn off arp. BTW, I'm using
192.168.1.3 for the mac ethernet and here is some of the dump:
12:10:29.588888 < 134.7.1.85.www > 192.168.1.3.1319: F 24119:24119(0) ack 284
win 31556 (DF)
12:10:29.640075 > arp who-has 192.168.1.3 tell 192.168.1.1 (8:0:2b:3f:da:22)
12:10:30.640106 > 192.168.1.1 > 134.7.1.85: icmp: host 192.168.1.3 unreachable
[tos 0xc0]
12:10:30.640232 > 192.168.1.1 > 134.7.1.85: icmp: host 192.168.1.3 unreachable
[tos 0xc0]
12:10:30.640686 > 192.168.1.1 > 134.7.1.85: icmp: host 192.168.1.3 unreachable
[tos 0xc0]
12:10:32.632148 < arp who-has 192.168.1.3 tell 192.168.1.20
Setting a route for 192.168.1.3 will get rid of lan arp requests bot the
"192.168.1.3 tell 192.168.1.1" remains. 192.168.1.20 is the gw.
/UPDATE]
Wow, that was a long post. I'm sure I could narrow down the problem and get it
working correctly but it wasn't worth the time. No doubt the problems will bug
me _until_ I determine exactly what the cause is though ;) Perhaps some people
on the list that have much better TCP/IP knowledge can help me out.
In the end Dark Castle didn't run cause it needs a classic mac, but a new Dark
Castle Colour demo ran fine ;)
Later,
Jason Nicholls
--------------------------------------------------------------------
Jason Nicholls icq: 11745841 email: <[EMAIL PROTECTED]>
Proprietor mobile: 0417 410 811
Mind Socket [web services] http://www.mindsocket.com.au/
--------------------------------------------------------------------
----- End forwarded message -----
Regards,
Jason Nicholls
--------------------------------------------------------------------
Jason Nicholls icq: 11745841 email: <[EMAIL PROTECTED]>
Proprietor mobile: 0417 410 811
Mind Socket [web services] http://www.mindsocket.com.au/
--------------------------------------------------------------------
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug