2001-04-20 Radzislaw Galler <rgaller@et.put.poznan.pl>

* modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c,
	pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated
	Polish comments and other strings into English
	* pppd/STATUS: Updated to reflect the changes
This commit is contained in:
Joel Sherrill
2001-04-20 20:32:08 +00:00
parent a8c3326863
commit 6fa636725c
11 changed files with 65 additions and 41 deletions

View File

@@ -1,8 +1,15 @@
2001-04-20 Radzislaw Galler <rgaller@et.put.poznan.pl>
* modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c,
pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated
Polish comments and other strings into English
* pppd/STATUS: updated to reflect the changes
2001-04-20 Jake Janovetz <janovetz@uiuc.edu> 2001-04-20 Jake Janovetz <janovetz@uiuc.edu>
* rtems_servers/ftpd.c: Correct argument so hooks work again. * rtems_servers/ftpd.c: Correct argument so hooks work again.
2001-03-15 Ralf Corsepiu <corsepius@faw.uni-ulm.de> 2001-03-15 Ralf Corsepius <corsepius@faw.uni-ulm.de>
* include/.cvsignore: Remove danlgling file. * include/.cvsignore: Remove danlgling file.

View File

@@ -1,8 +1,15 @@
2001-04-20 Radzislaw Galler <rgaller@et.put.poznan.pl>
* modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c,
pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated
Polish comments and other strings into English
* pppd/STATUS: updated to reflect the changes
2001-04-20 Jake Janovetz <janovetz@uiuc.edu> 2001-04-20 Jake Janovetz <janovetz@uiuc.edu>
* rtems_servers/ftpd.c: Correct argument so hooks work again. * rtems_servers/ftpd.c: Correct argument so hooks work again.
2001-03-15 Ralf Corsepiu <corsepius@faw.uni-ulm.de> 2001-03-15 Ralf Corsepius <corsepius@faw.uni-ulm.de>
* include/.cvsignore: Remove danlgling file. * include/.cvsignore: Remove danlgling file.

View File

@@ -75,7 +75,7 @@
#include "ppp.h" #include "ppp.h"
#if NPPP > 0 #if NPPP > 0
/* na razie wylaczmy kompresje*/ /* temporarily we switch off the compression */
#include <rtems/rtems_bsdnet.h> /* to get right defines */ #include <rtems/rtems_bsdnet.h> /* to get right defines */
@@ -216,7 +216,7 @@ int rtems_ppp_driver_attach (struct rtems_bsdnet_ifconfig *config,
bpfattach(&sc->sc_bpf, &sc->sc_if, DLT_PPP, PPP_HDRLEN); bpfattach(&sc->sc_bpf, &sc->sc_if, DLT_PPP, PPP_HDRLEN);
#endif #endif
} }
/* wpisane na twardo do rtems_glue.c /* hardcoded in rtems_glue.c
netisrs[NETISR_PPP] = pppintr; */ netisrs[NETISR_PPP] = pppintr; */
return 1; return 1;
} }

View File

@@ -15,7 +15,9 @@ easily configurable.
specific manner. main.c is particularly guilty of this although specific manner. main.c is particularly guilty of this although
other files suffer from this also. other files suffer from this also.
+ Find comments in Polish and get Tomasz to translate them. :) + Find comments in Polish and get Tomasz to translate them. :)
(DONE but not sure if completely
Radzislaw Galler <rgaller@et.put.poznan.pl>)
+ Add netdemo showing configuration and initialization. + Add netdemo showing configuration and initialization.

View File

@@ -321,7 +321,7 @@ char *argv[];
/* XXX PPPConfiguration */ /* XXX PPPConfiguration */
char t[100]; char t[100];
stat=LockSTBSystemParam(); stat=LockSTBSystemParam();
sprintf(t,"Dzwoni<EFBFBD> pod numer %s ...",stat->Phone_Number); sprintf(t,"Calling number %s ...",stat->Phone_Number);
UnlockSTBSystemParam(); UnlockSTBSystemParam();
#endif #endif
SetStatusInfo(0, t,0); SetStatusInfo(0, t,0);
@@ -344,11 +344,11 @@ char *argv[];
if (i<0) if (i<0)
{ {
char t[100]; char t[100];
sprintf(t,"<EFBFBD><EFBFBD>czenie z Internetem z pr<70>dkosci<63> %d baud...",-i); sprintf(t,"Connecting the Internet at %d baud...",-i);
SetStatusInfo(0, t,0); SetStatusInfo(0, t,0);
} }
else else
SetStatusInfo(0, "<EFBFBD><EFBFBD>czenie z Internetem...",0); SetStatusInfo(0, "Connecting the Internet...",0);
syslog(LOG_INFO, "Serial connection established."); syslog(LOG_INFO, "Serial connection established.");
sleep(1); /* give it time to set up its terminal */ sleep(1); /* give it time to set up its terminal */
@@ -382,7 +382,7 @@ char *argv[];
lcp_open(0); /* Start protocol */ lcp_open(0); /* Start protocol */
rtems_bsdnet_semaphore_release(); rtems_bsdnet_semaphore_release();
SetStatusInfo(0, "Po<EFBFBD><EFBFBD>czenie z Internetem nawi<77>zane.",1); SetStatusInfo(0, "Internet connection established.",1);
for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD;) { for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD;) {
wait_input(timeleft(&timo)); wait_input(timeleft(&timo));
@@ -393,7 +393,7 @@ char *argv[];
stat=LockSTBSystemParam(); stat=LockSTBSystemParam();
if (stat->WantConnection==DontConnect) { if (stat->WantConnection==DontConnect) {
stat->ConnectionStatus = NotConnected; stat->ConnectionStatus = NotConnected;
SetStatusInfo(0, "Roz<EFBFBD><EFBFBD>czam si<73> ...",0); SetStatusInfo(0, "Disconnecting...",0);
lcp_close(0, ""); lcp_close(0, "");
kill_link = 0; kill_link = 0;
} }
@@ -414,7 +414,7 @@ char *argv[];
*/ */
clean_check(); clean_check();
disestablish_ppp(ttyfd); disestablish_ppp(ttyfd);
SetStatusInfo(0, "Po<EFBFBD><EFBFBD>czenie z Internetem zerwane.",1); SetStatusInfo(0, "Broken internet connection.",1);
/* /*
* Run disconnector script, if requested. * Run disconnector script, if requested.
@@ -772,7 +772,7 @@ int connect_script(int fd)
else else
stat->provider=DumbLogin; stat->provider=DumbLogin;
switch (stat->provider) { switch (stat->provider) {
case Poland_TPSA: case Poland_TPSA: /* TPSA - Polish Telecom */
sprintf(program, scripts[1], stat->Phone_Number, stat->PPP_User, stat->PPP_Password); sprintf(program, scripts[1], stat->Phone_Number, stat->PPP_User, stat->PPP_Password);
break; break;
default: default:

View File

@@ -714,15 +714,15 @@ modem_txDaemon (void *arg)
register int level,i,maxonce; register int level,i,maxonce;
while (1) while (1)
{ {
if (xmt_len==0) //jezeli nic nie ma to czekajmy na event if (xmt_len==0) //if there is nothing then wait for an event
rtems_event_receive(START_TRANSMIT_EVENT|INTERRUPT_EVENT,RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT,&events); rtems_event_receive(START_TRANSMIT_EVENT|INTERRUPT_EVENT,RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT,&events);
/* wait for transmit buffer to become empty */ /* wait for transmit buffer to become empty */
while(_tx_stop) //tu czekamy na start transmisji while(_tx_stop) //here we are wainting for transmission start
rtems_event_receive(INTERRUPT_EVENT|START_TRANSMIT_EVENT,RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT,&events); rtems_event_receive(INTERRUPT_EVENT|START_TRANSMIT_EVENT,RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT,&events);
_CPU_ISR_Disable(level); _CPU_ISR_Disable(level);
if (*LSR & THRE) //jezeli nie ma transmisji to wyslijmy pierwsze bajty, jezeli jest, same pojda if (*LSR & THRE) //if there is no transmission then send first bytes, if there is one they will go eitherway
{ {
maxonce=(xmt_len>14)?14:xmt_len; maxonce=(xmt_len>14)?14:xmt_len;
if (maxonce>0) if (maxonce>0)
@@ -792,8 +792,8 @@ modem_init (int speed) /* port is the SMC number (i.e. 1 or 2) */
set_modem_speed(speed); set_modem_speed(speed);
/* Line control setup */ /* Line control setup */
*LCR = (char)(WL_8 ); /* 8 bitowe slowo */ *LCR = (char)(WL_8 ); /* 8 bit word */
/* bylo NSB - bylo 2 jest 1*/ /* was NSB - was 2 is 1*/
/* Interrupt setup */ /* Interrupt setup */
*IER = (char) 0x0f; /* enable transmit, receive, modem stat int */ *IER = (char) 0x0f; /* enable transmit, receive, modem stat int */
@@ -810,9 +810,9 @@ modem_init (int speed) /* port is the SMC number (i.e. 1 or 2) */
void set_modem_dtr(int how) void set_modem_dtr(int how)
{ {
unsigned char znak; unsigned char ch;
znak=*MCR; ch=*MCR;
*MCR=(how)?(znak|DTR):(znak&(~DTR)); *MCR=(how)?(ch|DTR):(ch&(~DTR));
} }
void modem_status() void modem_status()
{ {
@@ -861,7 +861,7 @@ modemInterruptHandler (rtems_vector_number v)
/* /*
* Buffer transmitted ? * Buffer transmitted ?
*/ */
if (*LSR & THRE) //jezeli nie ma transmisji (a nie powinno byc) to wyslijmy bajty if (*LSR & THRE) //if there is no transmission (and it shouldn't be) then send some bytes
{ {
maxonce=(xmt_len>14)?14:xmt_len; maxonce=(xmt_len>14)?14:xmt_len;
if (maxonce>0) if (maxonce>0)
@@ -1226,10 +1226,10 @@ rtems_device_driver modem_read(
for (;;) { for (;;) {
if (sc->sc_inq.ifq_head != NULL) if (sc->sc_inq.ifq_head != NULL)
{ {
/* printf("Read : Dane sa w buforze\n"); /* printf("Read : Data are in the buffer\n");
*/ break; */ break;
} }
/* printf("Read : Czekam na dane\n"); /* printf("Read : Waiting for data\n");
*/ */
status=rtems_semaphore_obtain(ModemData.pppsem,RTEMS_WAIT,ticks); status=rtems_semaphore_obtain(ModemData.pppsem,RTEMS_WAIT,ticks);
if (_modem_cd==0) if (_modem_cd==0)
@@ -1319,7 +1319,7 @@ rtems_device_driver modem_write(
m0->m_data += PPP_HDRLEN; m0->m_data += PPP_HDRLEN;
m0->m_len -= PPP_HDRLEN; m0->m_len -= PPP_HDRLEN;
/* printf("Wysylam %d bajtow \n",m0->m_len); /* printf("Sending %d bytes \n",m0->m_len);
*/ n=pppoutput(&sc->sc_if, m0, &dst, (struct rtentry *)0); */ n=pppoutput(&sc->sc_if, m0, &dst, (struct rtentry *)0);
rtems_bsdnet_semaphore_release(); rtems_bsdnet_semaphore_release();
return n; return n;
@@ -1418,19 +1418,19 @@ wait_input(timo)
rtems_event_set events; rtems_event_set events;
rtems_interval ticks; rtems_interval ticks;
rtems_status_code err; rtems_status_code err;
int czekaj=1; int num_wait=1;
register struct ppp_softc *sc = (struct ppp_softc *)ModemData.t_sc; register struct ppp_softc *sc = (struct ppp_softc *)ModemData.t_sc;
ticks = 1+(timo->tv_sec*1000000+timo->tv_usec)/rtems_bsdnet_microseconds_per_tick; ticks = 1+(timo->tv_sec*1000000+timo->tv_usec)/rtems_bsdnet_microseconds_per_tick;
while (czekaj) while (num_wait)
{ {
if (sc->sc_inq.ifq_head != NULL) if (sc->sc_inq.ifq_head != NULL)
break; break;
/* printf("Wait : Czekam na dane przez %d ticks\n",ticks); /* printf("Wait : Waiting for data for %d ticks\n",ticks);
*/ err=rtems_semaphore_obtain(ModemData.pppsem,RTEMS_WAIT,ticks); */ err=rtems_semaphore_obtain(ModemData.pppsem,RTEMS_WAIT,ticks);
if (err==RTEMS_TIMEOUT) if (err==RTEMS_TIMEOUT)
{ {
/* printf("TIMEOUT :Brak danych\n"); /* printf("TIMEOUT : No data\n");
*/ break; */ break;
} }
} }

View File

@@ -75,7 +75,7 @@
#include "ppp.h" #include "ppp.h"
#if NPPP > 0 #if NPPP > 0
/* na razie wylaczmy kompresje*/ /* temporarily we switch off the compression */
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@@ -210,7 +210,7 @@ int rtems_ppp_driver_attach (struct rtems_bsdnet_ifconfig *config)
bpfattach(&sc->sc_bpf, &sc->sc_if, DLT_PPP, PPP_HDRLEN); bpfattach(&sc->sc_bpf, &sc->sc_if, DLT_PPP, PPP_HDRLEN);
#endif #endif
} }
/* wpisane na twardo do rtems_glue.c /* hardcoded in rtems_glue.c
netisrs[NETISR_PPP] = pppintr; */ netisrs[NETISR_PPP] = pppintr; */
return 1; return 1;
} }

View File

@@ -336,7 +336,7 @@ char *argv[];
/* XXX PPPConfiguration */ /* XXX PPPConfiguration */
char t[100]; char t[100];
stat=LockSTBSystemParam(); stat=LockSTBSystemParam();
sprintf(t,"Dzwoni<EFBFBD> pod numer %s ...",stat->Phone_Number); sprintf(t,"Calling the number %s ...",stat->Phone_Number);
UnlockSTBSystemParam(); UnlockSTBSystemParam();
SetStatusInfo(0, t,0); SetStatusInfo(0, t,0);
#endif #endif
@@ -362,14 +362,14 @@ char *argv[];
{ {
#if 0 #if 0
char t[100]; char t[100];
sprintf(t,"<EFBFBD><EFBFBD>czenie z Internetem z pr<70>dkosci<63> %d baud...",-i); sprintf(t,"Connecting the Internet at %d baud...",-i);
SetStatusInfo(0, t,0); SetStatusInfo(0, t,0);
#endif #endif
} }
else else
{ {
#if 0 #if 0
SetStatusInfo(0, "<EFBFBD><EFBFBD>czenie z Internetem...",0); SetStatusInfo(0, "Connecting the Internet...",0);
#endif #endif
} }
syslog(LOG_INFO, "Serial connection established."); syslog(LOG_INFO, "Serial connection established.");
@@ -406,7 +406,7 @@ char *argv[];
rtems_bsdnet_semaphore_release(); rtems_bsdnet_semaphore_release();
#if 0 #if 0
SetStatusInfo(0, "Po<EFBFBD><EFBFBD>czenie z Internetem nawi<77>zane.",1); SetStatusInfo(0, "Internet connection established.",1);
#endif #endif
for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD;) { for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD;) {
#if 0 #if 0
@@ -419,7 +419,7 @@ char *argv[];
stat=LockSTBSystemParam(); stat=LockSTBSystemParam();
if (stat->WantConnection==DontConnect) { if (stat->WantConnection==DontConnect) {
stat->ConnectionStatus = NotConnected; stat->ConnectionStatus = NotConnected;
SetStatusInfo(0, "Roz<EFBFBD><EFBFBD>czam si<73> ...",0); SetStatusInfo(0, "Disconnecting ...",0);
lcp_close(0, ""); lcp_close(0, "");
kill_link = 0; kill_link = 0;
} }
@@ -441,7 +441,7 @@ char *argv[];
clean_check(); clean_check();
disestablish_ppp(ttyfd); disestablish_ppp(ttyfd);
#if 0 #if 0
SetStatusInfo(0, "Po<EFBFBD><EFBFBD>czenie z Internetem zerwane.",1); SetStatusInfo(0, "Broken the internet connection.",1);
#endif #endif
/* /*
* Run disconnector script, if requested. * Run disconnector script, if requested.
@@ -799,7 +799,7 @@ int connect_script(int fd)
else else
stat->provider=DumbLogin; stat->provider=DumbLogin;
switch (stat->provider) { switch (stat->provider) {
case Poland_TPSA: case Poland_TPSA: /* TPSA - Polish Telecom */
sprintf(program, scripts[1], stat->Phone_Number, stat->PPP_User, stat->PPP_Password); sprintf(program, scripts[1], stat->Phone_Number, stat->PPP_User, stat->PPP_Password);
break; break;
default: default:

View File

@@ -427,8 +427,7 @@ set_up_tty(fd, local)
} }
} }
/* baud_rate = 9600;*/ /* baud_rate = 9600;*/
/* na razie wpisujemy na twardo*/ /* we hardcode it temporarily */
if (tcsetattr(fd, TCSANOW, &tios) < 0) { if (tcsetattr(fd, TCSANOW, &tios) < 0) {
syslog(LOG_ERR, "tcsetattr: %m"); syslog(LOG_ERR, "tcsetattr: %m");
die(1); die(1);

View File

@@ -1,8 +1,15 @@
2001-04-20 Radzislaw Galler <rgaller@et.put.poznan.pl>
* modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c,
pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated
Polish comments and other strings into English
* pppd/STATUS: updated to reflect the changes
2001-04-20 Jake Janovetz <janovetz@uiuc.edu> 2001-04-20 Jake Janovetz <janovetz@uiuc.edu>
* rtems_servers/ftpd.c: Correct argument so hooks work again. * rtems_servers/ftpd.c: Correct argument so hooks work again.
2001-03-15 Ralf Corsepiu <corsepius@faw.uni-ulm.de> 2001-03-15 Ralf Corsepius <corsepius@faw.uni-ulm.de>
* include/.cvsignore: Remove danlgling file. * include/.cvsignore: Remove danlgling file.

View File

@@ -15,7 +15,9 @@ easily configurable.
specific manner. main.c is particularly guilty of this although specific manner. main.c is particularly guilty of this although
other files suffer from this also. other files suffer from this also.
+ Find comments in Polish and get Tomasz to translate them. :) + Find comments in Polish and get Tomasz to translate them. :)
(DONE but not sure if completely
Radzislaw Galler <rgaller@et.put.poznan.pl>)
+ Add netdemo showing configuration and initialization. + Add netdemo showing configuration and initialization.