guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSHv2 doesn't actually have compression levels


From: Tobias Geerinckx-Rice
Subject: Re: SSHv2 doesn't actually have compression levels
Date: Fri, 23 Aug 2019 00:00:43 +0200

Ludo',

Welcome back :-)

Ludovic Courtès 写道:
I don’t get it: the ‘compression-level’ field defaults to 3, and OpenSSH
does:

  static int
  start_compression_out(struct ssh *ssh, int level)
  {
          if (level < 1 || level > 9)
                  return SSH_ERR_INVALID_ARGUMENT;
          debug("Enabling compression at level %d.", level);

  [...]

  }

What’s wrong?

Exactly!

 ~/openssh-8.0p1 λ grep -r start_compression_out
 packet.c:start_compression_out(struct ssh *ssh, int level)
 packet.c:      if ((r = start_compression_out(ssh, 6)) != 0)
 packet.c:      if ((r = start_compression_out(ssh, 6)) != 0)

Kind regards,

T G-R

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]