Displaying 20 results from an estimated 408 matches for "setsockopt".
2002 Sep 06
0
use of setsockopt(SO_LINGER)
I would like to remove setsockopt(SO_LINGER), as there does not seem
to be a reason for its use. If you know of specific reasons we should
keep any of these let me know, or run this patch in local test trees
where possible.
This is against OpenBSD, but should apply to portable with some
fuzz.
Index: channels.c
==================...
2019 Mar 08
1
Dovecot v2.3.5 released
On 7.3.2019 23.37, A. Schulze via dovecot wrote:
>
> Am 07.03.19 um 17:33 schrieb Aki Tuomi via dovecot:
>
>>> test-http-client-errors.c:2989: Assert failed: FALSE
>>> connection timed out ................................................. : FAILED
> Hello Aki,
>
>> Are you running with valgrind or on really slow system?
> I'm not aware my buildsystem
2006 Sep 11
3
openssh-4.3p2: setsockopt() problem
...604T wireless router. ssh client was hanging at:
debug1: Entering interactive session.
Telnet was having a similar problem to port 22, however a simple client.c
I compiled was not. My java ssh client was also working. After some
investigation, I noticed that the hang was after the system call:
setsockopt(3, SOL_IP, IP_TOS, [16], 4) = 0
I noticed also that telnet was hanging the same way. I commented all the
setsockopt() calls out of the ssh client code (because I was in a hurry)
and now it works. Anyway, I figured I should document the problem
somewhere.
-Ken
_________________________________...
2016 Oct 05
3
Dev: new option to mark all tincd socket of a tincd process
I know i'm new to the list but i'd like to propose something for tincd
daemon.
I'd like to mark all sockets established by a tincd process with a mark
passed as an argument in the command line.
What could be the purpose of this new option?
The goal of this option is to be able to have several tincd process
running at the same time using the same port but using different ip.
In
2001 Jan 12
0
Socket options not properly set for ssh and sshd.
I mentioned this problem in a previous post (in November). This time
I'm including a patch.
Version: OpenSSH_2.3.0p1
Keywords: setsockopt keepalive hang masquerade interactive
Symptom: For protocol 2, socket options (especially keepalive) are not
being properly set for OpenSSH_2.3.0p1, even when request in the config
files.
Furthermore (for either protocol), keepalive is only set for "interactive"
connections -- it should...
2012 May 08
1
About bug 640857
Hi, Dear OpenSSH support,
I'm writing to ask whether this bug is fixed in your openSSH 6.0. If no, do you have any plan?
https://bugzilla.redhat.com/show_bug.cgi?id=640857
Regards,
Carol
2000 Feb 14
0
[openssh-1.2.2] some porting notes for SunOS 4.1.4
...efined when
running configure. As a consequence, MAIL_DIRECTORY was just
#undef'ined in config.h and compilation of sshd.c failed. I recommend
adding and documenting an explicit --maildir configure option.
-- In packet.c, some IP TOS related constants are undefined. I
assumed the associated setsockopt calls were optional, but I may be
wrong. (See patch at end of mail.)
-- In ssh-agent.c, optind needs to be declared explicitly (it is not
in any header file). (See patch at end of mail.)
-- In scp.c, the SA_RESTART constant is undefined. SunOS is already
based on BSD signal semantics; do they...
2007 Jul 24
3
Quota plugin, Maildir, dict backend loop problem
...29, 2147483647) = 3
gettimeofday({1185308526, 494477}, {420, 0}) = 0
read(20, "Lpriv/quota/storage\n", 4044) = 20
fcntl64(9, F_SETFL, O_RDWR|O_NONBLOCK) = 0
read(9, 0x9271eb8, 8192) = -1 EAGAIN (Resource
temporarily unavailable)
fcntl64(9, F_SETFL, O_RDWR) = 0
setsockopt(9, SOL_SOCKET, SO_SNDTIMEO, "\2003\341\1\0\0\0\0", 8) = 0
write(9, "l\0\0\0\3SELECT current FROM quota W"..., 112) = 112
setsockopt(9, SOL_SOCKET, SO_RCVTIMEO, "\2003\341\1\0\0\0\0", 8) = 0
read(9, "\1\0\0\1", 4) = 4
read(9, "\1", 1...
2016 Apr 12
2
Slow reading of large dovecot-uidlist files
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 12 Apr 2016, Bostjan Skufca wrote:
> On 12 April 2016 at 10:23, A.L.E.C <alec at alec.pl> wrote:
>
>> I don't know dovecot's code, but I suppose it uses uidlist file to get
>> mailbox statistics that it returns as EXISTS, RECENT, UNSEEN, UIDNEXT,
>> UIDVALIDITY, etc, which are required by IMAP standard. I
2010 Oct 10
3
pop3 TCP_CORK too late error
...32=37481984, u64=37481984}}}, 38, 207) = 1
write(41, "iTxPBrNlaNFao+yQzLhuO4/+tQ5cuiKSe"..., 224) = 224
epoll_ctl(8, EPOLL_CTL_MOD, 41, {EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP,
{u32=37481984, u64=37481984}}) = 0
pread(19, "AFABQAlAC0AJ\nQAUALQAUAFABQAlAC0AF"..., 8192, 811008) = 8192
setsockopt(41, SOL_TCP, TCP_CORK, [1], 4) = 0
write(41, "\r\nKUWtGCjKO5N8UbW5uYLZbS0nmaNi4ZB"..., 4134) = 4134
write(41, "\r\npckt0KMGuho6r4H1ay0sXbx+YyuC0Sn"..., 4134) = 4134
pread(19, "kivLO4WgAoAKACgBKAFoAr3V0lpH5kuQg"..., 8192, 819200) = 8192
write(41, "\r\nJkm1ZFXSIr1Ig...
2012 Jan 10
1
Configuration file TCPKeepAlive option does not work reliably
Hi!
There are configuration knobs (TCPKeepAlive) to enable/disable the use of TCP keepalives both in the ssh client and server. Unfortunately some UNIX systems default to SO_KEEPALIVE=on and some to =off. This may even be settable on a per host basis (OpenBSD default net.inet.tcp.always_keepalive=1 ???).
For the TCPKeepAlive configuration knob I would like to propose changes along the lines
2004 Sep 03
0
setsockopt returning Invalid argument
I have built samba 3.0.4 on Solaris 9 and it appeared to compile and build OK. It
starts up and runs with a PDC smb.conf. It becomes the brows master for the domain
and generally seems to look OK.
However, when I try to join a PC into the domain I get "Invalid argument" logged by
set_socket_options() in lib/util_sock.c when trying to set TCP_NODELAY and
SO_KEEPALIVE.
This is
2012 Jun 11
1
tftp-hpa bug on aliased interface and recent kernels.
So as of recent kernels, this change helps:
http://git.kernel.org/?p=network/tftp/tftp-hpa.git;a=commitdiff;h=c6d2c36b1a2b1986cab7aebb72d120fa118bdfeb
But there is still a flaw. Notably, if tftpd is running with AF_UNSPEC (as
it will if ipv6 support is desired), myrecvfrom will fail to setsockopt to
get the data back on the first pass.
I'd guess the least disruptive change to get to be correct would be:
diff --git a/tftpd/recvfrom.c b/tftpd/recvfrom.c
index d050b80..fe233da 100644
--- a/tftpd/recvfrom.c
+++ b/tftpd/recvfrom.c
@@ -149,16 +149,16 @@ myrecvfrom(int s, void *buf, int len,...
2000 Nov 05
0
Socket options not properly set for ssh and sshd.
...this only to openssh-unix-dev at mindrot.org (since I'm using
the ported version of OpenSSH) and not to openssh at openssh.com, even
though I believe this to be a general problem. Please advise if you
think I should redirect this to the other mailing list.
Version: OpenSSH_2.2.0p1
Keywords: setsockopt keepalive hang masquerade
Symptom: For protocol 2, socket options (especially keepalive) are not
being properly set for OpenSSH_2.2.0p1 (Redhat 7.0 distribution).
I believe this to be a general problem that is not specific to
the portable version of OpenSSH.
Function packet_set_interactive is int...
2000 May 12
0
SunOS 4.x port
...tmp */
/* Between login and logout */
log("No tty slot found at logout");
--- packet.c.DIST Fri May 5 11:55:05 2000
+++ packet.c Fri May 5 11:56:42 2000
@@ -1233,21 +1233,24 @@
* IPTOS_LOWDELAY and TCP_NODELAY.
*/
int lowdelay = IPTOS_LOWDELAY;
+#ifdef IP_TOS
if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, (void *) &lowdelay,
sizeof(lowdelay)) < 0)
error("setsockopt IPTOS_LOWDELAY: %.100s", strerror(errno));
+#endif
if (setsockopt(connection_in, IPPROTO_TCP, TCP_NODELAY, (void *) &on,
sizeof(on)) < 0)
error("sets...
2004 May 04
2
rsync 2.6.2 --daemon Problem
Hi,
I've a problem with rsync 2.6.2 and the daemon. I've installed it precisly
as I did with 2.6.0 (I've tried before with 2.6.1 and was having the same
problems as now with 2.6.2).
When I try to a rsync --daemon command the rsync offcourse finishes, but in
the log file it says
2004/05/04 21:15:10 [22369] rsyncd version 2.6.2 starting, listening on port
873
2004/05/04 21:15:10
2010 Mar 04
1
Making tftpd (hpa) firewall frienldy
...)
tftpd --port-range 69:69 -4 -s /tftpboot/
--- tftp-hpa-0.49/tftpd/tftpd.c 2008-10-21 01:08:31.000000000 +0300
+++ tftp-hpa-0.49-tftpd-reuseport.c 2010-03-03 15:19:26.000000000 +0200
@@ -524,6 +524,11 @@
#ifndef __CYGWIN__
set_socket_nonblock(fd4, 1);
#endif
+ { int x = 1; setsockopt (fd4, SOL_SOCKET, SO_REUSEADDR, &x, sizeof (x));
}
+#ifdef SO_REUSEPORT
+ { int x = 1; setsockopt (fd4, SOL_SOCKET, SO_REUSEPORT , &x, sizeof
(x)); }
+#endif
+
memset(&bindaddr4, 0, sizeof bindaddr4);
bindaddr4.sin_family = AF_INET;
bindaddr4.sin...
2004 May 09
2
[BUG] rsync 2.6.2
...sten()
I've found patch on this lists:
--- rsync-2.6.2/socket.c.orig 2004-05-08 23:25:11.979473336 +0200
+++ rsync-2.6.2/socket.c 2004-05-08 23:27:13.255036648 +0200
@@ -379,8 +379,8 @@
#ifdef IPV6_V6ONLY
if (resp->ai_family == AF_INET6) {
- setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
- (char *)&one, sizeof one);
+ if(setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&one, sizeof one) < 0)
+ continue;
}
#endif
But it did not helped
Is there any sol...
2011 May 03
3
Issue with geo-replication and nfs auth
hi,
I've some issue with geo-replication (since 3.2.0) and nfs auth (since initial release).
Geo-replication
---------------
System : Debian 6.0 amd64
Glusterfs: 3.2.0
MASTER (volume) => SLAVE (directory)
For some volume it works, but for others i can't enable geo-replication and have this error with a faulty status:
2011-05-03 09:57:40.315774] E
2011 Nov 28
0
RFC: [PATCH] Add TCP congestion control and Diffserv options
...;
}
+/* Set special socket options
+ *
+ * Diffserv is a value in the range of 0-63, and needs to be shifted left
+ * 2 places AND treated differently for ipv4 and ipv6.
+ * Setting TCP congestion control is rather Linux specific (at the moment)
+ * and sends a varying length string to setsockopt rather than an integer
+ * or character.
+*/
+
+void set_special_sockopts(int s)
+{
+#if defined(TCP_CONGESTION)
+ if(congestion_alg) {
+ if(setsockopt(s, SOL_TCP, TCP_CONGESTION, congestion_alg,
+ strlen(congestion_alg)) == -1)
+ rprintf(FINFO, "Couldn't set %s congestion...