lwIP - A Lightweight TCP/IP stack - Bugs: bug #27157, Preprocessor definitions to...
You are not allowed to post comments on this tracker with your current authentication level.
bug #27157: Preprocessor definitions to exclude IPv6 sources
Submitter: | Joseph Thomas-Kerr <jokester01au> | ||
Submitted: | Mon 03 Aug 2009 02:01:50 AM UTC | ||
Category: | IPv6 | Severity: | 3 - Normal |
Item Group: | Feature Request | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | CVS Head |
Jump to the original submission
Tue 04 Aug 2009 12:20:25 PM UTC, comment #8: |
Bill Auerbach <billauerbach> |
Mon 03 Aug 2009 11:20:10 PM UTC, comment #7: ...of course, its hard to take things out of a release when somebody just possibly might be using it... |
Joseph Thomas-Kerr <jokester01au> |
Mon 03 Aug 2009 11:18:25 PM UTC, comment #6:
|
Joseph Thomas-Kerr <jokester01au> |
Mon 03 Aug 2009 01:48:05 PM UTC, comment #5:
|
Simon Goldschmidt <goldsimon> |
Mon 03 Aug 2009 12:43:33 PM UTC, comment #4: That's very true. In my system .c discovery is automated, .h is not (so I manually choose one include directory or the other).
|
Joseph Thomas-Kerr <jokester01au> |
Mon 03 Aug 2009 09:46:10 AM UTC, comment #3: Your patch ignores the fact that all the includes referring to the IP layer (like #include "lwip/ip.h") have to include v4 or v6. Solving this via #if's would require us to change all those lines to something like (#if IPv6 #include "bla" #else #include "blub" #endif) and would also break existing makefiles.
|
Simon Goldschmidt <goldsimon> |
Mon 03 Aug 2009 07:42:49 AM UTC, comment #2: I'm aware that I can select which one to use via setting only one or the other of ipv4 or ipv6 in my makefile.
|
Joseph Thomas-Kerr <jokester01au> |
Mon 03 Aug 2009 06:44:37 AM UTC, comment #1: You can use the unchanged lwIP release as it is now. lwIP does not support IPv4 and IPv6 at the same time but only one or the other. To switch between v4 and v6 you have to change the files that are built and the include directories so that you either include the two 'ipv4' directories or the two 'ipv6' directories in your build.
|
Simon Goldschmidt <goldsimon> |
Mon 03 Aug 2009 02:01:50 AM UTC, original submission:
Hi,
|
Joseph Thomas-Kerr <jokester01au> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-08-03 | jokester01au | Attached File | - | Added LWIP_IPV6-r2.diff, #18520 | |
2009-08-03 | goldsimon | Status | None | Invalid | |
Open/Closed | Open | Closed | |||
2009-08-03 | jokester01au | Attached File | - | Added LWIP_IPV6.diff, #18519 |
Powered by Savane 3.13-02a9.
Corresponding source code
Just want to add to this regarding the #includes having to also change for IPv6/v6 that you can use a macro for the include file name.