On 19 June 2010 14:18, Julien Viard de Galbert <jul...@vdg.blogsite.org> wrote:
> On Sat, Jun 19, 2010 at 02:42:47PM +0200, Mats Erik Andersson wrote:
>> A week ago I did develop a patch against netsed-0.01c
>> to get rid of gethostbyname(3) by using getaddrinfo(3).
>> Thus implementing full IPv6 support and more for the TCP
>> layer of netsed. Would Julien Viard accept this, being the
>> de facto new upstream author?
>
> Sure, I already spent 3 hours last night to prepare the code.
>
> Please send your patch either directly to me, or to the bug #397420 where it 
> probably belong, I'll get it from here.
>
>>
>> The looping bug I addressed in the original text of this
>> message has no bearing on IPv6, nor does any reimplementation
>> to using selsect(2) instead of a misconceived polling.
>>
> About IPv6 I'll probably need help, I currently have no IPv6 knowledge...

getaddrinfo is the way to go on this. The IPv6 stuff should Just Work
in exactly the same way as IPv4, because the newer API is written that
way.

http://en.wikipedia.org/wiki/Getaddrinfo is quite descriptive.

It also means you don't need the if() block after inet_addr fails -
you can just replace it all with one getaddrinfo call, and it will
figure out both IP addresses and hostnames.

-- 
Tim Retout <t...@retout.co.uk>



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to