[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] dns: remember multiple IP addresses patch
From: |
Jan Menzel |
Subject: |
[lwip-users] dns: remember multiple IP addresses patch |
Date: |
Wed, 21 Feb 2018 17:18:58 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hi all!
I'd like to share a small patch with you that allows the dns subsystem
to remember and handle more then one IP address from response messages.
It basically parses out all IP address and stores them in an array. It
then returns a random entry. The patch was created against lwip 2.0.0RC2
and requires LWIP_RAND(). I hope it might be as useful for others as it
was for us.
Jan
dns_multiples_ips.diff
Description: Text document
- [lwip-users] dns: remember multiple IP addresses patch,
Jan Menzel <=