linux-avmb1:pppdcapiplugin dialmax patch
Matthias Klose
m at klose.in-berlin.de
Fri Oct 29 23:00:02 CEST 2004
Please consider the following patch, original posting at
http://bugs.debian.org/219423
Thanks, Matthias
-------------- next part --------------
# DP: Let "dialmax 0" never give up.
# DP: Patch by Adrian 'Dagurashibanipal' von Bidder
--- isdnutils-3.3.orig/pppdcapiplugin/capiplugin.8
+++ isdnutils-3.3/pppdcapiplugin/capiplugin.8
@@ -299,6 +299,10 @@
.B dialmax \fI<times>
Maximum number of times the list of phone numbers is tried before giving up.
Default value is 4.
+.br
+If dialmax is set to 0,
+the list is retried infinitely until a connection is made
+(or the process is stopped).
.TP
.B dialtimeout \fI<seconds>
--- isdnutils-3.3.orig/pppdcapiplugin/capiplugin.c
+++ isdnutils-3.3/pppdcapiplugin/capiplugin.c
@@ -1635,7 +1635,7 @@
if (status != EXIT_OK)
die(status);
- } while (++retry < opt_dialmax);
+ } while ((++retry < opt_dialmax) || (opt_dialmax == 0));
connected:
if (conn_isconnected(cp)) {
@@ -1697,7 +1697,7 @@
if (status != EXIT_OK)
die(status);
}
- } while (++retry < opt_dialmax);
+ } while ((++retry < opt_dialmax) || (opt_dialmax == 0));
connected:
if (conn_isconnected(cp)) {
@@ -1775,7 +1775,7 @@
info("capiplugin: callback failed (no call)");
}
}
- } while (++retry < opt_dialmax);
+ } while ((++retry < opt_dialmax) || (opt_dialmax == 0));
fatal("capiplugin: callback failed (no call)");
}
More information about the linux-avmb1
mailing list