DIP fails with a "getc: I/O error"

DIP fails with a "getc: I/O error"

Post by Venkat R » Sun, 14 May 1995 04:00:00



I am dialing to my SLIP account provider using 'dip', but I always get the
message:

DIP: tty: getc: I/O error

when it is waiting for the password prompt. My provider assigns dynamic
IP addresses. I have a suspicion that the problem might be with my
networking files/daemons. Mine is a standalone machine. I have attached
the output from 'dip -v' and my script itself. Can someone help me with
the problem. Thanks.

Venkat Rao

-------------------------------------------------------
   Output from 'dip -v dial.chat'
-------------------------------------------------------

DIP: Dialup IP Protocol Driver version 3.3.7d-uri (15 July 94)
Written by Fred N. van Kempen, MicroWalt Corporation.

DIP: name=root home=/tmp
     host=localhost IP=127.0.0.1
     prot=SLIP MTU=296

Modem set to "HAYES".

Quote:>> main:
>> get $mtu 1500

About to set variable $mtu to 1500
Quote:>> default

Destination net/address set to 'default'
Quote:>> port cua1

PORT: terminal port set to "cua1".
DIP: tty: open: /dev/cua1 (4) DIP: tty: open: IBUF=1024 OBUF=1020
DIP: tty: set_speed: 38400
DIP: tty: set_databits: 8
DIP: tty: set_stopbits: 1
DIP: tty: set_parity: N
Quote:>> speed 38400

DIP: tty: set_speed: 38400
Quote:>> reset
>> dial 123-4567
>> if $errlvl != 0 goto error
>> wait CONNECT 60
>> if $errlvl != 0 goto error
>> login:
>> sleep 3
>> send \r\n\r\n
>> wait ogin: 10
>> if $errlvl != 0 goto error
>> send usernamep\n
>> wait ssword: 5

DIP: tty: getc: I/O error.               <<<==== This is the error
Quote:>> if $errlvl != 0 goto error
>> print SLIP to $remote failed
SLIP to  failed
>> exit:    

DIP: tty: set_speed: 0

--------------------------------------------------------
    My dial.chat file
--------------------------------------------------------

main:

  get $mtu 1500
  default
  port cua1
  speed 38400
  reset

  # dial ATQ0V1E1X4
  # wait OK 2
  dial 123-4567
  if $errlvl != 0 goto error
  wait CONNECT 60
  if $errlvl != 0 goto error

login:
  sleep 3
  send \r\n\r\n
  wait ogin: 10
  if $errlvl != 0 goto error

  send usernamep\n
  wait ssword: 5
  if $errlvl != 0 goto error
  send mypassword\n

  wait annex: 30
  if $errlvl != 0 goto error

  send slip\n
  wait Annex 30

  get $remote remote
  if $errlvl != 0 goto error
  wait Your 30

  get $local remote
  if $errlvl != 0 goto error

done:
  print Connected to $remote at $rmtip
  print Gateway address $rmtip
  print Local address $local
  mode SLIP
  goto exit

error:
  print SLIP to $remote failed

exit: