Kieran Mansley escreveu:
On Wed, 2008-12-10 at 14:48 -0200, Paulo Silva(OpenSoftware) wrote:
The changes are:

In file ../lwip/src/include/lwip/opt.h do changes:

 PPP_SUPPORT as follow:
/**
 * PPP_SUPPORT==1: Enable PPP.
 */
#ifndef PPP_SUPPORT
#define PPP_SUPPORT                     1
#endif

PAP_SUPPORT as follow:
/**
 * PAP_SUPPORT==1: Support PAP.
 */
#ifndef PAP_SUPPORT
#define PAP_SUPPORT                     1
#endif

Those two (above) shouldn't be necessary - that code is just supplying
the default values in case your project doesn't define all the options.
As you define those options in your lwipopts.h (below) the defaults
should have no effect.

In file ../ppp_test/unix/proj/ppp_test/lwipopts.h do changes:

PPP_SUPPORT as follow:
#define PPP_SUPPORT      1      /* Set > 0 for PPP */

PAP and CHAP  suport as follow:
/* Select modules to enable.  Ideally these would be set in the makefile but
* we're limited by the command line length so you need to modify the settings
 * in this file.
 */
#define PAP_SUPPORT      1      /* Set > 0 for PAP. */
#define CHAP_SUPPORT     1      /* Set > 0 for CHAP. */

The complete code for ppp_test from Peter Fodor may be get here:

http://www.freeweb.hu/fodpeter/lwip/ppp_test.tar.gz

Kieran



_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lwip-users



Hi Kieran

Correctly..., but I only understood that after send the email, I am new to lwip. Now I know that opt.h define the default, I forgot to say that NO_SYS should be asserted to 0(zero) when you use PPP_SUPORT.

Regards

PSilva








_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to