[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #9427] Add gethostbyname hook
From: |
Joel Cunningham |
Subject: |
[lwip-devel] [patch #9427] Add gethostbyname hook |
Date: |
Fri, 4 Aug 2017 16:45:20 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0 |
URL:
<http://savannah.nongnu.org/patch/?9427>
Summary: Add gethostbyname hook
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: jcunningham
Submitted on: Fri 04 Aug 2017 08:45:19 PM UTC
Category: sockets/netconn
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: jcunningham
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
0001-Add-gethostbyname.patch: adds a new hook (LWIP_HOOK_GETHOSTBYNAME) which
allows an external DNS resolver to be hooked into's LwIP
gethostbyname/getaddrinfo implementation and DNS stack. The hook can handle
some or all of the queries
One use case for this hook is to run mDNSResponder in the same system as LwIP
(mDNSResponder also uses LwIP's socekt APIs) and have it handle .local queries
while LwIP stack handles unicast DNS queries
This allows applications to use LwIP's gethostbyname/getaddrinfo for all types
of queries supported in the system and not have to worry about using a
different API for each DNS resolver that actually handles the query
0001-Add-DNS-SD-hook-for-LWIP_HOOK_GETHOSTBYNAME.patch: This adds an
implementation of LWIP_HOOK_GETHOSTBYNAME that uses the
DNS-SD API provided by mDNSResponder
I've been using these in my port, which uses mDNSResponder (ported to LwIP)
only for MDNS queries (unicast queries use LwIP). This provides a unified DNS
subsystem that applications can use via gethostbyname/getaddrinfo. I know
others have mDNSResponder in a system with LwIP, so I'd like to share this
approach
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 04 Aug 2017 08:45:19 PM UTC Name: 0001-Add-gethostbyname-hook.patch
Size: 3KiB By: jcunningham
<http://savannah.nongnu.org/patch/download.php?file_id=41416>
-------------------------------------------------------
Date: Fri 04 Aug 2017 08:45:19 PM UTC Name:
0001-Add-DNS-SD-hook-for-LWIP_HOOK_GETHOSTBYNAME.patch Size: 8KiB By:
jcunningham
<http://savannah.nongnu.org/patch/download.php?file_id=41417>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?9427>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #9427] Add gethostbyname hook,
Joel Cunningham <=