|
From: David G. <dav...@po...> - 2008-11-22 02:57:15
|
Donal K. Fellows wrote: > Jeff Hobbs wrote: >> I have a working patch for this that Pat has vetted. I will try and >> squeeze out some time this weekend to update the patch (tkchat consensus >> was to use -family instead of -type for inet4|inet6) against the head(s). > > It's not clear to me why that's needed. Couldn't I just use -myaddr to > force the issue if I cared and Let Tcl Do The Right Thing the rest of > the time? It goes something like this... A lookup for a site such as "www.kame.org" might return both an inet4 and an inet6 address. The v6 planning docs say to to use the v6 when available, but sometimes you might want to force v4, just cause. And addresses like ::192.68.12.14 are really v6 in disguise, but you might not want the outgoing on a v6 socket. -family forces the hints to getaddrinfo() so you get the result you want. |