search for: sockaddr_storage

Displaying 20 results from an estimated 222 matches for "sockaddr_storage".

2004 Apr 01
1
[patch] net/rsync: problems in client name lookup code
...BSD 4.8-RELEASE-p16 i386 >Environment: System: FreeBSD 4.8-RELEASE-p16 >Description: rsync does reverse name lookups on a client address in lookup_name (called from client_name) in clientname.c The code in client_name does two things incorrectly: - fails to set ss_len member of struct sockaddr_storage, which when passed to getnameinfo causes the latter to fail; - detection of IPv6 via counting dots is plain silly and doesn't work; The attached patch attempts to address these two issues. >How-To-Repeat: The code in question gets exercised when "hosts allow" specifies a h...
2007 Jan 06
1
Re: [nut-commits] svn commit r710 - in trunk: . clients server
....h" > > -struct acl_t *acl_head = NULL; > -struct access_t *access_head = NULL; > + struct acl_t *acl_head = NULL; > + struct access_t *access_head = NULL; > > +#ifdef HAVE_IPV6 > /* > * Stolen from privoxy code :] > */ > -int mask_cmp (const struct sockaddr_storage* ip_addr, unsigned int prefix, const struct sockaddr_storage* net_addr) { > +static int mask_cmp (const struct sockaddr_storage* ip_addr, unsigned int prefix, const struct sockaddr_storage* net_addr) { > switch (ip_addr->ss_family) { > case AF_INET: > return((((struct sockaddr...
2001 Dec 03
0
Socket address problems with 2.5.1pre1
...y not be specific to this C lib version. I applied this patch to socket.c:client_addr() to experiment a bit: --- socket.c.orig Tue Nov 27 08:01:05 2001 +++ socket.c Sun Dec 2 21:04:20 2001 @@ -555,7 +555,7 @@ **/ char *client_addr(int fd) { - struct sockaddr ss; + struct sockaddr_storage ss; int length = sizeof(ss); static char addr_buf[100]; static int initialised; @@ -564,11 +564,14 @@ initialised = 1; - if (getpeername(fd, &ss, &length)) { + if (getpeername(fd, (struct sockaddr *)&ss, &length)) {...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...#include "access.h" > > - struct acl_t *acl_head = NULL; > - struct access_t *access_head = NULL; > +struct acl_t *acl_head = NULL; > +struct access_t *access_head = NULL; > + > +/* > + * Stolen from privoxy code :] > + */ > +int mask_cmp (const struct sockaddr_storage* ip_addr, unsigned int prefix, const struct sockaddr_storage* net_addr) { > + switch (ip_addr->ss_family) { > + case AF_INET: > + return((((struct sockaddr_in*)ip_addr)->sin_addr.s_addr & htonl(prefix)) == ((struct sockaddr_in*)net_addr)->sin_addr.s_addr); > + break; >...
2001 Aug 13
5
rsync ipv6 patch merge?
On 13 Aug 2001, "William F. Maton" <wmaton@ryouko.dgim.crc.ca> wrote: > On 13 Aug 2001, Heikki Vatiainen wrote: > > > The rsync daemon we use is plain 2.4.6 patched with KAME rsync patch > > rsync-246-v6-20000907.diff.gz [1]. It looks like there is a good > > possibility to get IPv6 merged in, since just today a rsync developer > > was asking if
2001 Aug 07
1
do_pre_login() used before declared
...pshot. thanks, wendy % diff -u session.c.orig session.c.mod --- session.c.orig Tue Aug 7 13:11:51 2001 +++ session.c.mod Tue Aug 7 16:21:07 2001 @@ -397,6 +397,34 @@ } } +#ifdef LOGIN_NEEDS_UTMPX +void +do_pre_login(Session *s) +{ + socklen_t fromlen; + struct sockaddr_storage from; + pid_t pid = getpid(); + + /* + * Get IP address of client. If the connection is not a socket, let + * the address be 0.0.0.0. + */ + memset(&from, 0, sizeof(from)); + if (packet_connection_is_on_socket()) { + fromlen = sizeof(fr...
2000 Sep 11
2
Problems/patches for BSD/OS 4.0.1
Two small problems with 2.2.0p1 on BSD/OS 4.0.1, both invoving the internal entropy collector: 1) The ``ls'' commands in ssh_prng_cmds.in all use -n, which isn't valid on BSD/OS and thus caused them all to fail when fixprogs checked them. BSD/OS does, however, have a -T flag which gives complete timestamp information (month, day, year, hour, minute, and second), which seems like a
2002 Jan 07
1
rsync-2.5.1 / socket.c - unititialized variable breaks build.
...all); + if (error == -1) { rprintf(FERROR, RSYNC_NAME ": getaddrinfo %s: %s\n", bind_address, gai_strerror(error)); return -1; @@ -382,7 +384,7 @@ fd_set fds; int fd; struct sockaddr_storage addr; - int addrlen = sizeof(addr); + unsigned int addrlen = sizeof(addr); /* close log file before the potentially very long select so file can be trimmed by another process instead of growing @@ -565,7 +567,7 @@ char *client_ad...
2000 Jan 18
1
Error when compiling for Solaris7
...hecking size of int... (cached) 4 checking size of long int... (cached) 4 checking size of long long int... (cached) 8 checking for intXX_t types... yes checking for u_intXX_t types... no checking for uintXX_t types... yes checking for socklen_t... yes checking for size_t... yes checking for struct sockaddr_storage... no checking for struct sockaddr_in6... no checking for struct in6_addr... no checking for struct addrinfo... no checking for dlopen in -ldl... (cached) yes checking whether pam_strerror takes only one argument... no checking whether to build GNOME ssh-askpass... no checking for /dev/urandom... (...
2002 May 22
0
[PATCH] connect() timeout
...0; + + default: + /* Should not occur */ + return -1; + break; + } + + return -1; + +} + /* * Opens a TCP/IP connection to the remote server on the given host. * The address of the remote host will be returned in hostaddr. @@ -241,7 +298,7 @@ */ int ssh_connect(const char *host, struct sockaddr_storage * hostaddr, - u_short port, int family, int connection_attempts, + u_short port, int family, int connection_attempts, int connection_timeout, int anonymous, struct passwd *pw, const char *proxy_command) { int gaierr; @@ -323,7 +380,8 @@ * the remote uid as root. */ tempo...
2007 May 23
2
error during compile
Hello, I get this when I run ./configure. What does this mean? checking for struct sockaddr_storage.ss_family... yes checking for inet_pton... yes checking for xslt-config... no configure: error: XSLT configuration could not be found Thanks, Mike
2006 Nov 21
1
Fwd: IPv6 patch
fellows, can one of you take over the validation and application of the attached patch? I only have a doubt about the "struct sockaddr_storage" and its compatibility, but I've not deeply gone through the patch... ---------- Forwarded message ---------- From: Than Ngo Date: 21 nov. 2006 13:33 Subject: IPv6 patch To: aquette.dev Cc: mildew Hi Arnaud, the current nut does not support IPv6. Dan Kope?ek has written a patch to fix...
2000 Jun 14
1
OpenSSH 2.1.1p1 on SCO Unixware 7.1.0
...size of long long int... 8 checking for intXX_t types... yes checking for u_intXX_t types... no checking for intXX_t and u_intXX_t types in sys/bitypes.h... yes checking for uintXX_t types... yes checking for socklen_t... no checking for size_t... yes checking for ssize_t... yes checking for struct sockaddr_storage... no checking for struct sockaddr_in6... yes checking for struct in6_addr... yes checking for struct addrinfo... yes checking for ut_host field in utmp.h... no checking for ut_host field in utmpx.h... yes checking for syslen field in utmpx.h... yes checking for ut_pid field in utmp.h... yes checki...
2002 Jan 26
5
[PATCH] Connect timeout
...signal(SIGALRM, sigh); + return rc; + } else { + errno = ETIMEDOUT; + return -1; + } +} + /* * Opens a TCP/IP connection to the remote server on the given host. * The address of the remote host will be returned in hostaddr. @@ -240,7 +279,7 @@ */ int ssh_connect(const char *host, struct sockaddr_storage * hostaddr, - u_short port, int family, int connection_attempts, + u_short port, int family, int connection_attempts, int connection_timeout, int anonymous, struct passwd *pw, const char *proxy_command) { int gaierr; @@ -322,7 +361,8 @@ * the remote uid as root. */ tempo...
2000 Jul 03
0
FreeBSD 3.5-STABLE
...ing size of long long int... 8 checking for intXX_t types... yes checking for u_intXX_t types... yes checking for socklen_t... yes checking for size_t... yes checking for ssize_t... yes checking for sa_family_t... yes checking for pid_t... yes checking for mode_t... yes checking for struct sockaddr_storage... no checking for struct sockaddr_in6... no checking for struct in6_addr... no checking for struct addrinfo... no checking for ut_host field in utmp.h... yes checking for ut_host field in utmpx.h... no checking for syslen field in utmpx.h... no checking for ut_pid field in utmp.h... no che...
2000 Nov 14
1
[PATCH] Added option 'RetryDelay'
...ue on success, * and zero on failure. If the connection is successful, this calls - * packet_set_connection for the connection. + * packet_set_connection for the connection. Retry_delay specifies the seconds + * to wait between connection attempts. */ int ssh_connect(const char *host, struct sockaddr_storage * hostaddr, - u_short port, int connection_attempts, + u_short port, int connection_attempts, int retry_delay, int anonymous, uid_t original_real_uid, const char *proxy_command); diff -u --recursive openssh-2.3.0p1/sshconnect.c openssh-2.3.0p1-new/sshconnect.c --- openssh-2.3.0p1/...
2019 Sep 18
1
[PATCH nbdkit] server: Remove useless thread local sockaddr.
When accepting a connection on a TCP or Unix domain socket we recorded the peer address in both the thread_data struct and thread-local storage. But for no reason because it was never used anywhere. Since we were only allocating a ‘struct sockaddr’ (rather than a ‘struct sockaddr_storage’) it's likely that some peer addresses would have been truncated. Remove all this code, it had no effect. Plugins that want to get the peer address can use nbdkit_peer_name() which was added in commit 03a2cc3d766e and doesn't suffer from the above truncation problem. (I considered an alt...
2001 Mar 22
0
Solaris UseLogin problem
...============================== RCS file: /cvs/openssh_cvs/session.c,v retrieving revision 1.100 diff -u -r1.100 session.c --- session.c 2001/03/22 02:06:57 1.100 +++ session.c 2001/03/22 21:28:04 @@ -597,6 +597,8 @@ { int fdout, ptyfd, ttyfd, ptymaster; pid_t pid; + socklen_t fromlen; + struct sockaddr_storage from; if (s == NULL) fatal("do_exec_pty: no session"); @@ -635,11 +637,35 @@ /* Close the extra descriptor for the pseudo tty. */ close(ttyfd); + + /* + * Get IP address of client. If the connection is not a socket, let + * the address be 0.0.0.0. + */ + memset(&amp...
2010 Mar 13
1
klibc build trouble
as the next klibc release 1.5.16 looks like shaping up, I have a trouble to build that for Debian. currently I build depent on linux-libc-dev, I don't know what against I can build latest klibc, see klibc fails to build due too: make -C linux/ ARCH=x86_64 INSTALL_HDR_PATH=debian/tmp/usr/lib/klibc/ headers_install make[3]: *** No rule to make target `headers_install'. Stop. make[2]: ***
2000 May 26
4
openssh-2.1.0p2 ans Solaris 8
I have some troubles with subj and proper utmpx/wtmpx functionality. After successfull ssh connect to Solaris 8 box, I run #w 11:59am up 13:45, 1 user, load average: 0.00, 0.01, 0.02 User tty login@ idle JCPU PCPU what root console 11:43am 9 bash # Record about my pts/1 login is absent. Next command I run from Solaris 8 console