• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/lib/

Lines Matching refs:option

107                         int cmd, int option);
111 static void send_negotiation(struct connectdata *, int cmd, int option);
112 static void set_local_option(struct connectdata *, int cmd, int option);
113 static void set_remote_option(struct connectdata *, int cmd, int option);
145 CURL_TS_SB, /* sub-option collection */
146 CURL_TS_SE /* looking for sub-option end */
276 const char *direction, int cmd, int option)
283 if(CURL_TELCMD_OK(option))
284 infof(data, "%s IAC %s\n", direction, CURL_TELCMD(option));
286 infof(data, "%s IAC %d\n", direction, option);
292 if(CURL_TELOPT_OK(option))
293 opt = CURL_TELOPT(option);
294 else if(option == CURL_TELOPT_EXOPL)
302 infof(data, "%s %s %d\n", direction, fmt, option);
305 infof(data, "%s %d %d\n", direction, cmd, option);
311 static void send_negotiation(struct connectdata *conn, int cmd, int option)
320 buf[2] = (unsigned char)option;
328 printoption(conn->data, "SENT", cmd, option);
332 void set_remote_option(struct connectdata *conn, int option, int newstate)
336 switch(tn->him[option]) {
338 tn->him[option] = CURL_WANTYES;
339 send_negotiation(conn, CURL_DO, option);
347 switch(tn->himq[option]) {
350 tn->himq[option] = CURL_OPPOSITE;
359 switch(tn->himq[option]) {
364 tn->himq[option] = CURL_EMPTY;
371 switch(tn->him[option]) {
377 tn->him[option] = CURL_WANTNO;
378 send_negotiation(conn, CURL_DONT, option);
382 switch(tn->himq[option]) {
387 tn->himq[option] = CURL_EMPTY;
393 switch(tn->himq[option]) {
395 tn->himq[option] = CURL_OPPOSITE;
406 void rec_will(struct connectdata *conn, int option)
409 switch(tn->him[option]) {
411 if(tn->him_preferred[option] == CURL_YES) {
412 tn->him[option] = CURL_YES;
413 send_negotiation(conn, CURL_DO, option);
416 send_negotiation(conn, CURL_DONT, option);
425 switch(tn->himq[option]) {
428 tn->him[option] = CURL_NO;
432 tn->him[option] = CURL_YES;
433 tn->himq[option] = CURL_EMPTY;
439 switch(tn->himq[option]) {
441 tn->him[option] = CURL_YES;
444 tn->him[option] = CURL_WANTNO;
445 tn->himq[option] = CURL_EMPTY;
446 send_negotiation(conn, CURL_DONT, option);
454 void rec_wont(struct connectdata *conn, int option)
457 switch(tn->him[option]) {
463 tn->him[option] = CURL_NO;
464 send_negotiation(conn, CURL_DONT, option);
468 switch(tn->himq[option]) {
470 tn->him[option] = CURL_NO;
474 tn->him[option] = CURL_WANTYES;
475 tn->himq[option] = CURL_EMPTY;
476 send_negotiation(conn, CURL_DO, option);
482 switch(tn->himq[option]) {
484 tn->him[option] = CURL_NO;
487 tn->him[option] = CURL_NO;
488 tn->himq[option] = CURL_EMPTY;
496 set_local_option(struct connectdata *conn, int option, int newstate)
500 switch(tn->us[option]) {
502 tn->us[option] = CURL_WANTYES;
503 send_negotiation(conn, CURL_WILL, option);
511 switch(tn->usq[option]) {
514 tn->usq[option] = CURL_OPPOSITE;
523 switch(tn->usq[option]) {
528 tn->usq[option] = CURL_EMPTY;
535 switch(tn->us[option]) {
541 tn->us[option] = CURL_WANTNO;
542 send_negotiation(conn, CURL_WONT, option);
546 switch(tn->usq[option]) {
551 tn->usq[option] = CURL_EMPTY;
557 switch(tn->usq[option]) {
559 tn->usq[option] = CURL_OPPOSITE;
570 void rec_do(struct connectdata *conn, int option)
573 switch(tn->us[option]) {
575 if(tn->us_preferred[option] == CURL_YES) {
576 tn->us[option] = CURL_YES;
577 send_negotiation(conn, CURL_WILL, option);
580 send_negotiation(conn, CURL_WONT, option);
588 switch(tn->usq[option]) {
591 tn->us[option] = CURL_NO;
595 tn->us[option] = CURL_YES;
596 tn->usq[option] = CURL_EMPTY;
602 switch(tn->usq[option]) {
604 tn->us[option] = CURL_YES;
607 tn->us[option] = CURL_WANTNO;
608 tn->himq[option] = CURL_EMPTY;
609 send_negotiation(conn, CURL_WONT, option);
617 void rec_dont(struct connectdata *conn, int option)
620 switch(tn->us[option]) {
626 tn->us[option] = CURL_NO;
627 send_negotiation(conn, CURL_WONT, option);
631 switch(tn->usq[option]) {
633 tn->us[option] = CURL_NO;
637 tn->us[option] = CURL_WANTYES;
638 tn->usq[option] = CURL_EMPTY;
639 send_negotiation(conn, CURL_WILL, option);
645 switch(tn->usq[option]) {
647 tn->us[option] = CURL_NO;
650 tn->us[option] = CURL_NO;
651 tn->usq[option] = CURL_EMPTY;
820 failf(data, "Unknown telnet option %s", head->data);
825 failf(data, "Syntax error in telnet option: %s", head->data);
842 * Look at the sub-option buffer, and try to be helpful to the other
1044 * IAC SE was left off, or another option got inserted into the
1056 suboption(conn); /* handle sub-option */
1069 suboption(conn); /* handle sub-option */