Skip to content

AmiTCP_NG 4.1.5

Choose a tag to compare

@MW0MWZ MW0MWZ released this 08 Aug 02:24
· 10 commits to main since this release

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

Successor to 4.1.4, validated on emulated AmigaOS 3.2 and on real 68k hardware (PiStorm + wifipi.device). The bsdsocket.library ABI is unchanged (4.1), so this is a drop-in for the 4.1.x line and for Roadshow's own configuration tools.

What's new since 4.1.4

  • Asynchronous socket events — and Amiga Explorer works. AmiTCP 3.0b2 predates the AmiTCP V4 event API, so this fork never had it. SO_EVENTMASK, SBTC_SIGEVENTMASK, the FD_* set and a real GetSocketEvents() all land here. A Roadshow-model client failed at its very first setsockopt — which is exactly why Amiga Explorer reported "Error initializing socket connection". Confirmed working on real hardware. 15 further missing SocketBaseTags come with it: UDP checksums, IP forwarding and TTL, four ICMP controls, byte counters, log and error hooks, address-change notification.

  • "The network dies until I reboot" — the permanent part is fixed. Recovery depended on the very device the stack had lost contact with, and reads and writes shared one buffer pool that only that recovery refilled. Once drained, nothing was posted to the card — which is why no counter ever moved. The stack now wakes itself on pool exhaustion, from the watchdog, and at teardown. What makes it stall in the first place is still unknown, so if you can reproduce it, please say so on the issue tracker.

  • ARP that doesn't shout. The 4.3BSD base broadcast a fresh ARP request for every packet to an unresolved address — no rate limit, no cap — and told the application its data had been sent. Now: one request a second, a bounded burst, then a hold-down that reports the host unreachable instead of transmitting into silence. A resolved entry is re-checked by unicast probe rather than trusted for twenty minutes, and ordinary inbound traffic confirms a peer is alive, so a connection carrying data is never probed at all.

  • Logging that writes something. It had never written a byte in any version — messages were composed, queued and dropped, and the timestamp call jumped through an unopened timer.device. Three switches now: LOGGING (on), LOGLEVEL (5), LOGCONSOLE (off), so you can keep a quiet log file without a console window in your face. LOGLEVEL=7 also names any library call that fails and its errno — in every build, no special binary, because a diagnostic that needs a custom build can't diagnose a machine you can't reach.

  • Security & correctness sweep of kern, netinet, net and api. udp_input() never rejected a sender-supplied length smaller than the UDP header, so a forged datagram corrupted a socket's byte accounting — a remote denial of service against any bound port, needing no handshake and no valid checksum. The ARexx access-control table overflowed on its first ADD ACCESS. Plus a set of races around the descriptor table, the errno pointer, and stranded ARexx messages.

  • More of the command set, and an installer that upgrades properly. netstat, nslookup, ftp, tftp and sntp now ship with the stack. The installer delivers new configuration settings to existing installations, which it had been silently failing to do. The first library call of any kind now starts the stack — 39 vectors didn't, and the machine stopped dead without a word.

Also carried forward from the 4.1.x line: SACK loss recovery, RFC 1323 window scaling, a full DHCP client, RFC 3927 IPv4 link-local, a DNS cache, Berkeley Packet Filter capture/injection, self-tuning to installed RAM and link speed, and the Roadshow-compatible extension API and command set. The IP-filter ipf_* vectors remain deliberately deferred.

Known

Copying large files is still slower than Roadshow on a fast link (#1) — not addressed in this release.

Downloads — pick the archive for your CPU

When unsure, the plain 68000 build is always safe.

Archive CPU
AmiTCP_NG-v4.1.5.lha / .adf 68000 — every 68k Amiga
AmiTCP_NG-v4.1.5-68020.lha / .adf 68020+ (A1200 / A3000)
AmiTCP_NG-v4.1.5-68040.lha / .adf 68040+ (A4000, PiStorm / Vampire)

The 020/040 builds emit CPU-specific instructions — don't run them on a lesser CPU.

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.