Bug 14071

Summary: ppp-watch ignores RETRYTIMEOUT in ifcfg* if we never connected
Product: [Retired] Red Hat Raw Hide Reporter: Alex Kanavin <ak>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-27 15:39:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch for ppp-watch.c none

Description Alex Kanavin 2000-07-16 17:15:30 UTC
ppp-watch only waits the number of seconds specified in RETRYTIMEOUT
if we had a successfull connection before. If we never connected
(for example the line is busy), ppp-watch redials immediately.
I'm using chat (not wvdial). Here are ifcfg and chat files (phone number and password replaced with *).

PERSIST=yes
DEFROUTE=yes
ONBOOT=no
INITSTRING=ATZ
MODEMPORT=/dev/modem
LINESPEED=115200
ESCAPECHARS=no
DEFABORT=yes
HARDFLOWCTL=yes
DEVICE=ppp2
PPPOPTIONS=
DEBUG=no
PAPNAME=
REMIP=
IPADDR=
BOOTPROTO=none
MTU=
MRU=
DISCONNECTTIMEOUT=30
RETRYTIMEOUT=15
USERCTL=yes

'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
'' 'ATZ'
'OK' 'ATDP*'
'TIMEOUT' '120'
'CONNECT' ''
'ogin:' 'ak'
'ord:' '*'
'TIMEOUT' '5'
'~--' ''

Comment 1 Alex Kanavin 2000-08-27 14:16:15 UTC
Created attachment 3038 [details]
Patch for ppp-watch.c

Comment 2 Alex Kanavin 2000-08-27 15:39:55 UTC
Forgot to tell: this patch is for initscripts-5.44-1 from RawHide.

Comment 3 Bill Nottingham 2001-01-29 23:51:36 UTC
Patch will be in initscripts-5.60-1; thanks!

Comment 4 David Lawrence 2008-01-25 19:47:24 UTC
Comment on attachment 3038 [details]
Patch for ppp-watch.c

Comment moved here from attachment description:

I believe this fixes this bug and also fixes a couple of other problems:1)
DISCONNECTTIMEOUT now actually works  2) ppp-watch does not dial if signal
arrived while it was sleeping between dialing attempts 4) It processes such
signals immediately 5) Longer delay and additional checks in idown-ppp between
TERMing pppd and KILLing it (via ppp-watch)