aboutsummaryrefslogtreecommitdiffstats
path: root/nametoaddr.c
diff options
context:
space:
mode:
authoritojun <itojun>2000-04-27 09:18:57 +0000
committeritojun <itojun>2000-04-27 09:18:57 +0000
commita906e591fb803d06be3bc9b594ccfeee4840a867 (patch)
tree5d3fa10f384741144adac9338dbe185a018ad228 /nametoaddr.c
parent20d9e08cde232247531358fd448ad845c89c7a16 (diff)
revert renaming of pcap_nametoaddrinfo to pcap_nametoaddr. this gets
painful when upgrading old libpcap to tcpdump.org pcap (function rename usually requires shlib major number bump, while api addition only require minor)
Diffstat (limited to 'nametoaddr.c')
-rw-r--r--nametoaddr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nametoaddr.c b/nametoaddr.c
index 8ec6ba9..8cc0120 100644
--- a/nametoaddr.c
+++ b/nametoaddr.c
@@ -24,7 +24,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.51 1999-11-25 08:25:35 itojun Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.52 2000-04-27 09:18:58 itojun Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -74,7 +74,6 @@ static inline int xdtoi(int);
* Convert host name to internet address.
* Return 0 upon failure.
*/
-#ifndef INET6
bpf_u_int32 **
pcap_nametoaddr(const char *name)
{
@@ -98,9 +97,10 @@ pcap_nametoaddr(const char *name)
else
return 0;
}
-#else
+
+#ifdef INET6
struct addrinfo *
-pcap_nametoaddr(const char *name)
+pcap_nametoaddrinfo(const char *name)
{
struct addrinfo hints, *res;
int error;