1 diff -urN -x'*.swp' ppp.old/pppd/auth.c ppp.dev/pppd/auth.c
2 --- ppp.old/pppd/auth.c 2004-11-12 11:30:51.000000000 +0100
3 +++ ppp.dev/pppd/auth.c 2005-07-13 14:54:23.000000000 +0200
14 new_phase(PHASE_SERIALCONN);
16 devfd = the_channel->connect();
18 int unit, protocol, prot_flavor;
21 + const char *prot = "";
27 switch (prot_flavor) {
29 bit |= CHAP_MD5_WITHPEER;
30 @@ -1006,15 +1014,19 @@
32 BZERO(passwd, MAXSECRETLEN);
41 warn("auth_withpeer_success: unknown protocol %x", protocol);
45 + notice("%s authentication succeeded", prot);
47 /* Save the authentication method for later. */
48 auth_done[unit] |= bit;
58 @@ -1658,14 +1671,12 @@
60 /* Apparently the pam stuff does closelog(). */
62 -#else /* ! USE_PAM */
67 if (strncmp(tty, "/dev/", 5) == 0)
69 logwtmp(tty, "", ""); /* Wipe out utmp logout entry */
70 -#endif /* ! USE_PAM */
74 diff -urN -x'*.swp' ppp.old/pppd/main.c ppp.dev/pppd/main.c
75 --- ppp.old/pppd/main.c 2005-07-13 11:34:28.000000000 +0200
76 +++ ppp.dev/pppd/main.c 2005-07-13 14:49:06.000000000 +0200
78 script_unsetenv("BYTES_RCVD");
80 lcp_open(0); /* Start protocol */
82 while (phase != PHASE_DEAD) {
85 diff -urN -x'*.swp' ppp.old/pppd/pppd.h ppp.dev/pppd/pppd.h
86 --- ppp.old/pppd/pppd.h 2005-07-13 11:34:28.000000000 +0200
87 +++ ppp.dev/pppd/pppd.h 2005-07-13 14:48:56.000000000 +0200
90 /* Procedures exported from auth.c */
91 void link_required __P((int)); /* we are starting to use the link */
92 +void start_link __P((int)); /* bring the link up now */
93 void link_terminated __P((int)); /* we are finished with the link */
94 void link_down __P((int)); /* the LCP layer has left the Opened state */
95 void upper_layers_down __P((int));/* take all NCPs down */
96 diff -urN -x'*.swp' ppp.old/pppd/tty.c ppp.dev/pppd/tty.c
97 --- ppp.old/pppd/tty.c 2004-11-13 13:07:29.000000000 +0100
98 +++ ppp.dev/pppd/tty.c 2005-07-13 14:46:57.000000000 +0200
103 - if (pty_slave >= 0) {
107 - if (real_ttyfd >= 0) {
116 info("Serial link disconnected.");
118 + stop_charshunt(NULL, 0);
125 charshunt_pid = cpid;
126 - add_notifier(&sigreceived, stop_charshunt, 0);
127 record_child(cpid, "pppd (charshunt)", charshunt_done, NULL);