lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Example of changes needed to switch from 1.4.1 to 2.0.1


From: Mikael Eiman
Subject: [lwip-users] Example of changes needed to switch from 1.4.1 to 2.0.1
Date: Fri, 3 Mar 2017 09:21:12 +0100

Hi,

I recently switched from 1.4.1 to 2.0.1, and thought it might be useful for 
someone to see what changes I had to make to make the switch.

In my port (LPC2468, mostly own code) I did the following:

- removed a bunch of typedefs for mem_ptr_t, u8_t etc from cc.h
- removed a bunch for format defines such as X8_F from cc.h

- tweaked include path to lwip/opt.h in my driver .c
- removed include of lwip/ppp_oe.h from my driver .c

In my application code I did this (code provides internal API similar to 
netconn using the raw API, NO_SYS is 1):

- added defines for SNMP_LWIP_MIB2, MIB2_STATS
- switched include lwip/tcp_impl.h to lwip/priv/tcp_priv.h
- switched include lwip/ip_frag.h to lwip/ip4_frag.h
- switched include lwip/snmp.h to lwip/apps/snmp.h
- switched a bunch of "struct ip_addr” to ip_addr_t
- removed call to snmp_add_sysuptime() (not needed any more)
- replaced manual timer checks with sys_check_timeouts()
- added explicit snmp_init() call
- replaced smp_set_syscontact() et al with snmp_mib2_set_syscontact() et al
- added missing const to parameter to UDP callback function

I removed everything except the snmp stuff from the lwip/apps dir, since I 
don’t use that.

So far I’m using only IPv4.

All in all, things seem to be working and the switch was a lot easier than I 
expected.

Thanks to all of you who have made this, it’s a magnificent piece of code!

regards,
        Mikael




reply via email to

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