lwIP - A Lightweight TCP/IP stack - Patches: patch #6786, task #7507: Hook to support static...
You are not allowed to post comments on this tracker with your current authentication level.
patch #6786: task #7507: Hook to support static hosts file in DNS lookup
Submitter: | Robert Sprowson <sprow> | ||
Submitted: | Thu 19 Mar 2009 10:09:08 PM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | Done | Privacy: | Public |
Assigned to: | goldsimon | Open/Closed: | Closed |
Planned Release: | 1.4.0 |
Jump to the original submission
Sat 09 May 2009 01:45:05 PM UTC, comment #13: |
Simon Goldschmidt <goldsimon> |
Sat 09 May 2009 09:29:18 AM UTC, comment #12: Nice! So now we support
|
Robert Sprowson <sprow> |
Thu 07 May 2009 03:29:11 PM UTC, comment #11: Robert, good news for you: I've added an #ifdef for an external function (DNS_LOOKUP_LOCAL_EXTERN()) that you can use.
|
Simon Goldschmidt <goldsimon> |
Thu 23 Apr 2009 05:41:17 AM UTC, comment #10:
|
Simon Goldschmidt <goldsimon> |
Wed 22 Apr 2009 09:35:33 PM UTC, comment #9: You've lost me, how would I point the list at my EEPROM? It's a 6 pin serial device that I have to clock commands to to get bytes back.
|
Robert Sprowson <sprow> |
Wed 22 Apr 2009 07:25:24 AM UTC, comment #8:
|
Simon Goldschmidt <goldsimon> |
Tue 21 Apr 2009 09:46:25 PM UTC, comment #7: I'd have a couple of comments on what you've suggested, naturally my suggested patch fulfilled my personal requirements and might not be the best approach.
|
Robert Sprowson <sprow> |
Tue 21 Apr 2009 06:45:31 PM UTC, comment #6: Robert, I'm afraid I have to disappoint you a bit: reading through task #7507, I remembered our previous decision to make the 'static' local table a bit more 'unstatic' in the sense of providing add/remove functions. I couldn't see how to integrate this neatly with your proposal unless adding yet another configuration option à la first-look-into-hook-then-look-into-local-table, which I'm not really convinced of.
|
Simon Goldschmidt <goldsimon> |
Tue 14 Apr 2009 07:39:42 PM UTC, comment #5: Gah, you're right. Let's make the example
|
Robert Sprowson <sprow> |
Tue 14 Apr 2009 06:01:49 PM UTC, comment #4:
|
Simon Goldschmidt <goldsimon> |
Fri 03 Apr 2009 11:09:36 AM UTC, comment #3: I've marked this as 1.4.0 but would be happy to take it earlier if someone wants to test and commit |
Kieran Mansley <kieranm> |
Fri 20 Mar 2009 08:47:33 PM UTC, comment #2: Changing sys_ -> sys_arch_ good point, it's definitely architecture specific.
|
Robert Sprowson <sprow> |
Fri 20 Mar 2009 06:58:19 AM UTC, comment #1: Looks fine to me although we should provide a reference implementation: Most systems will have the file either in RAM or ROM/flash since we are talking mostly about embedded systems here.
|
Simon Goldschmidt <goldsimon> |
Thu 19 Mar 2009 10:09:08 PM UTC, original submission:
Most systems allow a hosts file so that a few static IP addresses can be defined, say for things on a local subnet which can't be resolved.
|
Robert Sprowson <sprow> |
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 7 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-05-07 | goldsimon | Status | Need Info | Done | |
Open/Closed | Open | Closed | |||
2009-04-21 | goldsimon | Status | None | Need Info | |
Assigned to | None | goldsimon | |||
2009-04-03 | kieranm | Planned Release | None | 1.4.0 | |
2009-03-20 | goldsimon | Summary | Hook to support static hosts file in DNS lookup | task #7507: Hook to support static hosts file in DNS lookup | |
2009-03-19 | sprow | Attached File | - | Added diffs.txt, #17736 |
Powered by Savane 3.13-f8d8.
Corresponding source code
I've also thought about that, but sys.h or sys_arch.h is definitively not the right header, because they are for OS adaption. It would be enough if the function is defined in cc.h or even lwipopts.h.
I deliberately did not prototype the function as you could decide to have it static, extern or inline, which would be pre-decided if I made that prototype.