Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/crypto/dist/heimdal/lib/roken Pull up revision 1.1.1.2 ...
details: https://anonhg.NetBSD.org/src/rev/3fe4214977ea
branches: netbsd-1-5
changeset: 491176:3fe4214977ea
user: he <he%NetBSD.org@localhost>
date: Thu Apr 05 23:28:35 2001 +0000
description:
Pull up revision 1.1.1.2 (via patch, requested by assar):
Upgrade Heimdal to version 0.3e.
diffstat:
crypto/dist/heimdal/lib/roken/getaddrinfo_hostspec.c | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diffs (47 lines):
diff -r d280dc72aafb -r 3fe4214977ea crypto/dist/heimdal/lib/roken/getaddrinfo_hostspec.c
--- a/crypto/dist/heimdal/lib/roken/getaddrinfo_hostspec.c Thu Apr 05 23:28:10 2001 +0000
+++ b/crypto/dist/heimdal/lib/roken/getaddrinfo_hostspec.c Thu Apr 05 23:28:35 2001 +0000
@@ -33,7 +33,7 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
-RCSID("$Id: getaddrinfo_hostspec.c,v 1.1.1.1.2.1 2000/08/22 14:54:57 fvdl Exp $");
+RCSID("$Id: getaddrinfo_hostspec.c,v 1.1.1.1.2.2 2001/04/05 23:28:35 he Exp $");
#endif
#include "roken.h"
@@ -41,9 +41,10 @@
/* getaddrinfo via string specifying host and port */
int
-roken_getaddrinfo_hostspec(const char *hostspec,
- int port,
- struct addrinfo **ai)
+roken_getaddrinfo_hostspec2(const char *hostspec,
+ int socktype,
+ int port,
+ struct addrinfo **ai)
{
const char *p;
char portstr[NI_MAXSERV];
@@ -66,7 +67,7 @@
memset(&hints, 0, sizeof(hints));
- hints.ai_socktype = SOCK_DGRAM;
+ hints.ai_socktype = socktype;
for(hstp = hst; hstp->prefix; hstp++) {
if(strncmp(hostspec, hstp->prefix, strlen(hstp->prefix)) == 0) {
@@ -93,3 +94,11 @@
snprintf (host, sizeof(host), "%.*s", hostspec_len, hostspec);
return getaddrinfo (host, portstr, &hints, ai);
}
+
+int
+roken_getaddrinfo_hostspec(const char *hostspec,
+ int port,
+ struct addrinfo **ai)
+{
+ return roken_getaddrinfo_hostspec2(hostspec, 0, port, ai);
+}
Home |
Main Index |
Thread Index |
Old Index