From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20847 invoked from network); 25 May 1999 23:00:37 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 25 May 1999 23:00:37 -0000 Received: from lexis-nexis.com (mx01.lexis-nexis.com [138.12.4.45]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id SAA13141 for ; Tue, 25 May 1999 18:18:47 -0400 Received: from ra.lexis-nexis.com by lexis-nexis.com (8.9.3/8.9.3) with SMTP id SAA19145 for ; Tue, 25 May 1999 18:18:15 -0400 (EDT) Received: by ra.lexis-nexis.com (SMI-8.6/SMI-SVR4) id SAA15866; Tue, 25 May 1999 18:18:15 -0400 From: larrys@lexis-nexis.com (Larry Snyder) Message-Id: <199905252218.SAA15866@ra.lexis-nexis.com> Date: Tue, 25 May 1999 18:18:13 -0400 (EDT) To: axp-list@redhat.com Subject: Re: Kermit? In-Reply-To: X-Mailer: Ishmail 1.3.3-980626-sol MIME-Version: 1.0 Content-Type: text/plain I use a Multia for a f/w myself. It provides NAT and demand isdn ppp management very nicely. Assuming you want to run diskless, you're obviously booting from another box. If it's Linux, try minicom. It it's Sun, tip works. The Multias have both arc and srm firmware, and I'd recommend using a native console with them until you get the box up and running. Mine runs headless, with all services turned off except ssh. If it dies (to the point of not being reachable over the net), I just plug in a kbd & monitor from another box to get in and fix it. -ls- Rui-Tao Dong wrote: > > I have a not quite dead (floppyless and diskless) UDB and I am trying > to make it a dedicated firewall for my cable modem. I need a terminal > program to talk to serial console. > > Has anyone got Kermit working? I got the (very old) rpm from > Columbia, but it crashes on connect. I am having a hard time > compiling it. Does anyone have an RPM? Or has any suggestion on a > better terminal program? I tried to roll my own, but without much luck. > > -- > Regards, > > Rui-Tao (x679) > > /* Usage link /dev/cua0 */ > > #include > #include > #include > #include > > #define BUFSIZE 1024 > > void copy_bytes(int in_fd, int out_fd) > { > char buf[BUFSIZE]; > int rbytes; > > if ( (rbytes=read(in_fd, buf, BUFSIZE)) > 0 ) > { > int wbytes; > char* buf_p=buf; > fprintf(stderr, "Reading %d bytes from %d.\n", rbytes, in_fd); > > while (buf_p < buf+rbytes) > { > int wsize=rbytes+buf-buf_p; > wbytes=write(out_fd, buf_p, wsize); > fprintf(stderr, "Writing %d bytes to %d.\n", wbytes, out_fd); > buf_p += wbytes; > } > if (wbytes < 0) > { > perror("write"); > exit(-1); > } > } > else if (rbytes < 0) > { > perror("read"); > exit(-1); > } > } > > int main(int argc, char** argv) > { > int fd; > fd_set read_set; > /* Initialize the file descriptor set. */ > > if (argc !=2) > { > fprintf(stderr, "Using %s device-file.\n", argv[0]); > return -1; > } > > if ((fd=open(argv[1], O_RDWR)) < 0) > { > perror("open"); > return -1; > } > FD_ZERO (&read_set); > FD_SET (fd, &read_set); > FD_SET (0, &read_set); > > while (1) > { > if ( select(FD_SETSIZE, &read_set, NULL, NULL, NULL) < 0 ) > { > perror("select"); > return -1; > } > > if ( FD_ISSET(fd, &read_set)) > { > copy_bytes(fd, 1); > } > else if (FD_ISSET(0, &read_set)) > { > copy_bytes(0, fd); > } > else > { > return -1; > } > } > > close(fd); > return 0; > } > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com