Changeset 6fa6367 in rtems
- Timestamp:
- 04/20/01 20:32:08 (23 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- dd74e612
- Parents:
- a8c33268
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/libnetworking/ChangeLog
ra8c33268 r6fa6367 1 2001-04-20 Radzislaw Galler <rgaller@et.put.poznan.pl> 2 3 * modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c, 4 pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated 5 Polish comments and other strings into English 6 * pppd/STATUS: updated to reflect the changes 7 1 8 2001-04-20 Jake Janovetz <janovetz@uiuc.edu> 2 9 3 10 * rtems_servers/ftpd.c: Correct argument so hooks work again. 4 11 5 2001-03-15 Ralf Corsepiu <corsepius@faw.uni-ulm.de>12 2001-03-15 Ralf Corsepius <corsepius@faw.uni-ulm.de> 6 13 7 14 * include/.cvsignore: Remove danlgling file. -
c/src/libnetworking/ChangeLog
ra8c33268 r6fa6367 1 2001-04-20 Radzislaw Galler <rgaller@et.put.poznan.pl> 2 3 * modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c, 4 pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated 5 Polish comments and other strings into English 6 * pppd/STATUS: updated to reflect the changes 7 1 8 2001-04-20 Jake Janovetz <janovetz@uiuc.edu> 2 9 3 10 * rtems_servers/ftpd.c: Correct argument so hooks work again. 4 11 5 2001-03-15 Ralf Corsepiu <corsepius@faw.uni-ulm.de>12 2001-03-15 Ralf Corsepius <corsepius@faw.uni-ulm.de> 6 13 7 14 * include/.cvsignore: Remove danlgling file. -
c/src/libnetworking/modem/ppp.c
ra8c33268 r6fa6367 76 76 #include "ppp.h" 77 77 #if NPPP > 0 78 /* na razie wylaczmy kompresje*/78 /* temporarily we switch off the compression */ 79 79 80 80 #include <rtems/rtems_bsdnet.h> /* to get right defines */ … … 217 217 #endif 218 218 } 219 /* wpisane na twardo dortems_glue.c219 /* hardcoded in rtems_glue.c 220 220 netisrs[NETISR_PPP] = pppintr; */ 221 221 return 1; -
c/src/libnetworking/pppd/STATUS
ra8c33268 r6fa6367 16 16 other files suffer from this also. 17 17 18 + Find comments in Polish and get Tomasz to translate them. :) 18 + Find comments in Polish and get Tomasz to translate them. :) 19 (DONE but not sure if completely 20 Radzislaw Galler <rgaller@et.put.poznan.pl>) 19 21 20 22 + Add netdemo showing configuration and initialization. -
c/src/libnetworking/pppd/main.c
ra8c33268 r6fa6367 322 322 char t[100]; 323 323 stat=LockSTBSystemParam(); 324 sprintf(t," Dzwoniê pod numer %s ...",stat->Phone_Number);324 sprintf(t,"Calling number %s ...",stat->Phone_Number); 325 325 UnlockSTBSystemParam(); 326 326 #endif … … 345 345 { 346 346 char t[100]; 347 sprintf(t," £¹czenie z Internetem z prêdkosci¹%d baud...",-i);347 sprintf(t,"Connecting the Internet at %d baud...",-i); 348 348 SetStatusInfo(0, t,0); 349 349 } 350 350 else 351 SetStatusInfo(0, " £¹czenie z Internetem...",0);351 SetStatusInfo(0, "Connecting the Internet...",0); 352 352 syslog(LOG_INFO, "Serial connection established."); 353 353 … … 383 383 384 384 rtems_bsdnet_semaphore_release(); 385 SetStatusInfo(0, " Po³¹czenie z Internetem nawi¹zane.",1);385 SetStatusInfo(0, "Internet connection established.",1); 386 386 387 387 for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD;) { … … 394 394 if (stat->WantConnection==DontConnect) { 395 395 stat->ConnectionStatus = NotConnected; 396 SetStatusInfo(0, " Roz³¹czam siê...",0);396 SetStatusInfo(0, "Disconnecting...",0); 397 397 lcp_close(0, ""); 398 398 kill_link = 0; … … 415 415 clean_check(); 416 416 disestablish_ppp(ttyfd); 417 SetStatusInfo(0, " Po³¹czenie z Internetem zerwane.",1);417 SetStatusInfo(0, "Broken internet connection.",1); 418 418 419 419 /* … … 773 773 stat->provider=DumbLogin; 774 774 switch (stat->provider) { 775 case Poland_TPSA: 775 case Poland_TPSA: /* TPSA - Polish Telecom */ 776 776 sprintf(program, scripts[1], stat->Phone_Number, stat->PPP_User, stat->PPP_Password); 777 777 break; -
c/src/libnetworking/pppd/modem_example/modem.c
ra8c33268 r6fa6367 715 715 while (1) 716 716 { 717 if (xmt_len==0) // jezeli nic nie ma to czekajmy naevent717 if (xmt_len==0) //if there is nothing then wait for an event 718 718 rtems_event_receive(START_TRANSMIT_EVENT|INTERRUPT_EVENT,RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT,&events); 719 719 /* wait for transmit buffer to become empty */ 720 720 721 while(_tx_stop) // tu czekamy na start transmisji721 while(_tx_stop) //here we are wainting for transmission start 722 722 rtems_event_receive(INTERRUPT_EVENT|START_TRANSMIT_EVENT,RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT,&events); 723 723 724 724 _CPU_ISR_Disable(level); 725 if (*LSR & THRE) // jezeli nie ma transmisji to wyslijmy pierwsze bajty, jezeli jest, same pojda725 if (*LSR & THRE) //if there is no transmission then send first bytes, if there is one they will go eitherway 726 726 { 727 727 maxonce=(xmt_len>14)?14:xmt_len; … … 793 793 /* Line control setup */ 794 794 795 *LCR = (char)(WL_8 ); /* 8 bit owe slowo*/796 /* bylo NSB - bylo 2 jest1*/795 *LCR = (char)(WL_8 ); /* 8 bit word */ 796 /* was NSB - was 2 is 1*/ 797 797 798 798 /* Interrupt setup */ … … 811 811 void set_modem_dtr(int how) 812 812 { 813 unsigned char znak;814 znak=*MCR;815 *MCR=(how)?( znak|DTR):(znak&(~DTR));813 unsigned char ch; 814 ch=*MCR; 815 *MCR=(how)?(ch|DTR):(ch&(~DTR)); 816 816 } 817 817 void modem_status() … … 862 862 * Buffer transmitted ? 863 863 */ 864 if (*LSR & THRE) // jezeli nie ma transmisji (a nie powinno byc) to wyslijmy bajty864 if (*LSR & THRE) //if there is no transmission (and it shouldn't be) then send some bytes 865 865 { 866 866 maxonce=(xmt_len>14)?14:xmt_len; … … 1227 1227 if (sc->sc_inq.ifq_head != NULL) 1228 1228 { 1229 /* printf("Read : Da ne sa w buforze\n");1229 /* printf("Read : Data are in the buffer\n"); 1230 1230 */ break; 1231 1231 } 1232 /* printf("Read : Czekam na dane\n");1232 /* printf("Read : Waiting for data\n"); 1233 1233 */ 1234 1234 status=rtems_semaphore_obtain(ModemData.pppsem,RTEMS_WAIT,ticks); … … 1320 1320 m0->m_len -= PPP_HDRLEN; 1321 1321 1322 /* printf(" Wysylam %d bajtow\n",m0->m_len);1322 /* printf("Sending %d bytes \n",m0->m_len); 1323 1323 */ n=pppoutput(&sc->sc_if, m0, &dst, (struct rtentry *)0); 1324 1324 rtems_bsdnet_semaphore_release(); … … 1419 1419 rtems_interval ticks; 1420 1420 rtems_status_code err; 1421 int czekaj=1;1421 int num_wait=1; 1422 1422 register struct ppp_softc *sc = (struct ppp_softc *)ModemData.t_sc; 1423 1423 ticks = 1+(timo->tv_sec*1000000+timo->tv_usec)/rtems_bsdnet_microseconds_per_tick; 1424 while ( czekaj)1424 while (num_wait) 1425 1425 { 1426 1426 1427 1427 if (sc->sc_inq.ifq_head != NULL) 1428 1428 break; 1429 /* printf("Wait : Czekam na dane przez%d ticks\n",ticks);1429 /* printf("Wait : Waiting for data for %d ticks\n",ticks); 1430 1430 */ err=rtems_semaphore_obtain(ModemData.pppsem,RTEMS_WAIT,ticks); 1431 1431 if (err==RTEMS_TIMEOUT) 1432 1432 { 1433 /* printf("TIMEOUT : Brak danych\n");1433 /* printf("TIMEOUT : No data\n"); 1434 1434 */ break; 1435 1435 } -
c/src/libnetworking/pppd/modem_example/ppp.c
ra8c33268 r6fa6367 76 76 #include "ppp.h" 77 77 #if NPPP > 0 78 /* na razie wylaczmy kompresje*/78 /* temporarily we switch off the compression */ 79 79 80 80 #include <sys/param.h> … … 211 211 #endif 212 212 } 213 /* wpisane na twardo dortems_glue.c213 /* hardcoded in rtems_glue.c 214 214 netisrs[NETISR_PPP] = pppintr; */ 215 215 return 1; -
c/src/libnetworking/pppd/pppmain.c
ra8c33268 r6fa6367 337 337 char t[100]; 338 338 stat=LockSTBSystemParam(); 339 sprintf(t," Dzwoniê pod numer %s ...",stat->Phone_Number);339 sprintf(t,"Calling the number %s ...",stat->Phone_Number); 340 340 UnlockSTBSystemParam(); 341 341 SetStatusInfo(0, t,0); … … 363 363 #if 0 364 364 char t[100]; 365 sprintf(t," £¹czenie z Internetem z prêdkosci¹%d baud...",-i);365 sprintf(t,"Connecting the Internet at %d baud...",-i); 366 366 SetStatusInfo(0, t,0); 367 367 #endif … … 370 370 { 371 371 #if 0 372 SetStatusInfo(0, " £¹czenie z Internetem...",0);372 SetStatusInfo(0, "Connecting the Internet...",0); 373 373 #endif 374 374 } … … 407 407 rtems_bsdnet_semaphore_release(); 408 408 #if 0 409 SetStatusInfo(0, " Po³¹czenie z Internetem nawi¹zane.",1);409 SetStatusInfo(0, "Internet connection established.",1); 410 410 #endif 411 411 for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD;) { … … 420 420 if (stat->WantConnection==DontConnect) { 421 421 stat->ConnectionStatus = NotConnected; 422 SetStatusInfo(0, " Roz³¹czam siê...",0);422 SetStatusInfo(0, "Disconnecting ...",0); 423 423 lcp_close(0, ""); 424 424 kill_link = 0; … … 442 442 disestablish_ppp(ttyfd); 443 443 #if 0 444 SetStatusInfo(0, " Po³¹czenie z Internetem zerwane.",1);444 SetStatusInfo(0, "Broken the internet connection.",1); 445 445 #endif 446 446 /* … … 800 800 stat->provider=DumbLogin; 801 801 switch (stat->provider) { 802 case Poland_TPSA: 802 case Poland_TPSA: /* TPSA - Polish Telecom */ 803 803 sprintf(program, scripts[1], stat->Phone_Number, stat->PPP_User, stat->PPP_Password); 804 804 break; -
c/src/libnetworking/pppd/rtems-ppp.c
ra8c33268 r6fa6367 428 428 } 429 429 /* baud_rate = 9600;*/ 430 /* na razie wpisujemy na twardo*/ 431 430 /* we hardcode it temporarily */ 432 431 if (tcsetattr(fd, TCSANOW, &tios) < 0) { 433 432 syslog(LOG_ERR, "tcsetattr: %m"); -
cpukit/libnetworking/ChangeLog
ra8c33268 r6fa6367 1 2001-04-20 Radzislaw Galler <rgaller@et.put.poznan.pl> 2 3 * modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c, 4 pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated 5 Polish comments and other strings into English 6 * pppd/STATUS: updated to reflect the changes 7 1 8 2001-04-20 Jake Janovetz <janovetz@uiuc.edu> 2 9 3 10 * rtems_servers/ftpd.c: Correct argument so hooks work again. 4 11 5 2001-03-15 Ralf Corsepiu <corsepius@faw.uni-ulm.de>12 2001-03-15 Ralf Corsepius <corsepius@faw.uni-ulm.de> 6 13 7 14 * include/.cvsignore: Remove danlgling file. -
cpukit/pppd/STATUS
ra8c33268 r6fa6367 16 16 other files suffer from this also. 17 17 18 + Find comments in Polish and get Tomasz to translate them. :) 18 + Find comments in Polish and get Tomasz to translate them. :) 19 (DONE but not sure if completely 20 Radzislaw Galler <rgaller@et.put.poznan.pl>) 19 21 20 22 + Add netdemo showing configuration and initialization.
Note: See TracChangeset
for help on using the changeset viewer.