This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

lwip-ppp


Hello, 
 I'm trying to make lwip-ppp work, here's how:

 err = cyg_io_lookup( "/dev/ser1", &handle1 );
 if (ENOERR == err) {
	 middleblink();
 } else {
 	leftblink();
 };
# this does middleblink so I presume handle1 is now valid.
 pppInit();
 pppSetAuth(PPPAUTHTYPE_PAP,"pppuser","pppassword");
 pd=pppOpen(handle1,pppLinkStatusCallback,NULL);// here the system hangs..
 // it looks like it's handling some exception over and over again...
 // nothing apears on ser1

This:
 void pppLinkStatusCallback(void * ctx, int errCode, void * arg) {
	 skipblink();
 }
never gets called.

 Is this how one is supposed to initialise lwip-ppp connection?
How much threads does ppp need? is this enough:
	#define NTHREADS 3
	#define STACKSIZE ( CYGNUM_HAL_STACK_SIZE_TYPICAL + 4096 )
?

regards,
-- 
Dariush Pietrzak,
Key fingerprint = 40D0 9FFB 9939 7320 8294  05E0 BCC7 02C4 75CC 50D9

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]