Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set ai_protocol in hints to TCP. not sure if we will support SCTP rel…

…aying

with faithd, but if we do that, we'd do that with faithd.libevent not here.
  • Loading branch information...
commit a912c0d1b8b3750725cfd0f991b4f2187ce5bfae 1 parent f78b4a2
itojun authored
Showing with 4 additions and 3 deletions.
  1. +2 −2 kame/kame/faithd/faithd.c
  2. +2 −1  kame/kame/faithd/ftp.c
View
4 kame/kame/faithd/faithd.c
@@ -1,4 +1,4 @@
-/* $KAME: faithd.c,v 1.58 2002/09/08 01:12:30 itojun Exp $ */
+/* $KAME: faithd.c,v 1.59 2003/04/18 08:21:18 itojun Exp $ */
/*
* Copyright (C) 1997 and 1998 WIDE Project.
@@ -281,7 +281,7 @@ daemon_main(int argc, char **argv)
hints.ai_flags = AI_PASSIVE;
hints.ai_family = family;
hints.ai_socktype = SOCK_STREAM;
- hints.ai_protocol = 0;
+ hints.ai_protocol = IPPROTO_TCP; /* SCTP? */
error = getaddrinfo(NULL, service, &hints, &res);
if (error)
exit_failure("getaddrinfo: %s", gai_strerror(error));
View
3  kame/kame/faithd/ftp.c
@@ -1,4 +1,4 @@
-/* $KAME: ftp.c,v 1.20 2002/09/08 01:12:30 itojun Exp $ */
+/* $KAME: ftp.c,v 1.21 2003/04/18 08:21:18 itojun Exp $ */
/*
* Copyright (C) 1997 and 1998 WIDE Project.
@@ -831,6 +831,7 @@ ftp_copycommand(int src, int dst, enum state *state)
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
+ hints.ai_protocol = IPPROTO_TCP;
error = getaddrinfo(hostp, portp, &hints, &res);
if (error) {
n = snprintf(sbuf, sizeof(sbuf),
Please sign in to comment.
Something went wrong with that request. Please try again.