I had a similar problem (using pppoatm plugin).
After hangup I got this error instead of tcsetattr... :
connect: Address already in use (8.35)

Digging in ppp bug tracking system I found this patch will solve the problem : (see http://ppp.samba.org/cgi-bin/ppp-bugs/resolved?id=1206)

diff -urN ppp-2.4.3.orig/pppd/auth.c ppp-2.4.3/pppd/auth.c
--- ppp-2.4.3.orig/pppd/auth.c  2005-11-13 15:22:20.316599000 +0100
+++ ppp-2.4.3/pppd/auth.c       2005-11-13 15:22:42.628207448 +0100
@@ -526,12 +526,19 @@

/*
 * An Open on LCP has requested a change from Dead to Establish phase.
- * Do what's necessary to bring the physical layer up.
 */
void
link_required(unit)
    int unit;
{
+}
+
+/*
+ * Bring the link up to the point of being able to do ppp.
+ */
+void start_link(unit)
+    int unit;
+{
    char *msg;

    new_phase(PHASE_SERIALCONN);
diff -urN ppp-2.4.3.orig/pppd/main.c ppp-2.4.3/pppd/main.c
--- ppp-2.4.3.orig/pppd/main.c  2005-11-13 15:22:20.319598000 +0100
+++ ppp-2.4.3/pppd/main.c       2005-11-13 15:22:42.630207144 +0100
@@ -537,6 +537,7 @@
       script_unsetenv("BYTES_RCVD");

       lcp_open(0);            /* Start protocol */
+       start_link(0);
       while (phase != PHASE_DEAD) {
           handle_events();
           get_input();
diff -urN ppp-2.4.3.orig/pppd/pppd.h ppp-2.4.3/pppd/pppd.h
--- ppp-2.4.3.orig/pppd/pppd.h  2005-11-13 15:22:20.321598000 +0100
+++ ppp-2.4.3/pppd/pppd.h       2005-11-13 15:22:42.631206992 +0100
@@ -527,6 +527,7 @@

/* Procedures exported from auth.c */
void link_required __P((int));   /* we are starting to use the link */
+void start_link __P((int));      /* bring the link up now */
void link_terminated __P((int));  /* we are finished with the link */
void link_down __P((int)); /* the LCP layer has left the Opened state */
void upper_layers_down __P((int));/* take all NCPs down */



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to