Lines Matching refs:opt_buf

534     u_char opt_buf[CCP_MAX_OPTION_LENGTH];  local
618 opt_buf[0] = CI_MPPE;
619 opt_buf[1] = CILEN_MPPE;
620 MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]);
622 if (ccp_test(f->unit, opt_buf, CILEN_MPPE + MPPE_MAX_KEY_LEN, 0) <= 0) {
629 opt_buf[0] = CI_BSD_COMPRESS;
630 opt_buf[1] = CILEN_BSD_COMPRESS;
631 opt_buf[2] = BSD_MAKE_OPT(BSD_CURRENT_VERSION, BSD_MIN_BITS);
632 if (ccp_test(f->unit, opt_buf, CILEN_BSD_COMPRESS, 0) <= 0)
637 opt_buf[0] = CI_DEFLATE;
638 opt_buf[1] = CILEN_DEFLATE;
639 opt_buf[2] = DEFLATE_MAKE_OPT(DEFLATE_MIN_WORKS);
640 opt_buf[3] = DEFLATE_CHK_SEQUENCE;
641 if (ccp_test(f->unit, opt_buf, CILEN_DEFLATE, 0) <= 0)
645 opt_buf[0] = CI_DEFLATE_DRAFT;
646 opt_buf[1] = CILEN_DEFLATE;
647 opt_buf[2] = DEFLATE_MAKE_OPT(DEFLATE_MIN_WORKS);
648 opt_buf[3] = DEFLATE_CHK_SEQUENCE;
649 if (ccp_test(f->unit, opt_buf, CILEN_DEFLATE, 0) <= 0)
656 opt_buf[0] = CI_PREDICTOR_1;
657 opt_buf[1] = CILEN_PREDICTOR_1;
658 if (ccp_test(f->unit, opt_buf, CILEN_PREDICTOR_1, 0) <= 0)
662 opt_buf[0] = CI_PREDICTOR_2;
663 opt_buf[1] = CILEN_PREDICTOR_2;
664 if (ccp_test(f->unit, opt_buf, CILEN_PREDICTOR_2, 0) <= 0)
705 u_char opt_buf[CILEN_MPPE + MPPE_MAX_KEY_LEN]; local
707 p[0] = opt_buf[0] = CI_MPPE;
708 p[1] = opt_buf[1] = CILEN_MPPE;
710 MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]);
711 BCOPY(mppe_recv_key, &opt_buf[CILEN_MPPE], MPPE_MAX_KEY_LEN);
712 res = ccp_test(f->unit, opt_buf, CILEN_MPPE + MPPE_MAX_KEY_LEN, 0);
818 u_char opt_buf[CILEN_MPPE]; local
820 opt_buf[0] = CI_MPPE;
821 opt_buf[1] = CILEN_MPPE;
822 MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]);
823 if (len < CILEN_MPPE || memcmp(opt_buf, p, CILEN_MPPE))
1172 u_char opt_buf[CILEN_MPPE + MPPE_MAX_KEY_LEN]; local
1175 BCOPY(p, opt_buf, CILEN_MPPE);
1176 BCOPY(mppe_send_key, &opt_buf[CILEN_MPPE],
1178 if (ccp_test(f->unit, opt_buf,