Lines Matching refs:option

139 #define	TS_SB		7		/* sub-option collection */
140 #define TS_SE 8 /* looking for sub-option end */
206 * These routines are in charge of sending option negotiations
282 willoption(int option)
286 if (do_dont_resp[option]) {
287 --do_dont_resp[option];
288 if (do_dont_resp[option] && my_state_is_do(option))
289 --do_dont_resp[option];
292 if ((do_dont_resp[option] == 0) && my_want_state_is_dont(option)) {
294 switch (option) {
318 set_my_want_state_dont(option);
319 set_my_state_dont(option);
328 set_my_want_state_do(option);
329 send_do(option, 0);
332 do_dont_resp[option]++;
333 send_dont(option, 0);
336 set_my_state_do(option);
338 if (option == TELOPT_ENCRYPT)
344 wontoption(int option)
346 if (do_dont_resp[option]) {
347 --do_dont_resp[option];
348 if (do_dont_resp[option] && my_state_is_dont(option))
349 --do_dont_resp[option];
352 if ((do_dont_resp[option] == 0) && my_want_state_is_do(option)) {
354 switch (option) {
369 set_my_want_state_dont(option);
370 set_my_state_dont(option);
376 set_my_want_state_dont(option);
377 if (my_state_is_do(option))
378 send_dont(option, 0);
380 } else if (option == TELOPT_TM) {
386 set_my_want_state_dont(option);
388 set_my_state_dont(option);
392 dooption(int option)
396 if (will_wont_resp[option]) {
397 --will_wont_resp[option];
398 if (will_wont_resp[option] && my_state_is_will(option))
399 --will_wont_resp[option];
402 if (will_wont_resp[option] == 0) {
403 if (my_want_state_is_wont(option)) {
405 switch (option) {
412 send_will(option, 0);
421 case TELOPT_TTYPE: /* terminal type option */
424 case TELOPT_ENCRYPT: /* encryption variable option */
429 case TELOPT_NEW_ENVIRON: /* New environment variable option */
434 case TELOPT_OLD_ENVIRON: /* Old environment variable option */
438 telopt_environ = option;
461 send_will(option, 0);
472 set_my_want_state_will(option);
473 send_will(option, 0);
476 will_wont_resp[option]++;
477 send_wont(option, 0);
482 * other side has acknowledged the option.
484 switch (option) {
490 set_my_state_will(option);
497 set_my_state_will(option);
501 dontoption(int option)
504 if (will_wont_resp[option]) {
505 --will_wont_resp[option];
506 if (will_wont_resp[option] && my_state_is_wont(option))
507 --will_wont_resp[option];
510 if ((will_wont_resp[option] == 0) && my_want_state_is_will(option)) {
511 switch (option) {
518 * The new environ option wasn't recognized, try
527 set_my_want_state_wont(option);
528 if (my_state_is_will(option))
529 send_wont(option, 0);
532 set_my_state_wont(option);
632 * Duplicate last name, for TTYPE option, and null
724 * Look at the sub-option buffer, and try to be helpful to the other
878 * variable. Or it is too long. So, turn off the option.
1833 * IAC SE was left off, or another option got
1847 suboption(); /* handle sub-option */
1858 suboption(); /* handle sub-option */
2272 printf("Remote side does not support STATUS option\n");