Lines Matching defs:go

349      * If we haven't gone open yet (first time through), then go open
530 ccp_options *go = &ccp_gotoptions[f->unit];
533 *go = ccp_wantoptions[f->unit];
540 if (go->bsd_compress) {
545 go->bsd_compress = 0;
547 if (go->deflate) {
548 if (go->deflate_correct) {
554 go->deflate_correct = 0;
556 if (go->deflate_draft) {
562 go->deflate_draft = 0;
564 if (!go->deflate_correct && !go->deflate_draft)
565 go->deflate = 0;
567 if (go->predictor_1) {
571 go->predictor_1 = 0;
573 if (go->predictor_2) {
577 go->predictor_2 = 0;
588 ccp_options *go = &ccp_gotoptions[f->unit];
590 return (go->bsd_compress? CILEN_BSD_COMPRESS: 0)
591 + (go->deflate && go->deflate_correct ? CILEN_DEFLATE : 0)
592 + (go->deflate && go->deflate_draft ? CILEN_DEFLATE : 0)
593 + (go->predictor_1? CILEN_PREDICTOR_1: 0)
594 + (go->predictor_2? CILEN_PREDICTOR_2: 0);
607 ccp_options *go = &ccp_gotoptions[f->unit];
615 if (go->deflate) {
616 p[0] = go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT;
618 p[2] = DEFLATE_MAKE_OPT(go->deflate_size);
626 if (res < 0 || go->deflate_size <= DEFLATE_MIN_SIZE+1) {
627 go->deflate = 0;
630 --go->deflate_size;
631 p[2] = DEFLATE_MAKE_OPT(go->deflate_size);
634 if (p != p0 && go->deflate_correct && go->deflate_draft) {
642 if (go->bsd_compress) {
645 p[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits);
655 if (res < 0 || go->bsd_bits <= BSD_MIN_BITS) {
656 go->bsd_compress = 0;
659 --go->bsd_bits;
660 p[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits);
668 if (go->predictor_1) {
672 go->predictor_1 = 0;
677 if (go->predictor_2) {
681 go->predictor_2 = 0;
687 go->method = (p > p0)? p0[0]: -1;
702 ccp_options *go = &ccp_gotoptions[f->unit];
705 if (go->deflate && go->deflate_correct) {
708 || p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
717 if (go->deflate && go->deflate_draft) {
720 || p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
729 if (go->bsd_compress) {
732 || p[2] != BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits))
740 if (go->predictor_1) {
750 if (go->predictor_2) {
777 ccp_options *go = &ccp_gotoptions[f->unit];
782 try = *go;
784 if (go->deflate && go->deflate_correct && len >= CILEN_DEFLATE &&
796 else if (DEFLATE_SIZE(p[2]) < go->deflate_size)
802 if (go->deflate && go->deflate_draft && len >= CILEN_DEFLATE &&
817 else if (DEFLATE_SIZE(p[2]) < go->deflate_size)
826 if (go->bsd_compress && len >= CILEN_BSD_COMPRESS &&
836 else if (BSD_NBITS(p[2]) < go->bsd_bits)
849 *go = try;
862 ccp_options *go = &ccp_gotoptions[f->unit];
865 try = *go;
874 if (go->deflate && go->deflate_correct && len >= CILEN_DEFLATE &&
876 if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
883 if (go->deflate && go->deflate_draft && len >= CILEN_DEFLATE &&
885 if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
894 if (go->bsd_compress && len >= CILEN_BSD_COMPRESS
896 if (p[2] != BSD_MAKE_OPT(BSD_CURRENT_VERSION, go->bsd_bits))
902 if (go->predictor_1 && len >= CILEN_PREDICTOR_1
908 if (go->predictor_2 && len >= CILEN_PREDICTOR_2
919 *go = try;
1222 ccp_options *go = &ccp_gotoptions[f->unit];
1230 if (ANY_COMPRESS(*go)) {
1232 if (go->method == ho->method) {
1233 notice("%s compression enabled", method_name(go, ho));
1235 (void) strlcpy(method1, method_name(go, NULL), sizeof(method1));
1240 notice("%s receive decompression enabled", method_name(go, NULL));