Lines Matching defs:go
846 lcp_options *go = &lcp_gotoptions[f->unit];
852 *go = *wo;
854 go->neg_mrru = 0;
855 go->neg_ssnhf = 0;
859 if (go->mru > absmax_mru)
860 go->mru = absmax_mru;
876 lcp_options *go = &lcp_gotoptions[f->unit];
889 return (LENCISHORT(go->neg_mru && go->mru != PPP_MRU) +
890 LENCILONG(go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF) +
891 LENCICHAP(go->neg_chap || go->neg_mschap || go->neg_mschapv2) +
892 LENCISHORT(!go->neg_chap && go->neg_upap && !go->neg_mschap &&
893 !go->neg_mschapv2) +
894 LENCILQR(go->neg_lqr) +
895 LENCICBCP(go->neg_cbcp) +
896 LENCILONG(go->neg_magicnumber) +
897 LENCIVOID(go->neg_pcompression) +
898 LENCIVOID(go->neg_accompression) +
899 LENCICHAR(go->neg_fcs) +
900 LENCISHORT(go->neg_mrru) +
901 LENCIVOID(go->neg_ssnhf) +
903 LENCIVOID(go->pppmux) +
905 (go->neg_endpoint? CILEN_CHAR + go->endpoint.length: 0));
918 lcp_options *go = &lcp_gotoptions[f->unit];
969 ADDCISHORT(CI_MRU, go->neg_mru && go->mru != PPP_MRU, go->mru);
970 ADDCILONG(CI_ASYNCMAP, go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF,
971 go->asyncmap);
972 /* go->chap_mdtype always points to a useful value */
973 ADDCICHAP(CI_AUTHTYPE, go->neg_chap || go->neg_mschap || go->neg_mschapv2,
974 PPP_CHAP, go->chap_mdtype);
975 ADDCISHORT(CI_AUTHTYPE, !(go->neg_chap || go->neg_mschap ||
976 go->neg_mschapv2) && go->neg_upap, PPP_PAP);
978 if (f->state == ACKSENT && go->neg_lqr && go->lqr_period == 0 &&
980 go->lqr_period = 500;
981 ADDCILQR(CI_QUALITY, go->neg_lqr, go->lqr_period);
982 ADDCICHAR(CI_CALLBACK, go->neg_cbcp, CBOP_CBCP);
983 ADDCILONG(CI_MAGICNUMBER, go->neg_magicnumber, go->magicnumber);
984 ADDCIVOID(CI_PCOMPRESSION, go->neg_pcompression);
985 ADDCIVOID(CI_ACCOMPRESSION, go->neg_accompression);
986 ADDCICHAR(CI_FCSALTERN, (go->neg_fcs && go->fcs_type != 0), go->fcs_type);
987 ADDCIENDP(CI_EPDISC, go->neg_endpoint, go->endpoint.class,
988 go->endpoint.value, go->endpoint.length);
990 ADDCIVOID(CI_MUXING, go->pppmux);
992 ADDCISHORT(CI_MRRU, go->neg_mrru, go->mrru);
993 ADDCIVOID(CI_SSNHF, go->neg_ssnhf);
1016 lcp_options *go = &lcp_gotoptions[f->unit];
1147 ACKCISHORT(CI_MRU, go->neg_mru && go->mru != PPP_MRU, go->mru);
1148 ACKCILONG(CI_ASYNCMAP, go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF,
1149 go->asyncmap);
1150 /* go->chap_mdtype always points to a useful value */
1151 ACKCICHAP(CI_AUTHTYPE, go->neg_chap || go->neg_mschap || go->neg_mschapv2,
1152 PPP_CHAP, go->chap_mdtype);
1153 ACKCIAUTH(CI_AUTHTYPE, !(go->neg_chap || go->neg_mschap ||
1154 go->neg_mschapv2) && go->neg_upap, PPP_PAP);
1155 ACKCILQR(CI_QUALITY, go->neg_lqr, go->lqr_period);
1156 ACKCICHAR(CI_CALLBACK, go->neg_cbcp, CBOP_CBCP);
1157 ACKCILONG(CI_MAGICNUMBER, go->neg_magicnumber, go->magicnumber);
1158 ACKCIVOID(CI_PCOMPRESSION, go->neg_pcompression);
1159 ACKCIVOID(CI_ACCOMPRESSION, go->neg_accompression);
1160 ACKCICHAR(CI_FCSALTERN, go->neg_fcs, go->fcs_type);
1161 ACKCIENDP(CI_EPDISC, go->neg_endpoint, go->endpoint.class,
1162 go->endpoint.value, go->endpoint.length);
1164 ACKCIVOID(CI_MUXING, go->pppmux);
1165 if (go->pppmux)
1166 go->pppmux = ao->pppmux;
1168 ACKCISHORT(CI_MRRU, go->neg_mrru, go->mrru);
1169 ACKCIVOID(CI_SSNHF, go->neg_ssnhf);
1198 lcp_options *go = &lcp_gotoptions[f->unit];
1209 try = *go;
1217 if (go->neg && \
1227 if (go->neg && \
1238 if (go->neg && \
1249 if (go->neg && \
1260 if (go->neg && \
1272 if (go->neg && \
1290 if (go->neg_mru && go->mru != PPP_MRU) {
1301 if (go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF) {
1303 try.asyncmap = go->asyncmap | cilong;
1312 if ((go->neg_chap || go->neg_mschap || go->neg_mschapv2 || go->neg_upap) &&
1320 nak_auth_orig = (go->neg_chap || go->neg_mschap || go->neg_mschapv2) ?
1324 no.neg_upap = go->neg_upap;
1330 if (!go->neg_chap && !go->neg_mschap && !go->neg_mschapv2)
1338 switch (go->chap_mdtype) {
1340 no.neg_chap = go->neg_chap;
1344 no.neg_mschap = go->neg_mschap;
1348 no.neg_mschapv2 = go->neg_mschapv2;
1371 if (go->neg_chap || go->neg_mschap || go->neg_mschapv2) {
1372 switch (go->chap_mdtype) {
1402 * If he suggests zero and go->neg_fcs is true and
1412 else if (cilong == 0 && go->neg_fcs && wo->lqr_period != 0)
1446 NAKCICHAR(CI_FCSALTERN, neg_fcs, try.fcs_type = go->fcs_type & cichar;);
1463 if (go->neg_mrru) {
1501 if ((go->neg_mru && go->mru != PPP_MRU)
1512 if ((go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF)
1523 if (go->neg_chap || no.neg_chap ||
1524 go->neg_mschap || no.neg_mschap ||
1525 go->neg_mschapv2 || no.neg_mschapv2 ||
1526 go->neg_upap || no.neg_upap)
1530 if (go->neg_magicnumber || no.neg_magicnumber ||
1535 if (go->neg_pcompression || no.neg_pcompression
1540 if (go->neg_accompression || no.neg_accompression
1545 if (go->neg_lqr || no.neg_lqr || cilen != CILEN_LQR)
1549 if (go->neg_mrru || no.neg_mrru || cilen != CILEN_SHORT)
1553 if (go->neg_ssnhf || no.neg_ssnhf || cilen != CILEN_VOID)
1558 if (go->neg_endpoint || no.neg_endpoint || cilen < CILEN_CHAR)
1562 if (go->neg_fcs || no.neg_fcs || cilen < CILEN_CHAR)
1567 if (go->pppmux || no.pppmux || cilen < CILEN_VOID)
1593 *go = try;
1619 lcp_options *go = &lcp_gotoptions[f->unit];
1625 try = *go;
1633 if (go->neg && \
1642 if (go->neg && \
1655 if (go->neg && \
1668 if (go->neg && \
1683 if (go->neg && \
1696 if (go->neg && \
1710 if (go->neg && \
1723 if (go->neg && \
1747 REJCISHORT(CI_MRU, neg_mru, go->mru);
1748 REJCILONG(CI_ASYNCMAP, neg_asyncmap, go->asyncmap);
1755 if ((go->neg_chap || go->neg_mschap || go->neg_mschapv2) &&
1764 if (cishort != PPP_CHAP || cichar != go->chap_mdtype)
1787 if (!go->neg_chap && !go->neg_mschap && !go->neg_mschapv2) {
1790 REJCILQR(CI_QUALITY, neg_lqr, go->lqr_period);
1792 REJCILONG(CI_MAGICNUMBER, neg_magicnumber, go->magicnumber);
1795 REJCICHAR(CI_FCSALTERN, neg_fcs, go->fcs_type);
1799 REJCIENDP(CI_EPDISC, neg_endpoint, go->endpoint.class,
1800 go->endpoint.value, go->endpoint.length);
1801 REJCISHORT(CI_MRRU, neg_mrru, go->mrru);
1813 *go = try;
1838 lcp_options *go = &lcp_gotoptions[f->unit];
2107 if ((cilong == 0 && go->lqr_period == 0) ||
2127 if (!(ao->neg_magicnumber || go->neg_magicnumber)) {
2153 while (go->neg_magicnumber && cilong == go->magicnumber) {
2393 lcp_options *go = &lcp_gotoptions[f->unit];
2397 if (!go->neg_magicnumber)
2398 go->magicnumber = 0;
2417 mru = (go->neg_mru? MAX(wo->mru, go->mru): PPP_MRU);
2421 (lax_recv? 0: go->neg_asyncmap? go->asyncmap: 0xffffffff),
2422 go->neg_pcompression, go->neg_accompression);
2425 ppp_recv_fcs(f->unit, go->neg_fcs ? go->fcs_type : FCSALT_16);
2429 ppp_recv_muxoption(f->unit, go->pppmux);
2454 lcp_options *go = &lcp_gotoptions[f->unit];
2463 (go->neg_asyncmap? go->asyncmap: 0xffffffff),
2464 go->neg_pcompression, go->neg_accompression);