Lines Matching refs:state

32 static const char sccsid[] = "@(#)state.c	8.5 (Berkeley) 5/30/95";
78 #define TS_DATA 0 /* base state */
94 static int state = TS_DATA;
104 switch (state) {
107 state = TS_DATA;
116 state = TS_IAC;
152 state = TS_CR;
248 state = TS_SB;
253 state = TS_WILL;
257 state = TS_WONT;
261 state = TS_DO;
265 state = TS_DONT;
292 state = TS_DATA;
297 state = TS_SE;
309 * damage to local state. Parse
322 state = TS_IAC;
326 state = TS_SB;
335 state = TS_DATA;
341 state = TS_DATA;
346 state = TS_DATA;
351 state = TS_DATA;
356 state = TS_DATA;
360 syslog(LOG_ERR, "panic state=%d", state);
361 printf("telnetd: panic state=%d\n", state);
368 * The will/wont/do/dont state machines are based on Dave Borman's
369 * Telnet option processing state machine.
372 * my_state = the last negotiated state
373 * want_state = what I want the state to go to
375 * All state defaults are negative, and resp defaults to 0.
377 * When initiating a request to change state to new_state:
410 * us not only the last negotiated state, but also tells us what the peer
412 * as we may wish to be processing data streams based on our desired state
413 * (want_state) or based on what the peer thinks the state is (my_state).
417 * by the positive state, and we can process it as such (if we can; if we
419 * peer probably should be buffering until this option state negotiation
513 * we leave the state WONT.
580 * state that we had requested.
599 * will cause us to process the new pty state
671 /* it is always ok to change to negative state */
702 * as is. Short circut the state machine to
1508 * We check the want_state rather than the current state,
1511 * in response to our WONT/DONT, then the "state" will be