Changes between Version 15 and Version 16 of Packages/LWIP


Ignore:
Timestamp:
Nov 19, 2018, 8:34:12 PM (5 months ago)
Author:
Pavel Pisa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Packages/LWIP

    v15 v16  
    109109}}}
    110110
     111This simple way how to map RTEMS descriptors to LwIP ones can be found in file
     112
     113https://github.com/ppisa/rtems-devel/blob/master/rtems-omk-template/applwiptest/rtems_lwip_io.c
     114
     115Because LwIP sockaddr type can in general differ and AF_XXX and PF_XXX differ
     116between NewLib and LwIP there is implemented layer to translate NewLib application
     117types and defines to from/to LwIP ones
     118
     119https://github.com/ppisa/rtems-devel/blob/master/rtems-omk-template/applwiptest/rtems_lwip_int.h
     120
     121https://github.com/ppisa/rtems-devel/blob/master/rtems-omk-template/applwiptest/rtems_lwip_io.c
    111122
    112123But simple solution has disadvantage that there are consulted two tables (FD_RTEMS -> RTEMS iop data, FD_LwIP to LwIP connection state) in each operation function. even worse both tables and objects have to be separately allocated and freed. Better solution is to not use LwIP provided FD allocation layer and use directly API working with connection state through structure pointers to struct netconn. LwIP FD API