Displaying 13 results from an estimated 13 matches for "packet_set_interact".
2001 Jan 12
0
Socket options not properly set for ssh and sshd.
...1200 > /proc/sys/net/ipv4/tcp_keepalive_time
and then depend on sshd keepalives to avoid inactivity.
--- sv0/packet.c Fri Oct 13 22:23:12 2000
+++ packet.c Tue Jan 2 16:40:45 2001
@@ -1225,7 +1225,7 @@
/* Informs that the current session is interactive. Sets IP flags for that. */
void
-packet_set_interactive(int interactive, int keepalives)
+packet_set_interactive(int interactive)
{
int on = 1;
@@ -1235,12 +1235,7 @@
/* Only set socket options if using a socket. */
if (!packet_connection_is_on_socket())
return;
- if (keepalives) {
- /* Set keepalives if requested. */
- if (setsockopt(...
2003 Apr 09
1
[Bug 541] packet_set_interactive typo
http://bugzilla.mindrot.org/show_bug.cgi?id=541
Summary: packet_set_interactive typo
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: furrie...
2000 Nov 05
0
Socket options not properly set for ssh and sshd.
...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 intended to be called to set socket
options that are desired for interactive sessions. TCP keepalive
messages are included in the socket options set, although they more
properly ought to be elsewhere (as they are not related to interactivity).
The problem: Function set_packet_set_interactiv...
2000 Apr 07
3
DG/UX R4.20MU03
Has anyone had any experience with ssh and DG/UX? I tried the ./configure and
it could not determine the hosttype. After that problem was worked-arounded I
get a LOT of warnings about declaring functions multiple times and then the
compile fails with:
packet.c: In function `packet_set_interactive':
packet.c:803: `IPTOS_LOWDELAY' undeclared (first use this function)
packet.c:803: (Each undeclared identifier is reported only once
packet.c:803: for each function it appears in.)
packet.c:815: `IPTOS_THROUGHPUT' undeclared (first use this function)
suggestions would be nice but I...
2003 May 10
1
OpenSSH_3.6.1p2 getsockopt TCP_NODELAY bogus message on Solaris 8
...gin: Sat May 10 14:27:01 2003 from ip-66-80-53-59.d
Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
You have new mail.
The "getsockopt TCP_NODELAY: Socket operation on non-socket" message
is bogus. This appears to be an editing botch in the portable version
of packet_set_interactive, as there's a missing "return;" statement
compared to the OpenBSD version. Here is a proposed patch.
===================================================================
RCS file: RCS/packet.c,v
retrieving revision 3.6.1.2
retrieving revision 3.6.1.2.0.1
diff -pu -r3.6.1.2 -r3.6.1...
2001 Dec 24
2
OpenSSH-3.0.2p1 and Linux libc5
...-DETCDIR=\"/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/libexec/sftp-server\" -D_PATH_SSH_PIDDIR=\"/var/run\" -DHAVE_CONFIG_H -c packet.c
packet.c: In function `packet_set_interactive':
packet.c:1211: `TCP_NODELAY' undeclared (first use in this function)
packet.c:1211: (Each undeclared identifier is reported only once
packet.c:1211: for each function it appears in.)
The naive solution of adding:
#include <linux/tcp.h>
doesn't work:
gcc -g -O2 -Wall -Wpointe...
1999 Dec 28
0
Patches to report rsaref build and to call pam_setcred
...ebug("PAM establishing creds");
+ pam_retval = pam_setcred((pam_handle_t *)pamh, PAM_ESTABLISH_CRED);
+ if (pam_retval != PAM_SUCCESS)
+ fatal("PAM setcred failed: %.200s", PAM_STRERROR((pam_handle_t *)pamh, pam_retval));
+}
#endif /* USE_PAM */
/*
@@ -1903,6 +1920,9 @@
packet_set_interactive(have_pty || display != NULL,
options.keepalives);
+#ifdef USE_PAM
+ do_pam_setcred();
+#endif
if (forced_command != NULL)
goto do_forced_command;
debug("Forking shell.");
@@ -1918,6 +1938,9 @@
packet_set_interactive(have_pty || display != NULL,...
2013 Jul 03
5
[Bug 2124] New: TCP_NODELAY not set by sshd for non-interactive non-exec sessions
...s.
If the ssh client is invoked with:
ssh -N host -R port # TCP_NODELAY is not set
ssh -n host -R port sleep 1d # TCP_NODELAY is set - this is a
workaround
There is a difference in TCP_NODELAY being set or not depending on
whether there is a remote command being executed. This is because
packet_set_interactive() is only called in do_exec() on the server
side.
This bug has the unfortunate effect of not setting TCP_NODELAY for port
forwarding only connections.
The proper fix is probably to use attachment 1099 by Darren Tucker that
sets it for all connections on the server side.
https://bugzilla.mindrot...
2003 Jun 16
1
[Bug 594] SSH tries to set nodelay on non-sockets
...Red Hat linux 8.0:
When I ssh to a host with a proxy command, I get the following message:
$ ssh tooth.toronto.redhat.com
getsockopt TCP_NODELAY: Socket operation on non-socket
Then things work normally.
The problem seems to be that a "return;" has been deleted from the function
"packet_set_interactive" in packet.c. The code reads:
/* Only set socket options if using a socket. */
if (!packet_connection_is_on_socket())
if (interactive)
set_nodelay(connection_in);
The odd indentation suggests that something has gone wrong. The logic doens't
make any sense, either: if the conne...
2003 Apr 23
1
[Bug 545] openssh-3.6.1p1 does not build on SunOS: IP_TOS not defined
...ion: 3.6p1
Platform: All
OS/Version: SunOS
Status: NEW
Severity: trivial
Priority: P3
Component: Build system
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: tdsc.af at infineon.com
In the file packet.c in function packet_set_interactive,
line 1349 there is a preprocessor directive making the
call to packet_set_tos dependent on IP_TOS being defined,
what makes sense. Unfortunately in the function
packet_set_tos IP_TOS is used unconditionally, what
breaks compilation at least on SunOS-4, that is not
aware of this IP option. So ei...
2001 Feb 01
0
warnings on aix325
...ng: implicit declaration of function `getsockname'
packet.c: In function `packet_close':
packet.c:265: warning: implicit declaration of function `shutdown'
packet.c: In function `packet_read':
packet.c:691: warning: implicit declaration of function `bzero'
packet.c: In function `packet_set_interactive':
packet.c:1240: warning: implicit declaration of function `setsockopt'
entropy.c: In function `stir_gettimeofday':
entropy.c:302: warning: implicit declaration of function `gettimeofday'
entropy.c: In function `stir_rusage':
entropy.c:331: warning: implicit declaration of fu...
2001 Oct 24
2
disable features
...*/
if (options.forward_x11 && getenv("DISPLAY") != NULL) {
char proto[512], data[512];
@@ -946,12 +953,14 @@
packet_disconnect("Protocol error waiting for X11 forwarding");
}
}
+#endif
/* Tell the packet module whether this is an interactive session. */
packet_set_interactive(interactive);
/* Request authentication agent forwarding if appropriate. */
check_agent_present();
+#ifdef WITH_AGENTFWD
if (options.forward_agent) {
debug("Requesting authentication agent forwarding.");
auth_request_forwarding();
@@ -962,6 +971,7 @@
if (type != SSH_...
2003 Oct 08
4
OS/390 openssh
...+ ; /* ignore the error -- no Type Of Service support on BS2000 yet */
+#endif
}
#endif
diff -bur openssh-3.7.1p2.orig/packet.h openssh-3.7.1p2/packet.h
--- openssh-3.7.1p2.orig/packet.h Sat Jun 28 04:38:02 2003
+++ openssh-3.7.1p2/packet.h Tue Oct 7 08:22:01 2003
@@ -31,6 +31,13 @@
void packet_set_interactive(int);
int packet_is_interactive(void);
+#ifdef CHARSET_EBCDIC
+void packet_put_binary(const void *buf, u_int len);
+void *packet_get_binary(u_int *length_ptr);
+#else
+#define packet_put_binary(_buf,_len) packet_put_string(_buf,_len)
+#define packet_get_binary(_lenp) packet_get...