lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #6786] task #7507: Hook to support static hosts file


From: Robert Sprowson
Subject: [lwip-devel] [patch #6786] task #7507: Hook to support static hosts file in DNS lookup
Date: Fri, 20 Mar 2009 20:47:34 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

Follow-up Comment #2, patch #6786 (project lwip):

Changing  sys_ -> sys_arch_  good point, it's definitely architecture
specific.

I guess the simplest reference implementation I could think of would be

u32_t sys_arch_hosts_file_dns_lookup(const char *name)
{
  if (stricmp(name, "localhost") == 0) return htonl(0x7F000001);
  return 0;
}

since any inspection of a hosts file (be it ROM/RAM/filing system) is going
to be platform specific too.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6786>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]