forked from Imagelibrary/rtems
Comments added and some messages translated from Polish.
This commit is contained in:
@@ -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.
|
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
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ char *argv[];
|
|||||||
UnlockSTBSystemParam();
|
UnlockSTBSystemParam();
|
||||||
#endif
|
#endif
|
||||||
/* initialize DNS services here */
|
/* initialize DNS services here */
|
||||||
SetStatusInfo(0, "Nawi<EFBFBD>zuj<EFBFBD> po<70><6F>czenie...",0);
|
SetStatusInfo(0, "Connecting...",0);
|
||||||
|
|
||||||
__res_init();
|
__res_init();
|
||||||
/*
|
/*
|
||||||
@@ -330,10 +330,11 @@ char *argv[];
|
|||||||
|
|
||||||
if ((i=connect_script(ttyfd)) >0) {
|
if ((i=connect_script(ttyfd)) >0) {
|
||||||
/* here go error messages ... */
|
/* here go error messages ... */
|
||||||
static char *bledy_ppp[]={"B<EFBFBD><EFBFBD>dny skrypt","B<EFBFBD><EFBFBD>d wej<65>cia/wyj<79>cia","Przekroczenie limitu czasowego","Numer zaj<61>ty","Brak sygna<6E>u wybierania numeru","Brak sygna<6E>u",
|
static char *error_msgs[]={ "Bad script", "IO Error"
|
||||||
"Brak odpowiedzi","Brak odpowiedzi serwera"};
|
"Timeout", "Busy", "No dialtone", "No carrier",
|
||||||
|
"No answer", "No answer from server" };
|
||||||
setdtr(ttyfd, FALSE);
|
setdtr(ttyfd, FALSE);
|
||||||
sprintf(t,"Po<EFBFBD><EFBFBD>czenie nieudane : %s",bledy_ppp[i-1]);
|
sprintf(t,"Communication error: %s",error_msgs[i-1]);
|
||||||
syslog(LOG_ERR, "Connect script failed");
|
syslog(LOG_ERR, "Connect script failed");
|
||||||
SetStatusInfo(0, t,1);
|
SetStatusInfo(0, t,1);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|||||||
@@ -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.
|
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
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user