search for: addrinfo

Displaying 20 results from an estimated 244 matches for "addrinfo".

2009 Sep 02
1
Old versions of lib/addrinfo.h missing from rsync repo
Wayne, Today, to investigate an issue on RHEL 5.2, I checked out rsync 2.6.8 from the rsync repository and attempted to build it. The build failed because the tagged tree did not contain lib/addrinfo.h, which is included by rsync.h. On further investigation, the 2007-10-24 snapshot of the CVS repository you sent me contains revisions 1.1 through 1.11 of lib/addrinfo.h with the release-2-6-8 tag on 1.9, but those eleven revisions are missing from the current CVS repository and the git repositor...
2017 Mar 06
2
Suspicious code in net_socket.c
Good afternoon! Module - net_socket.c Function - get_known_addresses --------------------------------------------------- struct addrinfo *nai = xzalloc(sizeof *nai); if(ai) ai->ai_next = nai; ai = nai; -------------------------------------------------- For my opinion, possible causes: 1. Lost trails (ai_next) 2. ai_next not initialized 3. Possible segfault during "freeaddrinfo" call in do_outgoing_connections Ma...
2007 Apr 15
0
Bug in mingw/device.c: addrinfo structure is freed too early
Hello, there is a small bug in mingw/device.c : After freeing the addrinfo structure there are further accesses to members of the structure. I discovered this bug while using this code unter MS Visual Studio. ------ freeaddrinfo(ai); if(sock < 0) { logger(LOG_ERR, _("System call `%s' failed: %s"), "socket", strerror(errno)); return -1;...
2003 Oct 28
4
simple compile
I could not find this question anywhere, but I apologize if it is and I just missed it. Running an Alpha, OSF1 V5.1 1885 configure went fine. compile failed: cc -I. -I. -g -DHAVE_CONFIG_H -I./popt -c lib/getaddrinfo.c -o lib/getaddrinfo.o cc: Error: lib/getaddrinfo.c, line 182: In this statement, "EAI_MAX" is not declared. (undeclared) if (ecode < 0 || ecode > EAI_MAX) ---------------------------------^ cc: Error: lib/getaddrinfo.c, line 264: In this statement, "EAI_BADHINTS"...
2017 Jan 12
3
proposed change to ssh_connect_direct()
On Sat, Jan 7, 2017 at 2:30 PM, Peter Moody <mindrot at hda3.com> wrote: > so I spent a bit of time looking at this and it seems like the only > way to go, at least if I want to keep it in ssh_connect_direct(), is > to use pthreads. further, it seems like getting that accepted is > something of a long shot: Sorry, pthreads is a non-starter. I would have thought that using
2003 May 18
1
OpenSSH -current segfaults on HP-UX+gcc
Hi All. As of last night, sshd now segfaults on HP-UX (11.00, gcc 3.2.2) on startup. I've single-stepped through the code in freeaddrinfo and it's called with a valid *addrinfo, follows ai_next once then for some reason attempts to deref the second pointer which is NULL. Suspecting a compiler/optimization bug I recompiled fake-getaddrinfo.c without optimization but that made no difference. If I change the for loop to "fo...
2000 Jan 18
0
More NetBSD patches
...10 @@ AC_MSG_CHECKING([for struct in6_addr]) AC_TRY_COMPILE( - [#include <netinet/in.h>], + [ +#include <sys/types.h> +#include <netinet/in.h> + ], [struct in6_addr s; s.s6_addr[0] = 0;], [ AC_DEFINE(HAVE_STRUCT_IN6_ADDR) @@ -280,6 +294,7 @@ AC_MSG_CHECKING([for struct addrinfo]) AC_TRY_COMPILE( [ + #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> ], Index: fake-getaddrinfo.c =================================================================== RCS file: /usr/local/cvs/openssh/fake-getaddrinfo.c,v retrieving revision 1.1 diff -...
2002 Nov 17
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS (update)
...getgroups trimsl # note that the -I. is needed to handle config.h when using VPATH .c.o: @OBJ_SAVE@ - $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< @CC_SHOBJ_FLAG@ + $(CC) -I. -I$(srcdir) $(CFLAGS) $(CPPFLAGS) -c $< @CC_SHOBJ_FLAG@ @OBJ_RESTORE@ all: rsync diff -urp --new-file oldrsync/lib/getaddrinfo.c newrsync/lib/getaddrinfo.c --- oldrsync/lib/getaddrinfo.c Tue Aug 27 11:05:47 2002 +++ newrsync/lib/getaddrinfo.c Tue Aug 27 15:46:48 2002 @@ -73,9 +73,9 @@ static const char in6_loopback[] = { }; struct sockinet { - u_char si_len; - u_char si_family; - u_short si_port; + uchar_t si_len; + uc...
2002 Sep 06
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS
...MSLASH_OBJ) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(TRIMSLASH_OBJ) $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(TRIMSLASH_OBJ) $(LIBS) Makefile: Makefile.in configure config.status echo "WARNING: You need to run ./config.status --recheck" diff -urp --new-file oldrsync/lib/getaddrinfo.c newrsync/lib/getaddrinfo.c --- oldrsync/lib/getaddrinfo.c Tue Aug 27 11:05:47 2002 +++ newrsync/lib/getaddrinfo.c Tue Aug 27 15:46:48 2002 @@ -73,9 +73,9 @@ static const char in6_loopback[] = { }; struct sockinet { - u_char si_len; - u_char si_family; - u_short si_port; + uchar_t si_len; + uc...
2002 Oct 14
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS (resend)
...MSLASH_OBJ) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(TRIMSLASH_OBJ) $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(TRIMSLASH_OBJ) $(LIBS) Makefile: Makefile.in configure config.status echo "WARNING: You need to run ./config.status --recheck" diff -urp --new-file oldrsync/lib/getaddrinfo.c newrsync/lib/getaddrinfo.c --- oldrsync/lib/getaddrinfo.c Tue Aug 27 11:05:47 2002 +++ newrsync/lib/getaddrinfo.c Tue Aug 27 15:46:48 2002 @@ -73,9 +73,9 @@ static const char in6_loopback[] = { }; struct sockinet { - u_char si_len; - u_char si_family; - u_short si_port; + uchar_t si_len; + uc...
2000 Jan 27
0
more NetBSD patches, for OpenSSH V1.2.2
...ot;/dev/urandom"; then + if test -r "/dev/urandom" && dd if=/dev/urandom of=/dev/null bs=1 count=1; then eval "ac_cv_file_$ac_safe=yes" else eval "ac_cv_file_$ac_safe=no" $NetBSD: patch-ab,v 1.1 2000/01/17 05:34:34 christos Exp $ --- fake-getaddrinfo.c.orig Sun Jan 16 23:45:39 2000 +++ fake-getaddrinfo.c Sun Jan 16 23:47:45 2000 @@ -41,7 +41,7 @@ do { next = ai->ai_next; free(ai); - } while (ai = next); + } while ((ai = next) != NULL); } #endif /* !HAVE_FREEADDRINFO */ @@ -53,8 +53,8 @@ { struct addrinfo *ai; - if (...
2019 Jun 07
1
Problem with opusfile & ndk
Hi Xiph.org Team. We are using opusfile library <https://github.com/xiph/opusfile> for streaming *.opus* audio in our projects. But now we have a problem with building opusfile library for android with *ndk-build*. In particular, with arm64-v8a platform: Google removed <sys/timeb.h> from android. And now building opusfile with nkd-build crashes with error "fatal error:
2000 Jan 28
3
porting OpenSSH to an SX4
Dear OpenSSH developers, I'm trying to port OpenSSH to our NEC SX4, but am having trouble finding reference to the 'addrinfo' structure. (Refer ssh.c:488). If anyone can shed some light on this struct, or has ported OpenSSH to a similar platform, I'd be very interested to hear from you. Thanks, Niels -- HPC Systems Programmer Information Technology Services, The University of Melbourne, Parkville 3052, Austra...
2004 Jan 19
0
rsync 2.6.0 and Solaris 8
Trying to build rsync 2.6.0 on Solaris 8 (gcc 3.3.2) has revealed that some of the EAI_ defines exist on Solaris, but not all of them. This causes lib/getaddrinfo.c to fail compilation as EAI_MAX (and some others) is undefined. The patch below fixes this issue, but I haven't tested the specific error conditions represented by the defines. Bryan --- lib/addrinfo.h.orig 2001-12-05 06:19:16.000000000 -0700 +++ lib/addrinfo.h 2004-01-16 21:45:44.678112000...
2005 Feb 19
1
Samba with ADS
...V; $e =~ s/OBJS\...$//; s/^/ /; s/ $//; s/ / $e/g;' OBJS.SH` && gcc -shared -h libkrb5support.so.0 -o libkrb5support.so.0.0 $objlist -R/usr/local/lib -lresolv -lsocket -lnsl + set -x + perl -p -e $e=$ARGV; $e =~ s/OBJS\...$//; s/^/ /; s/ $//; s/ / $e/g; OBJS.SH objlist= threads.so fake-addrinfo.so + gcc -shared -h libkrb5support.so.0 -o libkrb5support.so.0.0 threads.so fake-addrinfo.so -R/usr/local/lib -lresolv -lsocket -lnsl ld: fatal: file threads.so: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to libkrb5support.so.0.0 collect2: ld returned 1 exit st...
2018 Feb 23
6
RFC 8305 Happy Eyeballs in OpenSSH
...plements part of it in sshconnect.c. * It does not do section 3 (initiation of asynchronous DNS queries, a SHOULD). * It does not do section 4 (sorting of resolved destination addresses). That means it does not do the RFC 6724 address sort which is a MUST. The order is still the one from getaddrinfo(3). * It implements section 5 (initiation of asynchronous connection attempts). It paces the connection attempts 250 milliseconds appart as recommended. Once a connection attempt succeeds it cancels all other initiated connections and ignores addresses not yet used. * It does not implement RF...
2010 Nov 28
2
[PATCH] Use canonical hostname for DNS SSHFP lookup
...ath, e.g. I have "search example.com" in my resolv.conf and then do a "ssh host", I will connect to host.example.com, but ssh will query the DNS for an SSHFP record of "host.", not "host.example.com.". The patch below attempts to fix this issue by having getaddrinfo() return the canonical host name from the lookup, and passes this on so it can be used in the SSHFP record query. As a side-effect, the patch will completely suppress the SSHFP lookup if establishing an SSH1 connection, as RSA1 keys cannot be stored in SSHFP records anyway. The getaddrinfo() impl...
2002 Nov 20
0
[PATCH] Updated patch to rsync for Stratus VOS
...sync/install-sh Tue Nov 19 18:57:34 2002 +++ newrsync/install-sh Tue Nov 19 18:58:11 2002 @@ -208,7 +208,7 @@ else # Make a temp file name in the proper directory. - dsttmp=$dstdir/#inst.$$# + dsttmp=$dstdir/_inst.$$_ # Move or copy the file name to the temp name diff -urp oldrsync/lib/getaddrinfo.c newrsync/lib/getaddrinfo.c --- oldrsync/lib/getaddrinfo.c Sun Nov 17 04:52:57 2002 +++ newrsync/lib/getaddrinfo.c Sun Nov 17 05:05:28 2002 @@ -73,9 +73,9 @@ static const char in6_loopback[] = { }; struct sockinet { - u_char si_len; - u_char si_family; - u_short si_port; + uchar_t si_len; + uc...
2001 Mar 13
0
[PATCH] openssh 2.5.1p2 TIS authserv support
...{ "kbdinteractiveauthentication", sKbdInteractiveAuthentication }, { "challengeresponseauthentication", sChallengeResponseAuthentication }, @@ -299,6 +308,34 @@ return sBadOption; } +#ifdef TIS_AUTH +void +add_authserv_addr(ServerOptions *options, char **addr) +{ + struct addrinfo hints, *ai, *aitop; + char *host, *service; + int gaierr; + + memset(&hints, 0, sizeof(hints)); + hints.ai_family = IPv4or6; + hints.ai_socktype = SOCK_STREAM; + hints.ai_flags = (addr == NULL) ? AI_PASSIVE : 0; + + host = strdelim(addr); + service = strdelim(addr); + + if ((gaierr = getaddri...
2002 Sep 06
0
use of setsockopt(SO_LINGER)
...dex: channels.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/channels.c,v retrieving revision 1.180 diff -u -r1.180 channels.c --- channels.c 4 Jul 2002 08:12:15 -0000 1.180 +++ channels.c 4 Sep 2002 17:12:51 -0000 @@ -2016,7 +2016,6 @@ struct addrinfo hints, *ai, *aitop; const char *host; char ntop[NI_MAXHOST], strport[NI_MAXSERV]; - struct linger linger; success = 0; host = (type == SSH_CHANNEL_RPORT_LISTENER) ? @@ -2059,13 +2058,13 @@ continue; } /* - * Set socket options. We would like the socket to disappear - * as s...