Print this page
OS-2204 SunSSH has a maximum of 10 multiplexed sessions

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ssh/include/session.h
          +++ new/usr/src/cmd/ssh/include/session.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  19   19   * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  20   20   * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  21   21   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  22   22   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  23   23   */
  24   24  /*
  25   25   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  26   26   * Use is subject to license terms.
  27   27   */
       28 +/*
       29 + * Copyright (c) 2013, Joyent, Inc.  All rights reserved.
       30 + */
       31 +
       32 +#include "sys-queue.h"
  28   33  
  29   34  #ifndef _SESSION_H
  30   35  #define _SESSION_H
  31   36  
  32   37  #ifdef __cplusplus
  33   38  extern "C" {
  34   39  #endif
  35   40  
  36   41  /*      $OpenBSD: session.h,v 1.19 2002/06/30 21:59:45 deraadt Exp $    */
  37   42  #define TTYSZ 64
  38   43  typedef struct Session Session;
  39   44  struct Session {
  40      -        int     used;
       45 +        LIST_ENTRY(Session) list_entry;
  41   46          int     self;
  42   47          struct passwd *pw;
  43   48          Authctxt *authctxt;
  44   49          pid_t   pid;
  45   50          /* tty */
  46   51          char    *term;
  47   52          int     ptyfd, ttyfd, ptymaster;
  48   53          u_int   row, col, xpixel, ypixel;
  49   54          char    tty[TTYSZ];
  50   55          /* last login */
↓ open down ↓ 42 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX