Displaying 9 results from an estimated 9 matches for "inet6_addrstrlen".
2008 Oct 20
2
[PATCH] Compilation of tftp-hpa's Git HEAD with no IPv6, and misc
...lure. */
#endif
#ifndef EAI_SYSTEM
-#define EAI_SYSTEM -11 /* System error returned in rrno'. */
+#define EAI_SYSTEM -11 /* System error returned in `errno'. */
#endif
#endif
-#ifndef HAVE_INET_NTOP
-const char *inet_ntop(int, const void *, char *, socklen_t);
#ifndef INET6_ADDRSTRLEN
-#define INET6_ADDRSTRLEN 48
+#define INET6_ADDRSTRLEN 46
#endif
+
+#ifndef HAVE_INET_NTOP
+const char *inet_ntop(int, const void *, char *, socklen_t);
#endif
/* tftp-hpa version and configuration strings */
2007 Oct 22
15
[Bug 1380] New: incorrect check for strlen(fwd->connect_host) in parse_forward()
https://bugzilla.mindrot.org/show_bug.cgi?id=1380
Summary: incorrect check for strlen(fwd->connect_host) in
parse_forward()
Classification: Unclassified
Product: Portable OpenSSH
Version: 4.7p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: ssh
2005 Dec 29
1
SAMBA 3.0.21 - Compile error on SOLARIS 7 & SOLARIS 2.5.1
...sswitch/winbind_nss_solaris.c:491: `AF_INET6' undeclared (first use in
this function)
nsswitch/winbind_nss_solaris.c: In function `_nss_winbind_hosts_getbyaddr':
nsswitch/winbind_nss_solaris.c:540: `AF_INET6' undeclared (first use in
this function)
nsswitch/winbind_nss_solaris.c:546: `INET6_ADDRSTRLEN' undeclared (first
use in this function)
nsswitch/winbind_nss_solaris.c:546: warning: assignment makes pointer
from integer without a cast
make: *** [nsswitch/winbind_nss_solaris.po] Error 1
-------------
SOLARIS 2.5.1
-------------
Configure
./configure --with-acl-support --with-ldap=no -...
2006 Jan 06
1
Repost: Help - compilation of winbind_nss_solaris.c/3.0.21a/Solaris 7 and older fails
...sswitch/winbind_nss_solaris.c:491: `AF_INET6' undeclared (first use in
this function)
nsswitch/winbind_nss_solaris.c: In function `_nss_winbind_hosts_getbyaddr':
nsswitch/winbind_nss_solaris.c:540: `AF_INET6' undeclared (first use in
this function)
nsswitch/winbind_nss_solaris.c:546: `INET6_ADDRSTRLEN' undeclared (first
use in this function)
nsswitch/winbind_nss_solaris.c:546: warning: assignment makes pointer
from integer without a cast
make: *** [nsswitch/winbind_nss_solaris.po] Error 1
-------------
SOLARIS 2.5.1
-------------
On Solaris 2.5.1 problem comes from nsswitch/wb_common.c w...
2003 Apr 14
1
OpenSSH 3.6.1p1 "Proxy-None" patch
...rab my key at www.keyserver..net
"Unix *is* user friendly. It's just a bit picky about its friends"
-------------- next part --------------
*** sshconnect.c Mon Dec 23 03:06:20 2002
--- sshconnect.c.patch Mon Apr 14 14:52:20 2003
***************
*** 47,52 ****
--- 47,56 ----
#define INET6_ADDRSTRLEN 46
#endif
+ #ifndef PROXY_NONE
+ #define PROXY_NONE "None\n"
+ #endif
+
static int show_other_keys(const char *, Key *);
/*
***************
*** 258,264 ****
port = SSH_DEFAULT_PORT;
}
/* If a proxy command is given, connect using it. */
! if (proxy_command != NULL...
2009 Jul 07
1
Read buffer size in clientloop.c
Hi,
when trying to optimize socket transfer rates under Cygwin, it turned
out that the underlying WinSock implementation is surprisingly sensitive
to buffer sizes. The latest Cygwin from CVS is now setting the socket
receive/send buffers (SO_RCVBUF/SO_SNDBUF) to 64K, rather than keeping
them at their default values of 8K which thwarts data transfers a lot.
While testing I still had the problem
2019 Sep 15
0
[PATCH nbdkit 4/4] reflection: Enhance plugin to support client address mode.
...if
}
+static int
+handle_address (struct sockaddr *sa, socklen_t addrlen,
+ struct handle *ret)
+{
+ struct sockaddr_in *addr = (struct sockaddr_in *) sa;
+ struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *) sa;
+ union {
+ char straddr[INET_ADDRSTRLEN];
+ char straddr6[INET6_ADDRSTRLEN];
+ } u;
+ int r;
+ char *str;
+
+ switch (addr->sin_family) {
+ case AF_INET:
+ if (inet_ntop (AF_INET, &addr->sin_addr,
+ u.straddr, sizeof u.straddr) == NULL) {
+ nbdkit_error ("inet_ntop: %m");
+ return -1;
+ }
+ r = asprintf (&s...
2012 Oct 22
1
[PATCH] Implement remote dynamic TCP forwarding
...ignored */
- buffer_append(&c->output, &s4_rsp, sizeof(s4_rsp));
+ buffer_append(output, &s4_rsp, sizeof(s4_rsp));
return 1;
}
@@ -1145,12 +1159,21 @@ channel_decode_socks5(Channel *c, fd_set *readset, fd_set *writeset)
u_int16_t dest_port;
u_char *p, dest_addr[255+1], ntop[INET6_ADDRSTRLEN];
u_int have, need, i, found, nmethods, addrlen, af;
+ Buffer *input, *output;
+
+ if (c->type == SSH_CHANNEL_RDYNAMIC) {
+ input = &c->output;
+ output = &c->input;
+ } else {
+ input = &c->input;
+ output = &c->output;
+ }
debug2("channel %d: decode s...
2019 Sep 15
13
[PATCH nbdkit 0/4] Reflection plugin, peer name.
This series is based on my blog posting here:
https://rwmj.wordpress.com/2019/09/13/nbdkit-supports-exportnames/
It depends on the fix for realloc:
https://www.redhat.com/archives/libguestfs/2019-September/thread.html#00103
This series adds a fun plugin, and also an semi-related feature I've
long thought to be desirable. You can consider patches 1 & 4, and
patches 2 & 3 as forming