Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 178556 Details for
Bug 254966
<net-irc/unrealircd-3.2.9 bundles a copy of c-ares-1.4.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to net-dns/c-ares providing function unrealircd wants
c-ares-unrealircd.patch (text/plain), 1.47 KB, created by
Nathan Phillip Brink (binki) (RETIRED)
on 2009-01-15 05:45:16 UTC
(
hide
)
Description:
patch to net-dns/c-ares providing function unrealircd wants
Filename:
MIME Type:
Creator:
Nathan Phillip Brink (binki) (RETIRED)
Created:
2009-01-15 05:45:16 UTC
Size:
1.47 KB
patch
obsolete
>diff -ru c-ares-1.6.0/ares.h Unreal3.2/extras/c-ares-1.6.0/ares.h >--- ares.h 2008-12-04 07:53:03.000000000 -0500 >+++ Unreal3.2/extras/c-ares-1.6.0/ares.h 2008-12-14 08:06:38.000000000 -0500 >@@ -218,6 +218,13 @@ > int nsort; > }; > >+struct ares_config_info { >+ int timeout; >+ int tries; >+ int numservers; >+ char **servers; >+}; >+ > struct hostent; > struct timeval; > struct sockaddr; >@@ -314,6 +321,8 @@ > void ares_free_hostent(struct hostent *host); > const char *ares_strerror(int code); > >+int ares_get_config(struct ares_config_info *d, ares_channel c); >+ > #ifdef __cplusplus > } > #endif >Only in Unreal3.2/extras/c-ares-1.6.0: ares.h.orig >diff -ru c-ares-1.6.0/ares_init.c Unreal3.2/extras/c-ares-1.6.0/ares_init.c >--- ares_init.c 2008-12-04 07:53:03.000000000 -0500 >+++ Unreal3.2/extras/c-ares-1.6.0/ares_init.c 2008-12-14 08:06:38.000000000 -0500 >@@ -1562,3 +1562,24 @@ > channel->sock_create_cb = cb; > channel->sock_create_cb_data = data; > } >+ >+int ares_get_config(struct ares_config_info *d, ares_channel c) >+{ >+ int i; >+ char *p; >+ >+ memset(d, 0, sizeof(struct ares_config_info)); >+ >+ d->timeout = c->timeout; >+ d->tries = c->tries; >+ d->numservers = c->nservers; >+ d->servers = calloc(sizeof(char *), c->nservers); >+ >+ for (i = 0; i < c->nservers; i++) >+ { >+ p = inet_ntoa(c->servers[i].addr); >+ d->servers[i] = p ? strdup(p) : NULL; >+ } >+ >+ return ARES_SUCCESS; >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 254966
:
178556
|
178629
|
178631
|
178657
|
179174