lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] LCP Termination Request steps


From: N.Karakotas
Subject: Re: [lwip-users] LCP Termination Request steps
Date: Mon, 4 Jun 2012 19:43:13 +0300

After all it was in the file ipcp.c . You have a comment: do we really need this and returns 0.
mask = get_mask(go->ouraddr);

It default the netmask to zero so all the data was routed to pp0 instead of em0.
Also I added a thread remove to ppp_input_thread:

static void
ppp_input_thread(void *arg)
{
 int count;
 ppp_control_rx *pcrx = arg;

 while (phase != PHASE_DEAD) {
   count = sio_read(pcrx->fd, pcrx->rxbuf, PPPOS_RX_BUFSIZE);
   if(count > 0) {
     pppos_input_proc(pcrx, pcrx->rxbuf, count);
   } else {
     /* nothing received, give other tasks a chance to run */
     sys_msleep(1);
   }
 }

 sys_thread_t t = sys_arch_thread_current();
 sys_arch_thread_remove(t);

}

Sorry for bombarding you with mails. Im appreciate what you have done to port the new PPP and im trying to contribute as much as possible.

--------------------------------------------------
From: "N.Karakotas" <address@hidden>
Sent: Monday, June 04, 2012 6:08 PM
To: "Mailing list for lwIP users" <address@hidden>
Subject: Re: [lwip-users] LCP Termination Request steps

Hello Sylvain,

I have noticed that once I add the interface pp I cant connect to the Ethernet httpd but can ping. I cant seem to spot the change from the previous code. I did a test where I removed the pp and the Ethernet came back fine. Unless the pp thread now is consuming more task time and the httpd isnt getting a chance to run.

--------------------------------------------------
From: "Sylvain Rochet" <address@hidden>
Sent: Monday, June 04, 2012 1:30 PM
To: "Mailing list for lwIP users" <address@hidden>
Subject: Re: [lwip-users] LCP Termination Request steps

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]