Skip to content

AmiTCP_NG 4.1.6

Choose a tag to compare

@MW0MWZ MW0MWZ released this 30 Aug 23:18
· 9 commits to main since this release

AmiTCP_NG 4.1.6 — an open, unlimited bsdsocket.library TCP/IP stack for 68k AmigaOS.

A drop-in replacement for Roadshow: same API, same configuration files, same command set, with no time limit and no registration. The ABI is unchanged (4.1), so this is a drop-in upgrade from any 4.1.x and Roadshow's own configuration tools keep working.

The stack picks its copy routine from the CPU it finds itself on. Below a 68020 it uses CopyMemQuick, which is markedly faster there; at 68020 and above it uses CopyMem, which is faster there instead. That decision is made at run time, so one archive gets the right routine on whatever machine it is installed on.

Receiving also folds the checksum into the copy from the network card on 68000/020/030, so the data is walked once instead of twice.

What's new since 4.1.5

  • A long-standing DHCP failure is fixed. On some builds the stack fell back to an APIPA 169.254 address with the interface up and the counters moving. Our own inline assembly declared its argument registers input-only with no clobbers, so the compiler was free to let the receive buffer pointer go stale across a library call and every offer was rejected. The assembly now declares what it actually does to those registers.

  • The stack restarts cleanly after a forced shutdown. A second start used to walk into memory the first one had freed. Routes, addresses and protocol state now come down with the stack instead of being left behind.

  • Device requests are genuinely aborted when an interface goes down. They never were: every request carried the wrong node type, so the abort was silently skipped and teardown could free buffers the driver still owned.

  • Offline deconfigures properly; coming back re-reads the config. Address scrubbed, route dropped, name servers withdrawn — the same whether the device vanished on its own or you asked it to. On the way back a DHCP interface takes a fresh lease rather than reinstating a stale one, and a static interface gets its address, net mask and gateway back.

  • Offline no longer hangs when the interface is already offline. It now waits a bounded time for the driver and tells you if the driver will not answer, instead of sitting there until you reboot. TIMEOUT finally means what it says (default 15 seconds).

  • Applications can be given longer to quit when the network shuts down. NetShutdown breaks the programs still using the stack and gives them four seconds. If that is tight for yours:

    AmiTCPControl SAVE SET net.shutdown_grace=10
    

    Our NetShutdown waits long enough to use it. Roadshow's own waits five seconds, so if you rely on that one, leave the default alone.

  • Applications are told the network has gone. A program blocked in recv or connect gets ENETDOWN instead of waiting for a reply that can never arrive.

  • DNS answers are discarded when the name servers change, rather than outliving the resolver that produced them for up to an hour.

  • The DHCP domain is applied, and the host name is qualified with it — including when the server sends a domain but no host-name option. New read-only hostname command with the switches you already know (-f, -s, -d).

  • Nine new commands, twenty-five in all. PacketCapture writes standard libpcap files, so a capture taken on the Amiga opens in Wireshark. Plus traceroute, arp, AmiTCPControl, RoadshowControl, SampleNetSpeed, NetLogViewer, CheckAmiTCPNGConfig and ManageNetInterfaces.

  • Better company for an existing Roadshow setup. usergroup.library ships, so installing over Roadshow no longer takes it away from whatever was using it, and Roadshow's DEVS:Internet database is read as it stands.

  • Logging says what it meant to. No more truncation at 127 characters, and no more messages quietly dropped during a burst.

  • Sturdier under odd conditions. Interface lookups and address matching no longer trust that every caller passed them something valid, and a device command that a driver never answers is now bounded everywhere rather than waiting for ever.

Known

PiStorm + wifipi.device: taking the interface offline and back online may need the Wi-Fi association re-run first. The failure is reported by WirelessManager, not by the stack. Other SANA-II drivers are unaffected.

Downloads — one archive, every Amiga

AmiTCP_NG-v4.1.6.lha (hard drive) or AmiTCP_NG-v4.1.6.adf (floppy). That is the whole list.

Earlier 4.1.6 test builds came as separate 68020 and 68040 archives. Those are gone: compiling the stack for 020 or 040 was tested and does not make it any faster, so the extra archives only ever offered a way to install something your machine could not run. The choices that genuinely do depend on the processor are made at run time, inside this one binary.

Installing

Double-click Install-AmiTCP_NG. It installs over an existing Roadshow or AmiTCP_NG setup and keeps your configuration; Uninstall puts back what it replaced.

Buy me a coffee ☕

This is a hobby project, done for the love of the Amiga — not to make money, and it will always be free. But if it's useful to you and you fancy buying me a coffee, that's very kind: https://paypal.me/AndyTaylorTweet — entirely optional, and thank you either way.