diff options
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/channels.h b/channels.h index 40142c509..a857db11e 100644 --- a/channels.h +++ b/channels.h | |||
@@ -32,7 +32,7 @@ | |||
32 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 32 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
33 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 33 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
34 | */ | 34 | */ |
35 | /* RCSID("$OpenBSD: channels.h,v 1.56 2001/12/28 15:06:00 markus Exp $"); */ | 35 | /* RCSID("$OpenBSD: channels.h,v 1.57 2002/01/13 21:31:20 markus Exp $"); */ |
36 | 36 | ||
37 | #ifndef CHANNEL_H | 37 | #ifndef CHANNEL_H |
38 | #define CHANNEL_H | 38 | #define CHANNEL_H |
@@ -68,8 +68,8 @@ struct Channel { | |||
68 | int type; /* channel type/state */ | 68 | int type; /* channel type/state */ |
69 | int self; /* my own channel identifier */ | 69 | int self; /* my own channel identifier */ |
70 | int remote_id; /* channel identifier for remote peer */ | 70 | int remote_id; /* channel identifier for remote peer */ |
71 | int istate; /* input from channel (state of receive half) */ | 71 | u_int istate; /* input from channel (state of receive half) */ |
72 | int ostate; /* output to channel (state of transmit half) */ | 72 | u_int ostate; /* output to channel (state of transmit half) */ |
73 | int flags; /* close sent/rcvd */ | 73 | int flags; /* close sent/rcvd */ |
74 | int rfd; /* read fd */ | 74 | int rfd; /* read fd */ |
75 | int wfd; /* write fd */ | 75 | int wfd; /* write fd */ |
@@ -123,16 +123,16 @@ struct Channel { | |||
123 | #define CHAN_X11_PACKET_DEFAULT (CHAN_X11_WINDOW_DEFAULT/2) | 123 | #define CHAN_X11_PACKET_DEFAULT (CHAN_X11_WINDOW_DEFAULT/2) |
124 | 124 | ||
125 | /* possible input states */ | 125 | /* possible input states */ |
126 | #define CHAN_INPUT_OPEN 0x01 | 126 | #define CHAN_INPUT_OPEN 0 |
127 | #define CHAN_INPUT_WAIT_DRAIN 0x02 | 127 | #define CHAN_INPUT_WAIT_DRAIN 1 |
128 | #define CHAN_INPUT_WAIT_OCLOSE 0x04 | 128 | #define CHAN_INPUT_WAIT_OCLOSE 2 |
129 | #define CHAN_INPUT_CLOSED 0x08 | 129 | #define CHAN_INPUT_CLOSED 3 |
130 | 130 | ||
131 | /* possible output states */ | 131 | /* possible output states */ |
132 | #define CHAN_OUTPUT_OPEN 0x10 | 132 | #define CHAN_OUTPUT_OPEN 0 |
133 | #define CHAN_OUTPUT_WAIT_DRAIN 0x20 | 133 | #define CHAN_OUTPUT_WAIT_DRAIN 1 |
134 | #define CHAN_OUTPUT_WAIT_IEOF 0x40 | 134 | #define CHAN_OUTPUT_WAIT_IEOF 2 |
135 | #define CHAN_OUTPUT_CLOSED 0x80 | 135 | #define CHAN_OUTPUT_CLOSED 3 |
136 | 136 | ||
137 | #define CHAN_CLOSE_SENT 0x01 | 137 | #define CHAN_CLOSE_SENT 0x01 |
138 | #define CHAN_CLOSE_RCVD 0x02 | 138 | #define CHAN_CLOSE_RCVD 0x02 |