Print this page
OS-2204 SunSSH has a maximum of 10 multiplexed sessions
@@ -23,10 +23,15 @@
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2013, Joyent, Inc. All rights reserved.
+ */
+
+#include "sys-queue.h"
#ifndef _SESSION_H
#define _SESSION_H
#ifdef __cplusplus
@@ -35,11 +40,11 @@
/* $OpenBSD: session.h,v 1.19 2002/06/30 21:59:45 deraadt Exp $ */
#define TTYSZ 64
typedef struct Session Session;
struct Session {
- int used;
+ LIST_ENTRY(Session) list_entry;
int self;
struct passwd *pw;
Authctxt *authctxt;
pid_t pid;
/* tty */