summaryrefslogtreecommitdiffstats
path: root/c/src/libnetworking/pppd
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-03 18:28:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-03 18:28:36 +0000
commit0173ab87ab54ce46b7c6a229f7937c8e098e5d6c (patch)
treeb5c7351da0162a78753c790881a285669f8a8a4b /c/src/libnetworking/pppd
parentPatch from Eric Norum <eric@cls.usask.ca>: (diff)
downloadrtems-0173ab87ab54ce46b7c6a229f7937c8e098e5d6c.tar.bz2
Comments added and some messages translated from Polish.
Diffstat (limited to 'c/src/libnetworking/pppd')
-rw-r--r--c/src/libnetworking/pppd/README47
-rw-r--r--c/src/libnetworking/pppd/main.c9
2 files changed, 51 insertions, 5 deletions
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 <dot@comarch.pl> 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;