Groups | Search | Server Info | Login | Register


Groups > alt.sys.pdp10 > #9781

Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX

From jayjwa <jayjwa@atr2.ath.cx.invalid>
Newsgroups alt.sys.pdp10
Subject Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX
Date 2025-11-07 17:21 -0500
Organization Atr2 RG 2025
Message-ID <874ir5xz3u.fsf@atr2.ath.cx> (permalink)
References (2 earlier) <3b30b25f-63d6-49ca-9158-1d885b69c50f@gmail.com> <U4sMQ.286425$pQe6.88687@fx40.iad> <87ms58barw.fsf@atr2.ath.cx> <lmNMQ.1338176$Jgh9.1030418@fx15.iad> <f4ec0455-6031-44e1-af69-f3a7b999ea9e@gmail.com>

Show all headers | View raw


David Todd <HDTodd@gmail.com> writes:

> The DEC20 and Pi can communicate, but booting the DEC20 breaks the
> Pi's networking connection to the rest of the world.
Hence, the bridge and tap black magick. SIMH has a way to do this, and
KLH10 does see the tap you give it (as per my debugging) but it doesn't
use it. Something like in sim_ether.c could be done but it's currently
beyond my skill level:

#if defined(HAVE_TAP_NETWORK)
  if (!strcmp(savname, "tap:tapN"))
    return sim_messagef (SCPE_OPENERR, "Eth: Must specify actual tap device name (i.e. tap:tap0)\n");
#endif
#if (defined(__linux) || defined(__linux__)) && defined(HAVE_TAP_NETWORK)
  if ((tun = open("/dev/net/tun", O_RDWR)) >= 0) {
    struct ifreq ifr; /* Interface Requests */

    memset(&ifr, 0, sizeof(ifr));
    /* Set up interface flags */
    strlcpy(ifr.ifr_name, devname, sizeof(ifr.ifr_name));
    ifr.ifr_flags = IFF_TAP|IFF_NO_PI;

    /* Send interface requests to TUN/TAP driver. */
    if (ioctl(tun, TUNSETIFF, &ifr) >= 0) {
      if (ioctl(tun, FIONBIO, &on)) {
        strlcpy(errbuf, strerror(errno), PCAP_ERRBUF_SIZE);
        close(tun);
        tun = -1;
        }
      else {
        *fd_handle = (SOCKET)tun;
        strcpy(savname, ifr.ifr_name);
        }
      }
    else
      strlcpy(errbuf, strerror(errno), PCAP_ERRBUF_SIZE);
    }
  else
    strlcpy(errbuf, strerror(errno), PCAP_ERRBUF_SIZE);
  if ((tun >= 0) && (errbuf[0] != 0)) {
    close(tun);
    tun = -1;
    }
...    

https://john-millikin.com/creating-tun-tap-interfaces-in-linux

> https://github.com/hdtodd/DECSYSTEM-20-on-Raspberry-Pi/blob/main/Mk20.md
>
> If you read it or try to work through it, please note anything that
> isn't clear or is incorrect.
"gnuemacs' makes use of the arrow keys - TECO "emacs" doesn't.

-- 
PGP Key ID: 781C A3E2 C6ED 70A6 B356  7AF5 B510 542E D460 5CAE
       "The Internet should always be the Wild West!"

Back to alt.sys.pdp10 | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-10-24 09:40 -0400
  Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-10-24 19:29 -0400
    Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-10-25 18:53 -0400
      Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-10-26 03:50 +0000
        Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-10-26 07:10 -0400
          Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-10-26 21:16 +0000
            Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-10-27 15:18 -0400
      Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-10-26 14:51 -0400
    Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-10-28 18:13 -0400
      Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-10-29 13:14 -0400
        Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-10-29 23:51 +0000
        Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-10-30 08:59 -0400
          Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-10-30 13:51 -0400
      Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX scott@slp53.sl.home (Scott Lurndal) - 2025-10-29 17:24 +0000
        Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-10-30 09:04 -0400
        Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-10-30 12:43 -0400
          Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX scott@slp53.sl.home (Scott Lurndal) - 2025-10-30 17:36 +0000
            Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-11-07 13:30 -0500
              Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX scott@slp53.sl.home (Scott Lurndal) - 2025-11-07 21:48 +0000
              Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-11-07 17:21 -0500
                Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-11-08 05:55 -0500
                Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX Lars Brinkhoff <lars.spam@nocrew.org> - 2025-11-08 17:16 +0000
                Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-11-08 15:33 -0500
                Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-11-09 17:45 -0500
                Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX Rich Alderson <news@alderson.users.panix.com> - 2025-11-08 20:42 -0500
                Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-11-08 14:57 -0500
                Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-11-08 15:37 -0500
                Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX Rich Alderson <news@alderson.users.panix.com> - 2025-11-08 20:47 -0500
                Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-11-09 17:58 -0500
                Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX Rich Alderson <news@alderson.users.panix.com> - 2025-11-09 21:00 -0500
          Re: ?TCPIP TOPS-20 <--> Raspberry Pi or Mac OSX David Todd <HDTodd@gmail.com> - 2025-11-01 14:05 -0400

csiph-web