aboutsummaryrefslogtreecommitdiffstats
path: root/nametoaddr.c
diff options
context:
space:
mode:
authoritojun <itojun>2003-12-24 09:14:21 +0000
committeritojun <itojun>2003-12-24 09:14:21 +0000
commit1b3a318d830f7e1e0fa6cf7b8873bd788dd34e2d (patch)
treecdb70eac51e646bf1e6020cb70a43c7da8e3a158 /nametoaddr.c
parent08ef9a54d2613a53d847cc321c8ab3f9d43d15cf (diff)
typo
Diffstat (limited to 'nametoaddr.c')
-rw-r--r--nametoaddr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nametoaddr.c b/nametoaddr.c
index 70b64ce..02f1b48 100644
--- a/nametoaddr.c
+++ b/nametoaddr.c
@@ -24,7 +24,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.72 2003-12-24 08:27:04 itojun Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.73 2003-12-24 09:14:21 itojun Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -124,7 +124,7 @@ pcap_nametoaddrinfo(const char *name)
memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM; /*not really*/
- hints.ai_socktype = IPPROTO_TCP; /*not really*/
+ hints.ai_protocol = IPPROTO_TCP; /*not really*/
error = getaddrinfo(name, NULL, &hints, &res);
if (error)
return NULL;