Discussion:
[lwip-users] PPPoS and ordinary Ethernet (not PPPoE) under FreeRTOS
Edward Harris
2008-09-08 12:33:21 UTC
Permalink
Hello all.

Has anyone had PPPoS and the normal Ethernet (not PPPoE) running under
LwIP at the same time? I seem to suffer corruption on my Ethernet
interface when I try this. If I turn off the PPPoS then the Ethernet
works fine.

Also, whilst looking at the PPPoS, it appears the pppmain function just
returns if it fails to connect, but under the system support I have
(FreeRTOS), this isn't the right thing to do as tasks should never
return. pppOverSerialOpen() creates a new thread that starts with the
pppmain function. Is this a bug, or have I misunderstood something here?

Thanks in advance

Edward Harris
Cyan Technology
g***@gmx.de
2008-09-08 15:56:13 UTC
Permalink
While I can't help you with the PPPoS (or ppp at all), I can tell you
that you have to take care of destroying tasks in the port: you have to
cope with thread functions returning, lwIP doesn't delete threads. If
threads have to be deleted before returning in your environment, you can
solve this using a wrapper function around the task functions being
called. In this wrapper function, when the task function returns, you
can delete the thread.

Simon
Post by Edward Harris
Hello all.
Has anyone had PPPoS and the normal Ethernet (not PPPoE) running under
LwIP at the same time? I seem to suffer corruption on my Ethernet
interface when I try this. If I turn off the PPPoS then the Ethernet
works fine.
Also, whilst looking at the PPPoS, it appears the pppmain function just
returns if it fails to connect, but under the system support I have
(FreeRTOS), this isn't the right thing to do as tasks should never
return. pppOverSerialOpen() creates a new thread that starts with the
pppmain function. Is this a bug, or have I misunderstood something here?
Thanks in advance
Edward Harris
Cyan Technology
_______________________________________________
lwip-users mailing list
http://lists.nongnu.org/mailman/listinfo/lwip-users
Edward Harris
2008-09-09 10:08:00 UTC
Permalink
Thanks for that.

This looks like something I will have to raise within the FreeRTOS
system support, as none of the examples seem to use this wrapper
function.

Regards,

Edward Harris
Cyan Technology

-----Original Message-----
On Behalf Of ***@gmx.de
Sent: 08 September 2008 16:56
To: Mailing list for lwIP users
Subject: Re: [lwip-users] PPPoS and ordinary Ethernet (not PPPoE)
underFreeRTOS

While I can't help you with the PPPoS (or ppp at all), I can tell you
that you have to take care of destroying tasks in the port: you have to
cope with thread functions returning, lwIP doesn't delete threads. If
threads have to be deleted before returning in your environment, you can
solve this using a wrapper function around the task functions being
called. In this wrapper function, when the task function returns, you
can delete the thread.

Simon
Post by Edward Harris
Hello all.
Has anyone had PPPoS and the normal Ethernet (not PPPoE) running under
LwIP at the same time? I seem to suffer corruption on my Ethernet
interface when I try this. If I turn off the PPPoS then the Ethernet
works fine.
Also, whilst looking at the PPPoS, it appears the pppmain function just
returns if it fails to connect, but under the system support I have
(FreeRTOS), this isn't the right thing to do as tasks should never
return. pppOverSerialOpen() creates a new thread that starts with the
pppmain function. Is this a bug, or have I misunderstood something here?
Thanks in advance
Edward Harris
Cyan Technology
_______________________________________________
lwip-users mailing list
http://lists.nongnu.org/mailman/listinfo/lwip-users
Loading...