1 Index: ppp-2.4.3/pppd/auth.c
2 ===================================================================
3 --- ppp-2.4.3.orig/pppd/auth.c 2007-06-04 13:22:07.941647968 +0200
4 +++ ppp-2.4.3/pppd/auth.c 2007-06-04 13:22:13.340827168 +0200
15 new_phase(PHASE_SERIALCONN);
17 devfd = the_channel->connect();
19 int unit, protocol, prot_flavor;
22 + const char *prot = "";
28 switch (prot_flavor) {
30 bit |= CHAP_MD5_WITHPEER;
31 @@ -1006,15 +1014,19 @@
33 BZERO(passwd, MAXSECRETLEN);
42 warn("auth_withpeer_success: unknown protocol %x", protocol);
46 + notice("%s authentication succeeded", prot);
48 /* Save the authentication method for later. */
49 auth_done[unit] |= bit;
59 @@ -1658,14 +1671,12 @@
61 /* Apparently the pam stuff does closelog(). */
63 -#else /* ! USE_PAM */
68 if (strncmp(tty, "/dev/", 5) == 0)
70 logwtmp(tty, "", ""); /* Wipe out utmp logout entry */
71 -#endif /* ! USE_PAM */
75 Index: ppp-2.4.3/pppd/main.c
76 ===================================================================
77 --- ppp-2.4.3.orig/pppd/main.c 2007-06-04 13:22:10.548251704 +0200
78 +++ ppp-2.4.3/pppd/main.c 2007-06-04 13:22:13.340827168 +0200
80 script_unsetenv("BYTES_RCVD");
82 lcp_open(0); /* Start protocol */
84 while (phase != PHASE_DEAD) {
87 Index: ppp-2.4.3/pppd/pppd.h
88 ===================================================================
89 --- ppp-2.4.3.orig/pppd/pppd.h 2007-06-04 13:22:11.615089520 +0200
90 +++ ppp-2.4.3/pppd/pppd.h 2007-06-04 13:22:13.341827016 +0200
93 /* Procedures exported from auth.c */
94 void link_required __P((int)); /* we are starting to use the link */
95 +void start_link __P((int)); /* bring the link up now */
96 void link_terminated __P((int)); /* we are finished with the link */
97 void link_down __P((int)); /* the LCP layer has left the Opened state */
98 void upper_layers_down __P((int));/* take all NCPs down */
99 Index: ppp-2.4.3/pppd/tty.c
100 ===================================================================
101 --- ppp-2.4.3.orig/pppd/tty.c 2007-06-04 13:22:07.960645080 +0200
102 +++ ppp-2.4.3/pppd/tty.c 2007-06-04 13:22:13.341827016 +0200
107 - if (pty_slave >= 0) {
111 - if (real_ttyfd >= 0) {
120 info("Serial link disconnected.");
122 + stop_charshunt(NULL, 0);
129 charshunt_pid = cpid;
130 - add_notifier(&sigreceived, stop_charshunt, 0);
131 record_child(cpid, "pppd (charshunt)", charshunt_done, NULL);