While developing an application using lwIP for Blackfin (BF527), some questions arised, but I haven't been able to find a complete answer.
Let me descrive the situation:
- VisualDSP++ 5.0 Update 6 has an useful TCP/IP Configuration window that generates 3 files
- tcp_ip_conf.c with user_net_config_info struct definition
- tcp_ip_conf.h with some macro definitions
- INETD ADI supplied example is linked to liblwIPbf527.dlb which is generated with the liblwIP-527.dpj
- I need to patch the lwIP port (to enable answers to broadcast ping - that is disabled by default), so I modified the files
and recompiled the library liblwIPbf527.dlb
While doing this operations I wonder
- which is the suggested way to patch one of the supplied libraries? I modified the files into VisualDSP++ installation directory, but I don't like it, because when I upgraded VisualDSP the modified files will be overwritten. Have I to copy to a different location all the files and the folders used for the library, and recompile it?
- If I disable the UDP protocol in the TCP/IP Configuration window, but then I link to a compiled liblwIPbf527.dlb, is the UDP code linked to my project, or not?
- The tcp_ip_conf.h defines the macro _LWIPOPTS_H_, but lwiopts.h has a
in its first lines
I modified lwiopts.h to add custom #define, and I recompiled the library. When I linked it to my project my patch works, and so I think the tcp_ip_conf.h definitions have no effects (because I linked to a compiled library). Am I right?
Thanks in advance