--- openssh-4.6p1.old/channels.h	2006-08-04 22:39:39.000000000 -0400
+++ openssh-4.6p1/channels.h	2007-08-03 12:16:33.000000000 -0400
@@ -114,6 +114,8 @@ struct Channel {
 	channel_outfilter_fn	*output_filter;
 
 	int     datagram;	/* keep boundaries */
+
+        Channel *next;
 };
 
 #define CHAN_EXTENDED_IGNORE		0
@@ -248,3 +250,18 @@ void	 chan_write_failed(Channel *);
 void	 chan_obuf_empty(Channel *);
 
 #endif
+
+
+/*test code*/
+
+struct node {
+  Channel* chPtr;
+  int      chNum;
+  struct node* next;
+};
+
+typedef struct node CNode;
+
+void     channel_add_node(CNode **, Channel *);
+void     channel_del_node(CNode **, Channel *);
+void     printList(CNode *);
