Home | History | Annotate | Download | only in pppd

Lines Matching refs:go

533     ccp_options *go = &ccp_gotoptions[f->unit];
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];
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];
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];
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) {
902 ccp_options *go = &ccp_gotoptions[f->unit];
907 try = *go;
910 if (go->mppe && len >= CILEN_MPPE
921 } else if (((go->mppe | MPPE_OPT_STATEFUL) & try.mppe) != try.mppe) {
932 if (go->deflate && len >= CILEN_DEFLATE
933 && p[0] == (go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT)
944 else if (DEFLATE_SIZE(p[2]) < go->deflate_size)
948 if (go->deflate_correct && go->deflate_draft
956 if (go->bsd_compress && len >= CILEN_BSD_COMPRESS
965 else if (BSD_NBITS(p[2]) < go->bsd_bits)
978 *go = try;
991 ccp_options *go = &ccp_gotoptions[f->unit];
994 try = *go;
1004 if (go->mppe && len >= CILEN_MPPE
1012 if (go->deflate_correct && len >= CILEN_DEFLATE
1014 if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
1021 if (go->deflate_draft && len >= CILEN_DEFLATE
1023 if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
1032 if (go->bsd_compress && len >= CILEN_BSD_COMPRESS
1034 if (p[2] != BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits))
1040 if (go->predictor_1 && len >= CILEN_PREDICTOR_1
1046 if (go->predictor_2 && len >= CILEN_PREDICTOR_2
1057 *go = try;
1424 ccp_options *go = &ccp_gotoptions[f->unit];
1429 if (ANY_COMPRESS(*go)) {
1431 if (go->method == ho->method) {
1432 notice("%s compression enabled", method_name(go, ho));
1434 strlcpy(method1, method_name(go, NULL), sizeof(method1));
1439 notice("%s receive compression enabled", method_name(go, NULL));
1443 if (go->mppe) {