comparison packages/net/ppp/current/src/lcp.c @ 1694:5629b7c30ed2

Various patches from Matt Jerdonek and Oyvind Harboe: * cdl/ppp.cdl: * src/ipcp.c: Add option to disallow negotiation of old-style VJ compression * include/ppp.h: Add structure to track ppp failure reasons * include/pppd.h: Fix compiler warning * src/auth.c: * src/lcp.c: * src/pppd.c: Add code to track ppp failure reasons * src/chat.c: Fixes to clear out buffer space to allow chat script to run multiple times. Note: function is still not thread-safe * src/sys-ecos.c: Reset carrier detected bit when carrier lost Reset ppp_tty control block when PPP started * tests/windows_telnet.c: * cdl/ppp.cdl: Added windows_telnet example application. Connects to Windows PPP server and waits for a telnet session.
author nickg
date Fri, 23 Jul 2004 11:00:40 +0000
parents e0d88dc6a92f
children
comparison
equal deleted inserted replaced
1693:9f18943c887e 1694:5629b7c30ed2
1016 if (f->state != OPENED) { 1016 if (f->state != OPENED) {
1017 if (looped_back) { 1017 if (looped_back) {
1018 if (++try.numloops >= lcp_loopbackfail) { 1018 if (++try.numloops >= lcp_loopbackfail) {
1019 syslog(LOG_NOTICE, "Serial line is looped back."); 1019 syslog(LOG_NOTICE, "Serial line is looped back.");
1020 lcp_close(f->unit, "Loopback detected"); 1020 lcp_close(f->unit, "Loopback detected");
1021 cyg_ppp_stats.loopback++;
1021 } 1022 }
1022 } else 1023 } else
1023 try.numloops = 0; 1024 try.numloops = 0;
1024 *go = try; 1025 *go = try;
1025 } 1026 }
1776 { 1777 {
1777 if (f->state == OPENED) { 1778 if (f->state == OPENED) {
1778 syslog(LOG_INFO, "No response to %d echo-requests", lcp_echos_pending); 1779 syslog(LOG_INFO, "No response to %d echo-requests", lcp_echos_pending);
1779 syslog(LOG_NOTICE, "Serial link appears to be disconnected."); 1780 syslog(LOG_NOTICE, "Serial link appears to be disconnected.");
1780 lcp_close(f->unit, "Peer not responding"); 1781 lcp_close(f->unit, "Peer not responding");
1782 cyg_ppp_stats.no_response++;
1781 } 1783 }
1782 } 1784 }
1783 1785
1784 /* 1786 /*
1785 * Timer expired for the LCP echo requests from this process. 1787 * Timer expired for the LCP echo requests from this process.