PB with pppd connection.

Hi all,
I had the “fatal signal 11” with pppd during the modem connection to my ISP.
I had installed pathA , and the connection work properly, but now just
after the connection, i have a a message " connection closed because of
a lack of activity". I know that’s a pb with the “idle” value.
I had found the code line in the auth.c from the pppd 1.1.1.1 sources :

static void
check_idle(arg)
void *arg;
{
struct ppp_idle idle;
time_t itime;
int tlim;

if (!get_idle_time(0, &idle))
return;
if (idle_time_hook != 0) {
tlim = idle_time_hook(&idle);
} else {
itime = MIN(idle.xmit_idle, idle.recv_idle);
tlim = idle_time_limit - itime;
}
if (tlim <= 0) {
/* link is idle: shut it down. */
notice(“Terminating connection due to lack of activity.”);
lcp_close(0, “Link inactive”);
need_holdoff = 0;
status = EXIT_IDLE_TIMEOUT;
} else {
TIMEOUT(check_idle, NULL, tlim);
}
}

Does someone know how to configure the phdialer to make pppd running
correctly.
I also saw that my /etc/ppp directory only contain a empty resolv.conf
Is that normal?

Thank you,

Regards,

David.

david godard <dvgodard@wanadoo.fr> wrote:

Hi all,
I had the “fatal signal 11” with pppd during the modem connection to my ISP.
I had installed pathA , and the connection work properly, but now just
after the connection, i have a a message " connection closed because of
a lack of activity". I know that’s a pb with the “idle” value.

The “idle” is in “seconds” (phdialer used to say show “minute”, which
is not correct).

If you don’t set “idle” (keep it blank), then pppd should keep
connet forever, unless your ISP kill the link (because of idle).
Lots of ISP tends to do that.

-xtang

I had found the code line in the auth.c from the pppd 1.1.1.1 sources :

static void
check_idle(arg)
void *arg;
{
struct ppp_idle idle;
time_t itime;
int tlim;

if (!get_idle_time(0, &idle))
return;
if (idle_time_hook != 0) {
tlim = idle_time_hook(&idle);
} else {
itime = MIN(idle.xmit_idle, idle.recv_idle);
tlim = idle_time_limit - itime;
}
if (tlim <= 0) {
/* link is idle: shut it down. */
notice(“Terminating connection due to lack of activity.”);
lcp_close(0, “Link inactive”);
need_holdoff = 0;
status = EXIT_IDLE_TIMEOUT;
} else {
TIMEOUT(check_idle, NULL, tlim);
}
}

Does someone know how to configure the phdialer to make pppd running
correctly.
I also saw that my /etc/ppp directory only contain a empty resolv.conf
Is that normal?

Thank you,

Regards,

David.