• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/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);
119 static void sendsuboption(struct connectdata *conn, int option);
148 CURL_TS_SB, /* sub-option collection */
149 CURL_TS_SE /* looking for sub-option end */
262 we enable this option by default. This behaviour
263 can be changed thanks to the "BINARY" option in
287 using the TERMINAL TYPE Telnet option). */
311 const char *direction, int cmd, int option)
318 if(CURL_TELCMD_OK(option))
319 infof(data, "%s IAC %s\n", direction, CURL_TELCMD(option));
321 infof(data, "%s IAC %d\n", direction, option);
327 if(CURL_TELOPT_OK(option))
328 opt = CURL_TELOPT(option);
329 else if(option == CURL_TELOPT_EXOPL)
337 infof(data, "%s %s %d\n", direction, fmt, option);
340 infof(data, "%s %d %d\n", direction, cmd, option);
346 static void send_negotiation(struct connectdata *conn, int cmd, int option)
355 buf[2] = (unsigned char)option;
363 printoption(conn->data, "SENT", cmd, option);
367 void set_remote_option(struct connectdata *conn, int option, int newstate)
371 switch(tn->him[option]) {
373 tn->him[option] = CURL_WANTYES;
374 send_negotiation(conn, CURL_DO, option);
382 switch(tn->himq[option]) {
385 tn->himq[option] = CURL_OPPOSITE;
394 switch(tn->himq[option]) {
399 tn->himq[option] = CURL_EMPTY;
406 switch(tn->him[option]) {
412 tn->him[option] = CURL_WANTNO;
413 send_negotiation(conn, CURL_DONT, option);
417 switch(tn->himq[option]) {
422 tn->himq[option] = CURL_EMPTY;
428 switch(tn->himq[option]) {
430 tn->himq[option] = CURL_OPPOSITE;
441 void rec_will(struct connectdata *conn, int option)
444 switch(tn->him[option]) {
446 if(tn->him_preferred[option] == CURL_YES) {
447 tn->him[option] = CURL_YES;
448 send_negotiation(conn, CURL_DO, option);
451 send_negotiation(conn, CURL_DONT, option);
460 switch(tn->himq[option]) {
463 tn->him[option] = CURL_NO;
467 tn->him[option] = CURL_YES;
468 tn->himq[option] = CURL_EMPTY;
474 switch(tn->himq[option]) {
476 tn->him[option] = CURL_YES;
479 tn->him[option] = CURL_WANTNO;
480 tn->himq[option] = CURL_EMPTY;
481 send_negotiation(conn, CURL_DONT, option);
489 void rec_wont(struct connectdata *conn, int option)
492 switch(tn->him[option]) {
498 tn->him[option] = CURL_NO;
499 send_negotiation(conn, CURL_DONT, option);
503 switch(tn->himq[option]) {
505 tn->him[option] = CURL_NO;
509 tn->him[option] = CURL_WANTYES;
510 tn->himq[option] = CURL_EMPTY;
511 send_negotiation(conn, CURL_DO, option);
517 switch(tn->himq[option]) {
519 tn->him[option] = CURL_NO;
522 tn->him[option] = CURL_NO;
523 tn->himq[option] = CURL_EMPTY;
531 set_local_option(struct connectdata *conn, int option, int newstate)
535 switch(tn->us[option]) {
537 tn->us[option] = CURL_WANTYES;
538 send_negotiation(conn, CURL_WILL, option);
546 switch(tn->usq[option]) {
549 tn->usq[option] = CURL_OPPOSITE;
558 switch(tn->usq[option]) {
563 tn->usq[option] = CURL_EMPTY;
570 switch(tn->us[option]) {
576 tn->us[option] = CURL_WANTNO;
577 send_negotiation(conn, CURL_WONT, option);
581 switch(tn->usq[option]) {
586 tn->usq[option] = CURL_EMPTY;
592 switch(tn->usq[option]) {
594 tn->usq[option] = CURL_OPPOSITE;
605 void rec_do(struct connectdata *conn, int option)
608 switch(tn->us[option]) {
610 if(tn->us_preferred[option] == CURL_YES) {
611 tn->us[option] = CURL_YES;
612 send_negotiation(conn, CURL_WILL, option);
613 if(tn->subnegotiation[option] == CURL_YES)
614 /* transmission of data option */
615 sendsuboption(conn, option);
617 else if(tn->subnegotiation[option] == CURL_YES) {
618 /* send information to achieve this option*/
619 tn->us[option] = CURL_YES;
620 send_negotiation(conn, CURL_WILL, option);
621 sendsuboption(conn, option);
624 send_negotiation(conn, CURL_WONT, option);
632 switch(tn->usq[option]) {
635 tn->us[option] = CURL_NO;
639 tn->us[option] = CURL_YES;
640 tn->usq[option] = CURL_EMPTY;
646 switch(tn->usq[option]) {
648 tn->us[option] = CURL_YES;
649 if(tn->subnegotiation[option] == CURL_YES) {
650 /* transmission of data option */
651 sendsuboption(conn, option);
655 tn->us[option] = CURL_WANTNO;
656 tn->himq[option] = CURL_EMPTY;
657 send_negotiation(conn, CURL_WONT, option);
665 void rec_dont(struct connectdata *conn, int option)
668 switch(tn->us[option]) {
674 tn->us[option] = CURL_NO;
675 send_negotiation(conn, CURL_WONT, option);
679 switch(tn->usq[option]) {
681 tn->us[option] = CURL_NO;
685 tn->us[option] = CURL_WANTYES;
686 tn->usq[option] = CURL_EMPTY;
687 send_negotiation(conn, CURL_WILL, option);
693 switch(tn->usq[option]) {
695 tn->us[option] = CURL_NO;
698 tn->us[option] = CURL_NO;
699 tn->usq[option] = CURL_EMPTY;
884 failf(data, "Syntax error in telnet option: %s", head->data);
901 failf(data, "Unknown telnet option %s", head->data);
906 failf(data, "Syntax error in telnet option: %s", head->data);
923 * Look at the sub-option buffer, and try to be helpful to the other
1004 static void sendsuboption(struct connectdata *conn, int option)
1014 switch (option) {
1188 * IAC SE was left off, or another option got inserted into the
1200 suboption(conn); /* handle sub-option */
1213 suboption(conn); /* handle sub-option */