Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
4e58da52
Commit
4e58da52
authored
18 years ago
by
Gisle Vanem
Browse files
Options
Downloads
Patches
Plain Diff
Ares needs CURLRES_ADDRINFO_COPY. Curl_hostent_relocate() is gone.
parent
1c6ebb07
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/hostip.h
+5
-8
5 additions, 8 deletions
lib/hostip.h
with
5 additions
and
8 deletions
lib/hostip.h
+
5
−
8
View file @
4e58da52
...
...
@@ -51,14 +51,14 @@
#define CURLRES_IPV4
#endif
#ifdef
CURLRES_IPV4
#if
def
ined(
CURLRES_IPV4
) || defined(CURLRES_ARES)
#if !defined(HAVE_GETHOSTBYNAME_R) || defined(CURLRES_ASYNCH)
/* If built for ipv4 and missing gethostbyname_r(), or if using async name
resolve, we need the Curl_addrinfo_copy() function (which itself needs the
Curl_h
ostent_relocate
() function)) */
Curl_h
e2ai
() function)) */
#define CURLRES_ADDRINFO_COPY
#endif
#endif
/* IPv4-only */
#endif
/* IPv4
/ares
-only */
#ifndef CURLRES_ASYNCH
#define CURLRES_SYNCH
...
...
@@ -218,17 +218,14 @@ CURLcode Curl_addrinfo6_callback(void *arg,
struct
addrinfo
*
ai
);
/* [ipv4 only] Creates a Curl_addrinfo struct from a numerical-only IP
/* [ipv4
/ares
only] Creates a Curl_addrinfo struct from a numerical-only IP
address */
Curl_addrinfo
*
Curl_ip2addr
(
in_addr_t
num
,
const
char
*
hostname
,
int
port
);
/* [ipv4 only] Curl_he2ai() converts a struct hostent to a Curl_addrinfo chain
/* [ipv4
/ares
only] Curl_he2ai() converts a struct hostent to a Curl_addrinfo chain
and returns it */
Curl_addrinfo
*
Curl_he2ai
(
const
struct
hostent
*
,
int
port
);
/* relocate a hostent struct */
void
Curl_hostent_relocate
(
struct
hostent
*
h
,
long
offset
);
/* Clone a Curl_addrinfo struct, works protocol independently */
Curl_addrinfo
*
Curl_addrinfo_copy
(
const
void
*
orig
,
int
port
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment