Lines Matching refs:go
649 lcp_options *go = &lcp_gotoptions[f->unit]; local
654 *go = *wo;
656 go->neg_mrru = 0;
657 go->neg_ssnhf = 0;
658 go->neg_endpoint = 0;
674 lcp_options *go = &lcp_gotoptions[f->unit]; local
687 return (LENCISHORT(go->neg_mru && go->mru != DEFMRU) +
688 LENCILONG(go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF) +
689 LENCISHORT(go->neg_eap) +
690 LENCICHAP(!go->neg_eap && go->neg_chap) +
691 LENCISHORT(!go->neg_eap && !go->neg_chap && go->neg_upap) +
692 LENCILQR(go->neg_lqr) +
693 LENCICBCP(go->neg_cbcp) +
694 LENCILONG(go->neg_magicnumber) +
695 LENCIVOID(go->neg_pcompression) +
696 LENCIVOID(go->neg_accompression) +
697 LENCISHORT(go->neg_mrru) +
698 LENCIVOID(go->neg_ssnhf) +
699 (go->neg_endpoint? CILEN_CHAR + go->endpoint.length: 0));
712 lcp_options *go = &lcp_gotoptions[f->unit]; local
762 ADDCISHORT(CI_MRU, go->neg_mru && go->mru != DEFMRU, go->mru);
763 ADDCILONG(CI_ASYNCMAP, go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF,
764 go->asyncmap);
765 ADDCISHORT(CI_AUTHTYPE, go->neg_eap, PPP_EAP);
766 ADDCICHAP(CI_AUTHTYPE, !go->neg_eap && go->neg_chap, go->chap_mdtype);
767 ADDCISHORT(CI_AUTHTYPE, !go->neg_eap && !go->neg_chap && go->neg_upap,
769 ADDCILQR(CI_QUALITY, go->neg_lqr, go->lqr_period);
770 ADDCICHAR(CI_CALLBACK, go->neg_cbcp, CBCP_OPT);
771 ADDCILONG(CI_MAGICNUMBER, go->neg_magicnumber, go->magicnumber);
772 ADDCIVOID(CI_PCOMPRESSION, go->neg_pcompression);
773 ADDCIVOID(CI_ACCOMPRESSION, go->neg_accompression);
774 ADDCISHORT(CI_MRRU, go->neg_mrru, go->mrru);
775 ADDCIVOID(CI_SSNHF, go->neg_ssnhf);
776 ADDCIENDP(CI_EPDISC, go->neg_endpoint, go->endpoint.class,
777 go->endpoint.value, go->endpoint.length);
800 lcp_options *go = &lcp_gotoptions[f->unit]; local
911 ACKCISHORT(CI_MRU, go->neg_mru && go->mru != DEFMRU, go->mru);
912 ACKCILONG(CI_ASYNCMAP, go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF,
913 go->asyncmap);
914 ACKCISHORT(CI_AUTHTYPE, go->neg_eap, PPP_EAP);
915 ACKCICHAP(CI_AUTHTYPE, !go->neg_eap && go->neg_chap, go->chap_mdtype);
916 ACKCISHORT(CI_AUTHTYPE, !go->neg_eap && !go->neg_chap && go->neg_upap,
918 ACKCILQR(CI_QUALITY, go->neg_lqr, go->lqr_period);
919 ACKCICHAR(CI_CALLBACK, go->neg_cbcp, CBCP_OPT);
920 ACKCILONG(CI_MAGICNUMBER, go->neg_magicnumber, go->magicnumber);
921 ACKCIVOID(CI_PCOMPRESSION, go->neg_pcompression);
922 ACKCIVOID(CI_ACCOMPRESSION, go->neg_accompression);
923 ACKCISHORT(CI_MRRU, go->neg_mrru, go->mrru);
924 ACKCIVOID(CI_SSNHF, go->neg_ssnhf);
925 ACKCIENDP(CI_EPDISC, go->neg_endpoint, go->endpoint.class,
926 go->endpoint.value, go->endpoint.length);
956 lcp_options *go = &lcp_gotoptions[f->unit]; local
967 try = *go;
975 if (go->neg && \
985 if (go->neg && \
997 if (go->neg && \
1008 if (go->neg && \
1019 if (go->neg && \
1030 if (go->neg && \
1042 if (go->neg && \
1064 if (go->neg_mru && go->mru != DEFMRU) {
1074 if (go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF) {
1076 try.asyncmap = go->asyncmap | cilong;
1085 if ((go->neg_chap || go->neg_upap || go->neg_eap)
1090 no.neg_chap = go->neg_chap;
1091 no.neg_upap = go->neg_upap;
1092 no.neg_eap = go->neg_eap;
1097 if (go->neg_eap)
1101 else if (go->neg_chap)
1113 if (go->neg_eap) {
1116 if (CHAP_CANDIGEST(go->chap_mdtype, cichar))
1118 } else if (go->neg_chap) {
1123 if (cichar != CHAP_DIGEST(go->chap_mdtype)) {
1124 if (CHAP_CANDIGEST(go->chap_mdtype, cichar)) {
1153 if (cishort == PPP_EAP && cilen == CILEN_SHORT && go->neg_eap)
1160 if (go->neg_eap)
1162 else if (go->neg_chap)
1209 if (go->neg_mrru) {
1255 if ((go->neg_mru && go->mru != DEFMRU)
1265 if ((go->neg_asyncmap && go->asyncmap != 0xFFFFFFFF)
1270 if (go->neg_chap || no.neg_chap || go->neg_upap || no.neg_upap ||
1271 go->neg_eap || no.neg_eap)
1275 if (go->neg_magicnumber || no.neg_magicnumber ||
1280 if (go->neg_pcompression || no.neg_pcompression
1285 if (go->neg_accompression || no.neg_accompression
1290 if (go->neg_lqr || no.neg_lqr || cilen != CILEN_LQR)
1294 if (go->neg_mrru || no.neg_mrru || cilen != CILEN_SHORT)
1298 if (go->neg_ssnhf || no.neg_ssnhf || cilen != CILEN_VOID)
1303 if (go->neg_endpoint || no.neg_endpoint || cilen < CILEN_CHAR)
1323 *go = try;
1349 lcp_options *go = &lcp_gotoptions[f->unit]; local
1355 try = *go;
1363 if (go->neg && \
1372 if (go->neg && \
1385 if (go->neg && \
1400 if (go->neg && \
1413 if (go->neg && \
1427 if (go->neg && \
1440 if (go->neg && \
1458 REJCISHORT(CI_MRU, neg_mru, go->mru);
1459 REJCILONG(CI_ASYNCMAP, neg_asyncmap, go->asyncmap);
1461 if (!go->neg_eap) {
1462 REJCICHAP(CI_AUTHTYPE, neg_chap, go->chap_mdtype);
1463 if (!go->neg_chap) {
1467 REJCILQR(CI_QUALITY, neg_lqr, go->lqr_period);
1469 REJCILONG(CI_MAGICNUMBER, neg_magicnumber, go->magicnumber);
1472 REJCISHORT(CI_MRRU, neg_mrru, go->mrru);
1474 REJCIENDP(CI_EPDISC, neg_endpoint, go->endpoint.class,
1475 go->endpoint.value, go->endpoint.length);
1486 *go = try;
1509 lcp_options *go = &lcp_gotoptions[f->unit]; local
1753 if (!(ao->neg_magicnumber || go->neg_magicnumber) ||
1763 if (go->neg_magicnumber &&
1764 cilong == go->magicnumber) {
1899 lcp_options *go = &lcp_gotoptions[f->unit]; local
1903 if (!go->neg_magicnumber)
1904 go->magicnumber = 0;
1918 mru = go->neg_mru? MAX(wo->mru, go->mru): PPP_MRU;
1920 if (!(multilink && go->neg_mrru && ho->neg_mrru))
1927 (lax_recv? 0: go->neg_asyncmap? go->asyncmap: 0xffffffff),
1928 go->neg_pcompression, go->neg_accompression);
1948 lcp_options *go = &lcp_gotoptions[f->unit]; local
1956 (go->neg_asyncmap? go->asyncmap: 0xffffffff),
1957 go->neg_pcompression, go->neg_accompression);