David Drysdale
87ff25049c
Mark unhittable lines
...
Add comments for the benefit of the lcov tool, marking
lines that cannot be hit. Typically these are fall-back
protection arms that are already covered by earlier checks,
and so it's not worth taking out the unhittable code (in case
someone changes the code between the two places in future).
9 years ago
Daniel Stenberg
cf7ad9758d
ares_inet_pton/ntop: cleanup
...
Make sure that the symbols are always exported and present in c-ares.
Make the headers prefixed with 'ares'.
Removed the inet_ntop.h version as it no longer features any content.
12 years ago
Yang Tse
0c677f578e
setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
...
Inclusion of these two header files now done in setup_once.h
12 years ago
Yang Tse
a1035276c1
Header inclusion clean-up
...
Remove header inclusions already done in setup_once.h
12 years ago
Yang Tse
8c503ddf79
System's errno.h inclusion cleanup.
...
System's errno.h is conditionally included from setup_once.h
14 years ago
Daniel Stenberg
39d7f64361
getv4: Value stored to 'dst' is never read
14 years ago
Yang Tse
f5e0858d2f
fix compiler warning: conversion may lose significant bits
14 years ago
Yang Tse
e03a65c3d9
ares_inet_net_pton: fix non-rejection of some malformed literals
...
ares_inet_net_pton would return wrong values when excessively large,
and invalid, netmasks are used. Fixes are from bind-9.5.3rc1,
issue also described in the WLB-2008080064 advisory.
14 years ago
Yang Tse
623f3cb531
configure: inet_net_pton function check adjustments
...
Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6
capable and is not affected by the WLB-2008080064 advisory.
HAVE_INET_NET_PTON_IPV6 is no longer defined nor used.
14 years ago
Yang Tse
e9e8b6e864
inet_pton: fix compiler warning
14 years ago
Ben Greear
3e33e2c2ba
ipv6: Fix some build issues related to the local-bind feature.
...
Signed-off-by: Ben Greear <greearb@candelatech.com>
15 years ago
Daniel Stenberg
63627fa5ab
remove all $Id$ lines
15 years ago
Yang Tse
8fe746fcf2
Added IPv6 name servers support
15 years ago
Yang Tse
a82a8fbf82
Renamed c-ares setup.h to ares_setup.h
15 years ago
Yang Tse
590e697792
Fix compiler warning
15 years ago
Yang Tse
5ca18d6d80
HAVE_INET_PTON will only be defined when an IPv6 capable working
...
inet_pton function is available.
16 years ago
Yang Tse
f214b583f5
adjust inclusion of "nameser.h"
16 years ago
Gisle Vanem
a627160041
Removed inclusion of <sys/types.h> in .c-files
...
since it's already included through "setup.h".
18 years ago
Yang Tse
69fa447354
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
18 years ago
Yang Tse
2bd57a6d30
use our own ISUPPER and ISLOWER macros
18 years ago
Yang Tse
fb38ee15e2
compiler warning fix
18 years ago
Yang Tse
dd3b42e1ac
Replace is*() macros with our own IS*() ones.
...
Get rid of non ANSI/ISO isascii().
18 years ago
Gisle Vanem
0a83c1e416
2nd try adding CVS id.
19 years ago
Gisle Vanem
f6e7395ca0
Added CVS id.
19 years ago
Daniel Stenberg
af3a246f32
indented source to look more like other ares code,
...
added (somewhat ugly) typecasts to build warning-free on 64bit platforms (the
result of a (char *) - (char *) cannot be stored in an int universally)
20 years ago
Daniel Stenberg
f2058d6a9f
add needed include
20 years ago
Dominick Meglio
9b33259b5e
Removed usage of u_int and u_char
20 years ago
Daniel Stenberg
e10e4843c6
moved the *_inet_pton protos to inet_net_pton.h instead
20 years ago
Daniel Stenberg
3d90cb252b
with these changes, it builds on my win32 cross-compiler
20 years ago
Dominick Meglio
ffb4cf5554
Provided implementations of inet_net_pton and inet_pton from BIND for systems that do not include these functions. These will be necessary for CIDR support and IPv6 support.
20 years ago