Subject: pppd problem
To: None <netbsd-help@netbsd.org>
From: Clarence Chan <ein@netvigator.com>
List: netbsd-help
Date: 02/24/2001 07:31:25
Hello,

THe pppd works for me for a long time.  However,  I found out that there
is a little problem of it.  The error is

================error=============
pc135# ping b1
PING b1 (208.151.73.70): 56 data bytes
ping: sendto: No buffer space available
ping: sendto: No buffer space available
ping: sendto: No buffer space available
ping: sendto: No buffer space available
ping: sendto: No buffer space available
ping: sendto: No buffer space available
ping: sendto: No buffer space available
=========================================

Then I have to discount it and reconnect the line.  Any idea ?  I enclosed
all the files I use for your help.  Thanks.

Clarence

======= dmesg =======
NetBSD 1.5S (GENERIC) #2: Fri Feb 23 02:41:14 HKT 2001
    root@pc135:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX (586-class), 233.23 MHz
cpu0: features 8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8001bf<MMX>
total memory = 81532 KB
avail memory = 69772 KB
using 1044 buffers containing 4176 KB of memory
BIOS32 rev. 0 found at 0xf0400
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439HX System Controller (TXC) (rev. 0x03)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
pciide0 at pci0 dev 7 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
atapibus0 at pciide0 channel 0
cd0 at atapibus0 drive 1: <MATSHITA CR-594, , YS0B> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0 at pciide0 channel 0 drive 0: <IBM-DJNA-371350>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 12949 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 26520480 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
cd0(pciide0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 7 function 2: Intel 82371SB USB Host Controller (PIIX3) (rev. 0x01)
uhci0: interrupting at irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
eap0 at pci0 dev 10 function 0: Ensoniq AudioPCI (rev. 0x00)
eap0: interrupting at irq 9
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
ne2 at pci0 dev 11 function 0: RealTek 8029 Ethernet
ne2: Ethernet address 00:00:b4:55:bb:5f
ne2: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne2: interrupting at irq 10
vga1 at pci0 dev 12 function 0: S3 ViRGE/DX (rev. 0x01)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask e965 netmask ed65 ttymask fde7
IPsec: Initialized Security Association Processing.
ugen0 at uhub0 port 2
ugen0: OmniVision OV511 Camera, rev 1.00/1.00, addr 2
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
IP Filter: v3.4.9 initialized.  Default = pass all, Logging = enabled
fd0f: hard error reading fsbn 0 (st0 40<abnrml> st1 1<no_am> st2 0 cyl 0
head 0 sec 1 )
======= dmesg =======

======= peers =======
/dev/modem 115200		# modem port and speed
connect '/etc/ppp/chat-script "xxxxxxxx"' # connect script
welcome '/sbin/route delete default' # delete any current default routes first
ipparam "hkstar.com x1.y1.z1.a1,x2.y2.z2.a2"
passive				# wait for remote to come up
crtscts				# use hardware flow control
defaultroute			# add default routing when link comes up
lock				# lock the modem port on connect
modem				# use full modem control
noipdefault			# no local defaults for IP addresses
lcp-echo-interval 30		# ping the remote every 30 seconds
lcp-echo-failure 10		# declare link down after 10 pings fail
ipcp-accept-local		# allow remote to specify our IP address
noauth

# conditions for disconnecting
idle 600                # = 10 minutes
#
# demand dailing additions
demand
holdoff 10
202.66.33.135:202.82.0.0
active-filter-in "udp or (tcp and not tcp port ntp)"

ipcp-accept-remote		# allow remote to specify his IP address
netmask 255.255.255.0		# netmask for our assigned IP address
domain hkstar.com		# domain name we're connecting into
user ein			# account name to use to log onto remote
mtu 1500			# maximum transmission size for link
======= peers =======

======= chat-script =======
#!/bin/sh -x
# This script is invoked with one argument, the phone number to call
#  and optionally the account username. If the username in included
#  the chat script used is one that logs into a Terminal Server using
#  a Login protocol. In the absence of the username argument the
#  connection is made to a Server using PAP, CHAP or MS-CHAP authentication.
#
# If the modem requires any special initialization specify the INIT
#  string here.  If uncertain leave this blank or use the value
#  used with the modem when running MacOS (or Windows).
#
MODEM_INIT="ATZ"
#
# Crack the argument string and get the phone number and optionally
#  the account username.
#
NUMBER=`echo $1 | /usr/bin/awk '{print $1}'`
LOGIN=`echo $1 | /usr/bin/awk '{print $2}'`
#
# If LOGIN name is not blank it means we're going to attempt to
#  connect to a Terminal Server using a Login protocol. In that
#  case we need to extract the account password from the pap-secrets
#  file.
#
if [ -n "${LOGIN}" ]; then
     PASSWD=`/usr/bin/grep ${LOGIN} /etc/ppp/pap-secrets | /usr/bin/awk '{print $3}'`
fi
TMP="/tmp/${$}"
#
rm -f ${TMP}
umask 077
echo 'ABORT BUSY' >${TMP}
echo 'ABORT "NO CARRIER"' >>${TMP}
echo 'ABORT "NO DIAL"' >>${TMP}
echo 'TIMEOUT 10' >>${TMP}
echo '"" AT' >>${TMP}
echo 'OK ATZ' >>${TMP}
if [ -n "${MODEM_INIT}" ]; then
    echo "OK ${MODEM_INIT}" >>${TMP}
fi
echo "OK ATDT${NUMBER}" >>${TMP}
echo 'TIMEOUT 60' >>${TMP}
echo 'CONNECT ""' >>${TMP}
#
# This section might require some hand tweeking to deal with the
#  prompt strings received from the Terminal Server during Login
#  and what needs to be sent to bring up the PPP link.  The default
#  here assumes the Server will prompt for Username with "Username:"
#  and Password with "Password:".  Following validation the PPP link
#  is started with the "ppp" command to the Server.
#
if [ -n "${LOGIN}" ]; then
    echo "login:-\r-login: $LOGIN" >>${TMP}
    echo "password: $PASSWD" >>${TMP}
    echo "hkstar-ts> " >>${TMP}
fi
#
# Now invoke the script we just built
#
/usr/sbin/chat -f ${TMP}
======= chat-script =======