Lines Matching refs:go
533 ccp_options *go = &ccp_gotoptions[f->unit]; local
536 *go = ccp_wantoptions[f->unit];
540 if (go->mppe) {
587 if (go->mppe & MPPE_OPT_40) {
589 go->mppe &= ~MPPE_OPT_40;
595 if (!(go->mppe & (MPPE_OPT_40 | MPPE_OPT_128))) {
603 ao->mppe = go->mppe;
605 ao->bsd_compress = go->bsd_compress = 0;
606 ao->predictor_1 = go->predictor_1 = 0;
607 ao->predictor_2 = go->predictor_2 = 0;
608 ao->deflate = go->deflate = 0;
617 if (go->mppe) {
620 MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]);
628 if (go->bsd_compress) {
633 go->bsd_compress = 0;
635 if (go->deflate) {
636 if (go->deflate_correct) {
642 go->deflate_correct = 0;
644 if (go->deflate_draft) {
650 go->deflate_draft = 0;
652 if (!go->deflate_correct && !go->deflate_draft)
653 go->deflate = 0;
655 if (go->predictor_1) {
659 go->predictor_1 = 0;
661 if (go->predictor_2) {
665 go->predictor_2 = 0;
676 ccp_options *go = &ccp_gotoptions[f->unit]; local
678 return (go->bsd_compress? CILEN_BSD_COMPRESS: 0)
679 + (go->deflate? CILEN_DEFLATE: 0)
680 + (go->predictor_1? CILEN_PREDICTOR_1: 0)
681 + (go->predictor_2? CILEN_PREDICTOR_2: 0)
682 + (go->mppe? CILEN_MPPE: 0);
695 ccp_options *go = &ccp_gotoptions[f->unit]; local
704 if (go->mppe) {
709 MPPE_OPTS_TO_CI(go->mppe, &p[2]);
710 MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]);
720 if (go->deflate) {
721 p[0] = go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT;
723 p[2] = DEFLATE_MAKE_OPT(go->deflate_size);
729 if (go->deflate_size < DEFLATE_MIN_WORKS) {
730 go->deflate = 0;
738 go->deflate = 0;
741 --go->deflate_size;
742 p[2] = DEFLATE_MAKE_OPT(go->deflate_size);
745 if (p != p0 && go->deflate_correct && go->deflate_draft) {
753 if (go->bsd_compress) {
756 p[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits);
761 if (go->bsd_bits < BSD_MIN_BITS) {
762 go->bsd_compress = 0;
770 go->bsd_compress = 0;
773 --go->bsd_bits;
774 p[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits);
779 if (go->predictor_1) {
783 go->predictor_1 = 0;
788 if (go->predictor_2) {
792 go->predictor_2 = 0;
798 go->method = (p > p0)? p0[0]: -1;
813 ccp_options *go = &ccp_gotoptions[f->unit]; local
817 if (go->mppe) {
822 MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]);
832 if (go->deflate) {
834 || p[0] != (go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT)
836 || p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
844 if (go->deflate_correct && go->deflate_draft) {
848 || p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
855 if (go->bsd_compress) {
858 || p[2] != BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits))
866 if (go->predictor_1) {
876 if (go->predictor_2) {
903 ccp_options *go = &ccp_gotoptions[f->unit]; local
908 try = *go;
911 if (go->mppe && len >= CILEN_MPPE
922 } else if (((go->mppe | MPPE_OPT_STATEFUL) & try.mppe) != try.mppe) {
933 if (go->deflate && len >= CILEN_DEFLATE
934 && p[0] == (go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT)
945 else if (DEFLATE_SIZE(p[2]) < go->deflate_size)
949 if (go->deflate_correct && go->deflate_draft
957 if (go->bsd_compress && len >= CILEN_BSD_COMPRESS
966 else if (BSD_NBITS(p[2]) < go->bsd_bits)
979 *go = try;
992 ccp_options *go = &ccp_gotoptions[f->unit]; local
995 try = *go;
1005 if (go->mppe && len >= CILEN_MPPE
1013 if (go->deflate_correct && len >= CILEN_DEFLATE
1015 if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
1022 if (go->deflate_draft && len >= CILEN_DEFLATE
1024 if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
1033 if (go->bsd_compress && len >= CILEN_BSD_COMPRESS
1035 if (p[2] != BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits))
1041 if (go->predictor_1 && len >= CILEN_PREDICTOR_1
1047 if (go->predictor_2 && len >= CILEN_PREDICTOR_2
1058 *go = try;
1428 ccp_options *go = &ccp_gotoptions[f->unit]; local
1433 if (ANY_COMPRESS(*go)) {
1435 if (go->method == ho->method) {
1436 notice("%s compression enabled", method_name(go, ho));
1438 strlcpy(method1, method_name(go, NULL), sizeof(method1));
1443 notice("%s receive compression enabled", method_name(go, NULL));
1447 if (go->mppe) {