Skip to main content
Home Forums 68kMLA An idea: TCP/IP to serial bridge (modem emulator) — #2
Post #2 by porter
Source Forum68kMLA
CategoryNetworking
Post DateThu, 7 Aug 2008 - 23:38
Original URLhttps://68kmla.org/bb/threads/an-idea-tcp-ip-to-serial-bridge-modem-emulator.14384/
Post
I have written two programs...

(a) "macipd", a gateway for MacIP on DDP and converts it to and from SLIP.

( B) "slippery", a SLIP to PPP convertor .

Both work in a posix environment, eg Linux, NetBSD, Darwin, OSX.

So the way I run this is...

macipd establishes the AF_APPLETALK socket and handles the IPGATEWAY and IPADDRESS.

It spawns a child process that it talks to using SLIP to exchange the IP packets with the real IP network.

The child process I use talks SLIP on one side to talk the macipd, and PPP on the other side to talk to pppd.

So on my network a compact mac talks as follows...

Code:
Mac -> LocalTalk -> AsantePrint -> Ethernet -> [ macipd -> slippery -> pppd ]
Where macipd, slippery and pppd are running on a NetBSD box.

This can also be:

Code:
Mac -> LocalTalk -> Mac with LocalTalkBridge -> Ethernet -> [ macipd -> slippery -> pppd ]
When I original wrote macipd, the operating systems (Linux, NetBSD) generally supported SLIP on pseudo-terminals, when they dropped this support I then wrote the "slippery" program so my gateway did not need to change, it still talked SLIP.

On a System 6/7 Mac though things are rather different. You would want to use CTB to interface with the serial interface, and then would need total ownership of the ethernet for IP purposes. Eg, would not be able to have MacTCP running.

On a System 8/9 Mac you are in OpenTransport territory, driving the ethernet is quite different, but again you can't have the operating system trying to use IP on the ethernet while you are.

You could use two ethernet interfaces, one for the OS/MacTCP/OT, one for the gateway.

mp.ls