search for: tolen

Displaying 9 results from an estimated 9 matches for "tolen".

Did you mean: token
2000 Jan 22
0
Solaris 2.5.1 patch
Aside from the u_int_8 thing, Solaris 2.5.1 has some other problems. For some reason even the newest gcc's preprocessor can't grok #define blah (x,y) (stuff using x and y) as opposed to #define blah(x,y) (stuff using x and y). also, getsockname() expects its "tolen" parameter to be initialized for some reason. This patch seems to fix any problems with 2.5.1. It includes my own version of the uint8 hack. -Andy. -------------- next part -------------- diff -ur old/openssh-1.2.1pre27/bsd-snprintf.c openssh-1.2.1pre27/bsd-snprintf.c --- old/openssh-1.2.1...
2002 Mar 19
2
openssh 3.1p1: ToS trouble
Hi, I noticed that the Type of Service bit for minimize delay is set in client->server packets only. Is this OS-specific or is there another reason for this? Here is a tcpdump of an interactive connection: 217.225.98.212.22 > 134.169.34.19.45870: P 1:49(48) ack 48 win 12008 (DF) 134.169.34.19.45870 > 217.225.98.212.22: P 48:96(48) ack 49 win 25416 (DF) [tos 0x10] 217.225.98.212.22
2008 Jun 06
0
[PATCH] stubdom: permit compilation without lwip
...+#ifdef HAVE_LWIP int socket(int domain, int type, int protocol) { int fd, res; @@ -989,6 +1007,7 @@ LWIP_STUB(ssize_t, send, (int s, void *buf, size_t len, int flags), (s, buf, len, flags)) LWIP_STUB(ssize_t, sendto, (int s, void *buf, size_t len, int flags, struct sockaddr *to, socklen_t tolen), (s, buf, len, flags, to, tolen)) LWIP_STUB(int, getsockname, (int s, struct sockaddr *name, socklen_t *namelen), (s, name, namelen)) +#endif int nanosleep(const struct timespec *req, struct timespec *rem) { --- a/extras/mini-os/main.c Thu Jun 05 13:04:07 2008 +0100 +++ b/extras/mini-os/main....
2001 Sep 30
3
UTF-8 stuff
...t = getenv("CHARSET"); + + free(current_charset); + current_charset = 0; + if (charset && *charset) + current_charset = strdup(charset); +} + +static int convert_buffer(const char *fromcode, const char *tocode, + const char *from, size_t fromlen, + char **to, size_t *tolen) { + int ret = -1; + #ifdef HAVE_ICONV - static unsigned char buffer[BUFSIZE]; - char *from_p, *to_p; - size_t from_left, to_left; - iconv_t cd; + ret = iconvert(fromcode, tocode, from, fromlen, to, tolen); + if (ret != -1) + return ret; #endif - if (!strcasecmp(encoding, "UTF-8&...
2007 Jul 14
2
PATCH : Fix missing protoypes
...An alternative approach is to assume that the output of + * iconv is never more than 4 times as long as the input, + * but I prefer to avoid that assumption if possible. + */ + +int iconvert(const char *fromcode, const char *tocode, + const char *from, size_t fromlen, + char **to, size_t *tolen) ; + +#endif /* HAVE_ICONV */ --- configure.in 2007-07-14 08:45:49 +0000 +++ configure.in 2007-07-15 01:45:52 +0000 @@ -280,7 +280,7 @@ else OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -DNDEBUG" if test "x$GCC" = xyes; then - OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O3 -funroll-loop...
2009 Nov 23
0
[PATCH] Bluetooth support.
...====================================== RCS file: /cvs/openssh/packet.c,v retrieving revision 1.169 diff -u -p -r1.169 packet.c --- packet.c 2 Oct 2009 01:49:04 -0000 1.169 +++ packet.c 23 Nov 2009 09:50:36 -0000 @@ -308,6 +308,10 @@ packet_connection_is_on_socket(void) return 0; if (fromlen != tolen || memcmp(&from, &to, fromlen) != 0) return 0; +#ifdef HAVE_BLUETOOTH + if (from.ss_family == AF_BLUETOOTH) + return 1; +#endif if (from.ss_family != AF_INET && from.ss_family != AF_INET6) return 0; return 1; -- dwmw2
2004 Aug 06
1
Compiling Darkice
...ard C Library (libc, -lc) SYNOPSIS #include <sys/types.h> #include <sys/socket.h> ssize_t send(int s, const void *msg, size_t len, int flags); ssize_t sendto(int s, const void *msg, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); ssize_t sendmsg(int s, const struct msghdr *msg, int flags); <p>>>> darkeye@tyrell.hu 8/26/02 8:57:39 AM >>> Matthew Mencel wrote: > I'm compiling Darkice on a FreeBSD 4.6.2 box. > > Everything works up to this point after I type "make"....
2000 Mar 25
1
ANNOUNCE: openssh-1.2.3
...ipher.c] - void* -> unsigned char*, ok niels@ [hostfile.c] - remove unused variable 'len'. fix comments. - remove unused variable [log-client.c log-server.c] - rename a cpp symbol, to avoid param.h collision [packet.c] - missing xfree() - getsockname() requires initialized tolen; andy at guildsoftware.com - use getpeername() in packet_connection_is_on_socket(), fixes sshd -i; from Holger.Trapp at Informatik.TU-Chemnitz.DE [pty.c pty.h] - register cleanup for pty earlier. move code for pty-owner handling to pty.c ok provos@, dugsong@ [readconf.c] - turn off x1...
2000 Mar 25
1
ANNOUNCE: openssh-1.2.3
...ipher.c] - void* -> unsigned char*, ok niels@ [hostfile.c] - remove unused variable 'len'. fix comments. - remove unused variable [log-client.c log-server.c] - rename a cpp symbol, to avoid param.h collision [packet.c] - missing xfree() - getsockname() requires initialized tolen; andy at guildsoftware.com - use getpeername() in packet_connection_is_on_socket(), fixes sshd -i; from Holger.Trapp at Informatik.TU-Chemnitz.DE [pty.c pty.h] - register cleanup for pty earlier. move code for pty-owner handling to pty.c ok provos@, dugsong@ [readconf.c] - turn off x1...