Home | History | Annotate | Download | only in src

Lines Matching refs:opt

672   struct fsm_opt *opt, nak;
677 while (end - cp >= (int)sizeof(opt->hdr)) {
678 if ((opt = fsm_readopt(&cp)) == NULL)
681 snprintf(request, sizeof request, " %s[%d]", protoname(opt->hdr.id),
682 opt->hdr.len);
684 switch (opt->hdr.id) {
687 ua_ntohs(opt->data, &mru);
695 lcp->his_reject &= ~(1 << opt->hdr.id);
713 fsm_ack(dec, opt);
717 fsm_rej(dec, opt);
718 lcp->my_reject |= (1 << opt->hdr.id);
725 lcp->his_reject &= ~(1 << opt->hdr.id);
737 lcp->his_reject |= (1 << opt->hdr.id);
745 ua_ntohs(opt->data, &mru);
775 fsm_ack(dec, opt);
794 lcp->his_reject |= (1 << opt->hdr.id);
803 ua_ntohl(opt->data, &accmap);
809 fsm_ack(dec, opt);
815 lcp->his_reject |= (1 << opt->hdr.id);
821 ua_ntohs(opt->data, &proto);
822 chap_type = opt->hdr.len == 5 ? opt->data[2] : 0;
831 if (opt->hdr.len == 4 && IsAccepted(lcp->cfg.pap)) {
834 fsm_ack(dec, opt);
836 lcp->my_reject |= (1 << opt->hdr.id);
837 fsm_rej(dec, opt);
851 fsm_ack(dec, opt);
865 lcp->my_reject |= (1 << opt->hdr.id);
866 fsm_rej(dec, opt);
875 lcp->my_reject |= (1 << opt->hdr.id);
876 fsm_rej(dec, opt);
890 lcp->his_reject |= (1 << opt->hdr.id);
922 lcp->his_reject |= (1 << opt->hdr.id);
927 lcp->his_reject |= (1 << opt->hdr.id);
933 lcp->his_reject |= (1 << opt->hdr.id);
939 memcpy(&req, opt, sizeof req);
945 fsm_rej(dec, opt);
946 lcp->my_reject |= (1 << opt->hdr.id);
952 fsm_ack(dec, opt);
959 lcp->his_reject |= (1 << opt->hdr.id);
965 ua_ntohl(opt->data, &magic);
978 fsm_nak(dec, opt);
985 fsm_ack(dec, opt);
988 lcp->my_reject |= (1 << opt->hdr.id);
989 fsm_rej(dec, opt);
999 lcp->his_reject |= (1 << opt->hdr.id);
1011 fsm_ack(dec, opt);
1015 fsm_nak(dec, opt);
1017 fsm_rej(dec, opt);
1018 lcp->my_reject |= (1 << opt->hdr.id);
1025 lcp->his_reject |= (1 << opt->hdr.id);
1036 fsm_ack(dec, opt);
1040 fsm_nak(dec, opt);
1042 fsm_rej(dec, opt);
1043 lcp->my_reject |= (1 << opt->hdr.id);
1050 lcp->his_reject |= (1 << opt->hdr.id);
1066 if (opt->hdr.len == 2) {
1070 op = (int)opt->data[0];
1071 sz = opt->hdr.len - 3;
1079 opt->data + 1);
1083 opt->data + 1);
1087 opt->data + 1);
1091 opt->data + 1);
1105 fsm_rej(dec, opt);
1106 opt->hdr.id);
1108 nak.hdr.id = opt->hdr.id;
1113 E164ok(&p->dl->cfg.callback, opt->data + 1, sz))) {
1119 memcpy(lcp->his_callback.msg, opt->data + 1, sz);
1121 fsm_ack(dec, opt);
1138 lcp->my_reject |= (1 << opt->hdr.id);
1139 fsm_rej(dec, opt);
1160 lcp->his_reject |= (1 << opt->hdr.id);
1178 fsm_ack(dec, opt);
1180 fsm_rej(dec, opt);
1181 lcp->my_reject |= (1 << opt->hdr.id);
1191 lcp->his_reject |= (1 << opt->hdr.id);
1200 mp_Enddisc(opt->data[0], opt->data + 1, opt->hdr.len - 3));
1205 fsm_rej(dec, opt);
1206 lcp->my_reject |= (1 << opt->hdr.id);
1208 lcp->my_reject |= (1 << opt->hdr.id);
1209 fsm_rej(dec, opt);
1210 } else if (opt->hdr.len < sizeof p->dl->peer.enddisc.address + 3 &&
1211 opt->data[0] <= MAX_ENDDISC_CLASS) {
1212 p->dl->peer.enddisc.class = opt->data[0];
1213 p->dl->peer.enddisc.len = opt->hdr.len - 3;
1214 memcpy(p->dl->peer.enddisc.address, opt->data + 1, opt->hdr.len - 3);
1215 p->dl->peer.enddisc.address[opt->hdr.len - 3] = '\0';
1217 fsm_ack(dec, opt);
1219 if (opt->data[0] > MAX_ENDDISC_CLASS)
1221 opt->data[0]);
1225 fsm_rej(dec, opt);
1226 lcp->my_reject |= (1 << opt->hdr.id);
1232 lcp->his_reject |= (1 << opt->hdr.id);
1239 if (sz + 2 > opt->hdr.len)
1240 sz = opt->hdr.len - 2;
1244 sprintf(desc+(pos<<1)+1, "%02x", opt->data[pos]);
1249 fsm_rej(dec, opt);
1250 lcp->my_reject |= (1 << opt->hdr.id);