doing it in link_required(). With the old way, it was restarting
the link in the middle of link_terminated().
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define RCSID "$Id: auth.c,v 1.104 2005/07/09 05:49:44 paulus Exp $"
+#define RCSID "$Id: auth.c,v 1.105 2005/07/12 01:07:59 paulus Exp $"
#include <stdio.h>
#include <stddef.h>
#include <stdio.h>
#include <stddef.h>
/*
* An Open on LCP has requested a change from Dead to Establish phase.
/*
* 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;
*/
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;
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define RCSID "$Id: main.c,v 1.150 2005/03/21 09:20:16 paulus Exp $"
+#define RCSID "$Id: main.c,v 1.151 2005/07/12 01:07:59 paulus Exp $"
#include <stdio.h>
#include <ctype.h>
#include <stdio.h>
#include <ctype.h>
script_unsetenv("BYTES_RCVD");
lcp_open(0); /* Start protocol */
script_unsetenv("BYTES_RCVD");
lcp_open(0); /* Start protocol */
while (phase != PHASE_DEAD) {
handle_events();
get_input();
while (phase != PHASE_DEAD) {
handle_events();
get_input();
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: pppd.h,v 1.89 2004/11/14 22:53:42 carlsonj Exp $
+ * $Id: pppd.h,v 1.90 2005/07/12 01:07:59 paulus Exp $
/* Procedures exported from auth.c */
void link_required __P((int)); /* we are starting to use the link */
/* 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 */
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 */