Hi Sergey, On Sun, Jul 08, 2018 at 01:26:03AM +0300, Sergey A. Borshch wrote: > > Can I suggest to add some flag into netif to enable/disable software > checksum calculation? Using this flag can be selectable at compile time #if > (PPP_SUPPORT != 0) && (CHECKSUM_GEN_xxx == 0) > add flag into netif, init it in ppp_create and use > #else > use CHECKSUM_GEN_xxx > #endif
This is what LWIP_CHECKSUM_CTRL_PER_NETIF actually do. It is quite hard to add fail to build conditions on CHECKSUM_GEN_* macros, we don't know which prococols user is going to use (only UDP, only TCP, RAW IP packets…). Sylvain
signature.asc
Description: Digital signature
_______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
