• Hello Guest! We're hosting a challenge to welcome vintage Intel macs to the MLA during the month of July! See this thread for more information.
  • We've made some quality of life improvements to the Trading Post. More info here.

TashRouter: An AppleTalk Router

I checked it out and it works fine for me. With the new "route_lkup_replies=True" parameter I am able to print from an EtherTalk connected Macintosh to an LocalTalk connected ImageWriter II just fine (good test out for my newly acquired color ribbons!).

At the risk of public humiliation but for anybody else who tries this and also does not read posts correctly. TapPort needs to be renamed to LinuxTapPort in your starting script! ;-)
 
I spoke too soon. After that first print the IMII disappeared from the network. There are these errors:
Jul 11 13:05:14 wolfalice python3[18424]: Exception in thread Thread-13 (_run):
Jul 11 13:05:14 wolfalice python3[18424]: Traceback (most recent call last):
Jul 11 13:05:14 wolfalice python3[18424]: File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 11 13:05:14 wolfalice python3[18424]: self.run()
Jul 11 13:05:14 wolfalice python3[18424]: File "/usr/lib/python3.11/threading.py", line 975, in run
Jul 11 13:05:14 wolfalice python3[18424]: self._target(*self._args, **self._kwargs)
Jul 11 13:05:14 wolfalice python3[18424]: File "/home/chris/src/tashrouter1/tashrouter/service/name_information.py", line 326, in _run
Jul 11 13:05:14 wolfalice python3[18424]: router.route(Datagram(hop_count=0,
Jul 11 13:05:14 wolfalice python3[18424]: File "/home/chris/src/tashrouter1/tashrouter/router/router.py", line 155, in route
Jul 11 13:05:14 wolfalice python3[18424]: entry.port.unicast(datagram.destination_network, datagram.destination_node, datagram)
Jul 11 13:05:14 wolfalice python3[18424]: File "/home/chris/src/tashrouter1/tashrouter/port/localtalk/__init__.py", line 167, in unicast
Jul 11 13:05:14 wolfalice python3[18424]: self._send_frame_with_short_header(node, datagram)
Jul 11 13:05:14 wolfalice python3[18424]: File "/home/chris/src/tashrouter1/tashrouter/port/localtalk/__init__.py", line 152, in _send_frame_with_short_header
Jul 11 13:05:14 wolfalice python3[18424]: self.send_frame(bytes((destination_node, self.node, self.LLAP_APPLETALK_SHORT_HEADER)) + datagram.as_short_header_bytes())
Jul 11 13:05:14 wolfalice python3[18424]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 11 13:05:14 wolfalice python3[18424]: File "/home/chris/src/tashrouter1/tashrouter/datagram.py", line 125, in as_short_header_bytes
Jul 11 13:05:14 wolfalice python3[18424]: raise ValueError('invalid hop count %d, short-header datagrams may not have non-zero hop count' % self.hop_count)
Jul 11 13:05:14 wolfalice python3[18424]: ValueError: invalid hop count 1, short-header datagrams may not have non-zero hop count
 
Back
Top