• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ppp-727.90.1/Helpers/pppd/

Lines Matching defs:go

590     ccp_options *go = &ccp_gotoptions[f->unit];
593 *go = ccp_wantoptions[f->unit];
597 if (go->mppe) {
651 if (go->mppe & MPPE_OPT_40) {
653 go->mppe &= ~MPPE_OPT_40;
662 if (!(go->mppe & (MPPE_OPT_40 | MPPE_OPT_128))) {
670 ao->mppe = go->mppe;
672 ao->bsd_compress = go->bsd_compress = 0;
673 ao->predictor_1 = go->predictor_1 = 0;
674 ao->predictor_2 = go->predictor_2 = 0;
675 ao->deflate = go->deflate = 0;
684 if (go->mppe) {
687 MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]);
695 if (go->bsd_compress) {
700 go->bsd_compress = 0;
702 if (go->deflate) {
703 if (go->deflate_correct) {
709 go->deflate_correct = 0;
711 if (go->deflate_draft) {
717 go->deflate_draft = 0;
719 if (!go->deflate_correct && !go->deflate_draft)
720 go->deflate = 0;
722 if (go->predictor_1) {
726 go->predictor_1 = 0;
728 if (go->predictor_2) {
732 go->predictor_2 = 0;
743 ccp_options *go = &ccp_gotoptions[f->unit];
745 return (go->bsd_compress? CILEN_BSD_COMPRESS: 0)
746 + (go->deflate? CILEN_DEFLATE: 0)
747 + (go->predictor_1? CILEN_PREDICTOR_1: 0)
748 + (go->predictor_2? CILEN_PREDICTOR_2: 0)
749 + (go->mppe? CILEN_MPPE: 0);
762 ccp_options *go = &ccp_gotoptions[f->unit];
771 if (go->mppe) {
776 MPPE_OPTS_TO_CI(go->mppe, &p[2]);
777 MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]);
787 if (go->deflate) {
788 p[0] = go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT;
790 p[2] = DEFLATE_MAKE_OPT(go->deflate_size);
796 if (go->deflate_size < DEFLATE_MIN_WORKS) {
797 go->deflate = 0;
805 go->deflate = 0;
808 --go->deflate_size;
809 p[2] = DEFLATE_MAKE_OPT(go->deflate_size);
812 if (p != p0 && go->deflate_correct && go->deflate_draft) {
820 if (go->bsd_compress) {
823 p[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits);
828 if (go->bsd_bits < BSD_MIN_BITS) {
829 go->bsd_compress = 0;
837 go->bsd_compress = 0;
840 --go->bsd_bits;
841 p[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits);
846 if (go->predictor_1) {
850 go->predictor_1 = 0;
855 if (go->predictor_2) {
859 go->predictor_2 = 0;
865 go->method = (p > p0)? p0[0]: -1;
880 ccp_options *go = &ccp_gotoptions[f->unit];
884 if (go->mppe) {
889 MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]);
899 if (go->deflate) {
901 || p[0] != (go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT)
903 || p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
911 if (go->deflate_correct && go->deflate_draft) {
915 || p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
922 if (go->bsd_compress) {
925 || p[2] != BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits))
933 if (go->predictor_1) {
943 if (go->predictor_2) {
969 ccp_options *go = &ccp_gotoptions[f->unit];
977 try = *go;
980 if (go->mppe && len >= CILEN_MPPE
1008 } else if (((go->mppe | MPPE_OPT_STATEFUL) & try.mppe) != try.mppe) {
1020 if (go->deflate && len >= CILEN_DEFLATE
1021 && p[0] == (go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT)
1032 else if (DEFLATE_SIZE(p[2]) < go->deflate_size)
1036 if (go->deflate_correct && go->deflate_draft
1044 if (go->bsd_compress && len >= CILEN_BSD_COMPRESS
1053 else if (BSD_NBITS(p[2]) < go->bsd_bits)
1066 *go = try;
1079 ccp_options *go = &ccp_gotoptions[f->unit];
1082 try = *go;
1092 if (go->mppe && len >= CILEN_MPPE
1100 if (go->deflate_correct && len >= CILEN_DEFLATE
1102 if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
1109 if (go->deflate_draft && len >= CILEN_DEFLATE
1111 if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
1120 if (go->bsd_compress && len >= CILEN_BSD_COMPRESS
1122 if (p[2] != BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits))
1128 if (go->predictor_1 && len >= CILEN_PREDICTOR_1
1134 if (go->predictor_2 && len >= CILEN_PREDICTOR_2
1145 *go = try;
1521 ccp_options *go = &ccp_gotoptions[f->unit];
1526 if (ANY_COMPRESS(*go)) {
1528 if (go->method == ho->method) {
1529 notice("%s compression enabled", method_name(go, ho));
1531 strlcpy(method1, method_name(go, NULL), sizeof(method1));
1536 notice("%s receive compression enabled", method_name(go, NULL));
1540 if (go->mppe) {