Patch for allowing port forward host names > 30 bytes
Dave Dykstra
dwd at bell-labs.com
Tue Oct 30 08:27:14 EST 2001
For some reason OpenSSH only allows 30 bytes in a name for port forwards.
That's very limiting. SSH 1.2.27 allowed 200 bytes. Here's a patch to
make it 200 bytes. The comment on the "path" variable in struct Channel
says the same variable is used to hold unix domain socket names, and surely
they shouldn't be limited to 30 bytes.
Again, this was tested on portable OpenSSH but should be applied to
native.
- Dave Dykstra
--- channels.h.O Mon Oct 29 15:47:28 2001
+++ channels.h Mon Oct 29 15:47:47 2001
@@ -56,7 +56,7 @@
#define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */
#define SSH_CHANNEL_MAX_TYPE 15
-#define SSH_CHANNEL_PATH_LEN 30
+#define SSH_CHANNEL_PATH_LEN 200
struct Channel;
typedef struct Channel Channel;
More information about the openssh-unix-dev
mailing list