Changeset 0173ab8 in rtems


Ignore:
Timestamp:
Jan 3, 2000, 6:28:36 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
6bc66ab0
Parents:
0af1b73f
Message:

Comments added and some messages translated from Polish.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/libnetworking/pppd/README

    r0af1b73f r0173ab8  
    1111
    1212The port was performed by Tomasz Domin <dot@comarch.pl> of ComArch SA
    13 and has only been tested on the mpc823.
     13and has only been tested on the mpc823.  The modem driver should
     14work with minor modifications on other systems.
     15=================================================================
     16Some comments:
     17
     18+ "SetStatusInfo is a function which displays given message on
     19  bottom side of the screen."
     20
     21  The issue of how to deal with SetStatusInfo in a generic, portable
     22  fashion is still open.
     23
     24+ "Dialer returns positive integer when an error occurs, and negative one
     25  which is parsed from modem aswer, when connection is done (for example
     26  -28000 if connection speed is 28000 baud ...)"
     27
     28+   PPP_User/PPP_Password
     29   "When this field is set, it is sent to the server when there is need
     30   to login ....
     31   When it is blank - it is using other method of authentification ... or
     32   none ...
     33   PPP_Password is also used in CHAT and PAP  - because there is no
     34   configuration files in RTEMS ..."
     35
     36   This falls into the general question of how to generally configure this.
     37
     38+ ConnectionStatus
     39
     40  This is the method of synchronization between pppd task and others.
     41  ConnectionStatus field is set by pppd - when connection occurs it`s state
     42  is set to Connected. WantConnection is set by client application (and
     43  the appriopriate event is sent then) so pppd knows what user wants to do ...
     44
     45+ Around line 270 of main.c, there is code to change the default
     46  nameserver... why?
     47
     48  Becouse in my application user can change it anytime  ... - without need of
     49  rebooting the system
     50  When PPP connection is configured there is needed additional info about
     51  nameservers - PPP layer cant discover them itself
     52
     53
     54
     55
     56
     57
     58
  • c/src/libnetworking/pppd/main.c

    r0af1b73f r0173ab8  
    274274#endif
    275275/* initialize DNS services here */
    276          SetStatusInfo(0, "Nawi¹zujê po³¹czenie...",0);
     276         SetStatusInfo(0, "Connecting...",0);
    277277
    278278        __res_init();
     
    331331                if ((i=connect_script(ttyfd)) >0) {
    332332/* here go error messages ... */
    333                 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",
    334                                                                         "Brak odpowiedzi","Brak odpowiedzi serwera"};
     333                static char *error_msgs[]={ "Bad script", "IO Error"
     334                        "Timeout", "Busy", "No dialtone", "No carrier",
     335                        "No answer", "No answer from server" };
    335336                        setdtr(ttyfd, FALSE);
    336                 sprintf(t,"Po³¹czenie nieudane : %s",bledy_ppp[i-1]);
     337                sprintf(t,"Communication error: %s",error_msgs[i-1]);
    337338                syslog(LOG_ERR, "Connect script failed");
    338339                SetStatusInfo(0, t,1);
  • cpukit/pppd/README

    r0af1b73f r0173ab8  
    1111
    1212The port was performed by Tomasz Domin <dot@comarch.pl> of ComArch SA
    13 and has only been tested on the mpc823.
     13and has only been tested on the mpc823.  The modem driver should
     14work with minor modifications on other systems.
     15=================================================================
     16Some comments:
     17
     18+ "SetStatusInfo is a function which displays given message on
     19  bottom side of the screen."
     20
     21  The issue of how to deal with SetStatusInfo in a generic, portable
     22  fashion is still open.
     23
     24+ "Dialer returns positive integer when an error occurs, and negative one
     25  which is parsed from modem aswer, when connection is done (for example
     26  -28000 if connection speed is 28000 baud ...)"
     27
     28+   PPP_User/PPP_Password
     29   "When this field is set, it is sent to the server when there is need
     30   to login ....
     31   When it is blank - it is using other method of authentification ... or
     32   none ...
     33   PPP_Password is also used in CHAT and PAP  - because there is no
     34   configuration files in RTEMS ..."
     35
     36   This falls into the general question of how to generally configure this.
     37
     38+ ConnectionStatus
     39
     40  This is the method of synchronization between pppd task and others.
     41  ConnectionStatus field is set by pppd - when connection occurs it`s state
     42  is set to Connected. WantConnection is set by client application (and
     43  the appriopriate event is sent then) so pppd knows what user wants to do ...
     44
     45+ Around line 270 of main.c, there is code to change the default
     46  nameserver... why?
     47
     48  Becouse in my application user can change it anytime  ... - without need of
     49  rebooting the system
     50  When PPP connection is configured there is needed additional info about
     51  nameservers - PPP layer cant discover them itself
     52
     53
     54
     55
     56
     57
     58
Note: See TracChangeset for help on using the changeset viewer.