Displaying 5 results from an estimated 5 matches for "client_sockaddr".
2004 Apr 01
1
[patch] net/rsync: problems in client name lookup code
...nswer->ai_addr, sizeof(struct sockaddr_in));
+ break;
+#ifdef INET6
+ case AF_INET6:
+ memcpy(&ss, answer->ai_addr, sizeof(struct sockaddr_in6));
+ break;
+ }
+#endif
+ freeaddrinfo(answer);
} else {
- ss_len = sizeof ss;
- ssp = &ss;
+ socklen_t ss_len = sizeof ss;
client_sockaddr(fd, &ss, &ss_len);
-
+ ss.ss_len = ss_len;
}
- if (!lookup_name(fd, ssp, ss_len, name_buf, sizeof name_buf,
+ if (!lookup_name(fd, &ss, name_buf, sizeof name_buf,
port_buf, sizeof port_buf))
- check_name(fd, ssp, name_buf);
+ check_name(fd, &ss, name_buf);
return na...
2005 Aug 18
1
rsync Reverse lookup error on Solaris 9
Hello,
I am using rsync for the first time.
I have rsync 2.6.5 running on Solaris 9. It was built with gcc-2.95.
We are experiencing a reverse lookup host error in rsyncd.log when the
client with ip addy 180.X.XX.XX
tries to access rsync on my Solaris box.
2005/08/11 14:30:13 [18092] rsync denied on module log from unknown
(0.0.0.0)
2005/08/11 14:30:54 [18094] name lookup failed for 0.0.0.0:
2004 Feb 25
3
[patch] Correct configure test for sin_len to compile on Tru64 Unix
The last versions of rsync fail to compile on Tru64 Unix (alpha),
because of a typo in configure.in.
The problem is that the code in configure check for sockaddr.sa_len,
while the code uses sockaddr.sin_len. This patch fixes the problem.
Please include it in the next version of rsync.
diff -ur src-2.6.0/configure.in src-2.6.0-local/configure.in
--- src-2.6.0-local/configure.in
2004 May 27
0
compiling on HP-UX
...name.c:71: warning: implicit declaration of function `getnameinfo'
clientname.c: In function `client_name':
clientname.c:126: warning: implicit declaration of function `getaddrinfo'
clientname.c:144: warning: implicit declaration of function `freeaddrinfo'
clientname.c: In function `client_sockaddr':
clientname.c:171: warning: passing arg 3 of `getpeername' from
incompatible pointer type
params.c: In function `EatWhitespace':
params.c:120: warning: signed and unsigned type in conditional expression
params.c: In function `Continuation':
params.c:167: warning:...
2005 Sep 14
1
RSYNC "make" problems with HP UX 11.0 & GCC 3.3.2
...name.c:69: warning: implicit declaration of function `getnameinfo'
clientname.c: In function `client_name':
clientname.c:124: warning: implicit declaration of function
`getaddrinfo'
clientname.c:142: warning: implicit declaration of function
`freeaddrinfo'
clientname.c: In function `client_sockaddr':
clientname.c:169: warning: passing arg 3 of `getpeername' from
incompatible pointer type
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c progress.c -o
progress.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c pipe.c -o
pipe.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W...