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


   8  *    notice, this list of conditions and the following disclaimer.
   9  * 2. Redistributions in binary form must reproduce the above copyright
  10  *    notice, this list of conditions and the following disclaimer in the
  11  *    documentation and/or other materials provided with the distribution.
  12  *
  13  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  14  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  15  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  16  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  17  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  18  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  19  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  20  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  21  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  22  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  23  */
  24 /*
  25  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */





  28 
  29 #ifndef _SESSION_H
  30 #define _SESSION_H
  31 
  32 #ifdef __cplusplus
  33 extern "C" {
  34 #endif
  35 
  36 /*      $OpenBSD: session.h,v 1.19 2002/06/30 21:59:45 deraadt Exp $    */
  37 #define TTYSZ 64
  38 typedef struct Session Session;
  39 struct Session {
  40         int     used;
  41         int     self;
  42         struct passwd *pw;
  43         Authctxt *authctxt;
  44         pid_t   pid;
  45         /* tty */
  46         char    *term;
  47         int     ptyfd, ttyfd, ptymaster;
  48         u_int   row, col, xpixel, ypixel;
  49         char    tty[TTYSZ];
  50         /* last login */
  51         char    hostname[MAXHOSTNAMELEN];
  52         time_t  last_login_time;
  53         /* X11 */
  54         u_int   display_number;
  55         char    *display;
  56         u_int   screen;
  57         char    *auth_display;
  58         char    *auth_proto;
  59         char    *auth_data;
  60         char    *auth_file;                     /* xauth(1) authority file */




   8  *    notice, this list of conditions and the following disclaimer.
   9  * 2. Redistributions in binary form must reproduce the above copyright
  10  *    notice, this list of conditions and the following disclaimer in the
  11  *    documentation and/or other materials provided with the distribution.
  12  *
  13  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  14  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  15  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  16  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  17  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  18  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  19  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  20  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  21  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  22  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  23  */
  24 /*
  25  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 /*
  29  * Copyright (c) 2013, Joyent, Inc.  All rights reserved.
  30  */
  31 
  32 #include "sys-queue.h"
  33 
  34 #ifndef _SESSION_H
  35 #define _SESSION_H
  36 
  37 #ifdef __cplusplus
  38 extern "C" {
  39 #endif
  40 
  41 /*      $OpenBSD: session.h,v 1.19 2002/06/30 21:59:45 deraadt Exp $    */
  42 #define TTYSZ 64
  43 typedef struct Session Session;
  44 struct Session {
  45         LIST_ENTRY(Session) list_entry;
  46         int     self;
  47         struct passwd *pw;
  48         Authctxt *authctxt;
  49         pid_t   pid;
  50         /* tty */
  51         char    *term;
  52         int     ptyfd, ttyfd, ptymaster;
  53         u_int   row, col, xpixel, ypixel;
  54         char    tty[TTYSZ];
  55         /* last login */
  56         char    hostname[MAXHOSTNAMELEN];
  57         time_t  last_login_time;
  58         /* X11 */
  59         u_int   display_number;
  60         char    *display;
  61         u_int   screen;
  62         char    *auth_display;
  63         char    *auth_proto;
  64         char    *auth_data;
  65         char    *auth_file;                     /* xauth(1) authority file */