From 0173ab87ab54ce46b7c6a229f7937c8e098e5d6c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 3 Jan 2000 18:28:36 +0000 Subject: Comments added and some messages translated from Polish. --- c/src/libnetworking/pppd/README | 47 ++++++++++++++++++++++++++++++++++++++++- c/src/libnetworking/pppd/main.c | 9 ++++---- 2 files changed, 51 insertions(+), 5 deletions(-) (limited to 'c/src/libnetworking/pppd') diff --git a/c/src/libnetworking/pppd/README b/c/src/libnetworking/pppd/README index f33926e326..8002d3e280 100644 --- a/c/src/libnetworking/pppd/README +++ b/c/src/libnetworking/pppd/README @@ -10,4 +10,49 @@ ftp://cs.anu.edu.au/pub/software/ppp NOTE: As of 11/30/1999, the current version of this source is 2.3.10. The port was performed by Tomasz Domin of ComArch SA -and has only been tested on the mpc823. +and has only been tested on the mpc823. The modem driver should +work with minor modifications on other systems. +================================================================= +Some comments: + ++ "SetStatusInfo is a function which displays given message on + bottom side of the screen." + + The issue of how to deal with SetStatusInfo in a generic, portable + fashion is still open. + ++ "Dialer returns positive integer when an error occurs, and negative one + which is parsed from modem aswer, when connection is done (for example + -28000 if connection speed is 28000 baud ...)" + ++ PPP_User/PPP_Password + "When this field is set, it is sent to the server when there is need + to login .... + When it is blank - it is using other method of authentification ... or + none ... + PPP_Password is also used in CHAT and PAP - because there is no + configuration files in RTEMS ..." + + This falls into the general question of how to generally configure this. + ++ ConnectionStatus + + This is the method of synchronization between pppd task and others. + ConnectionStatus field is set by pppd - when connection occurs it`s state + is set to Connected. WantConnection is set by client application (and + the appriopriate event is sent then) so pppd knows what user wants to do ... + ++ Around line 270 of main.c, there is code to change the default + nameserver... why? + + Becouse in my application user can change it anytime ... - without need of + rebooting the system + When PPP connection is configured there is needed additional info about + nameservers - PPP layer cant discover them itself + + + + + + + diff --git a/c/src/libnetworking/pppd/main.c b/c/src/libnetworking/pppd/main.c index 7337b0d07d..cfe3d14f30 100644 --- a/c/src/libnetworking/pppd/main.c +++ b/c/src/libnetworking/pppd/main.c @@ -273,7 +273,7 @@ char *argv[]; UnlockSTBSystemParam(); #endif /* initialize DNS services here */ - SetStatusInfo(0, "Nawiązuję połączenie...",0); + SetStatusInfo(0, "Connecting...",0); __res_init(); /* @@ -330,10 +330,11 @@ char *argv[]; if ((i=connect_script(ttyfd)) >0) { /* here go error messages ... */ - static char *bledy_ppp[]={"Błędny skrypt","Błąd wejścia/wyjścia","Przekroczenie limitu czasowego","Numer zajęty","Brak sygnału wybierania numeru","Brak sygnału", - "Brak odpowiedzi","Brak odpowiedzi serwera"}; + static char *error_msgs[]={ "Bad script", "IO Error" + "Timeout", "Busy", "No dialtone", "No carrier", + "No answer", "No answer from server" }; setdtr(ttyfd, FALSE); - sprintf(t,"Połączenie nieudane : %s",bledy_ppp[i-1]); + sprintf(t,"Communication error: %s",error_msgs[i-1]); syslog(LOG_ERR, "Connect script failed"); SetStatusInfo(0, t,1); goto fail; -- cgit v1.2.3