Lines Matching refs:opt
1060 struct fsm_opt *opt, nak;
1064 while (end - cp >= (int)sizeof(opt->hdr)) {
1065 if ((opt = fsm_readopt(&cp)) == NULL)
1068 snprintf(tbuff, sizeof tbuff, " %s[%d]", protoname(opt->hdr.id),
1069 opt->hdr.len);
1071 switch (opt->hdr.id) {
1073 memcpy(&ipaddr.s_addr, opt->data, 4);
1099 ipcp->peer_reject |= (1 << opt->hdr.id);
1105 memcpy(&pcomp, opt->data, sizeof pcomp);
1113 fsm_rej(dec, opt);
1115 switch (opt->hdr.len) {
1122 fsm_ack(dec, opt);
1138 fsm_ack(dec, opt);
1160 fsm_rej(dec, opt);
1181 ipcp->peer_reject |= (1 << opt->hdr.id);
1187 memcpy(&ipaddr.s_addr, opt->data, 4);
1188 memcpy(&dstipaddr.s_addr, opt->data + 4, 4);
1194 fsm_rej(dec, opt);
1205 memcpy(&ipaddr.s_addr, opt->data, 4);
1211 ipcp->my_reject |= (1 << (opt->hdr.id - TY_ADJUST_NS));
1212 fsm_rej(dec, opt);
1215 have_ip = ipcp->ns.dns[opt->hdr.id == TY_PRIMARY_DNS ? 0 : 1];
1217 if (opt->hdr.id == TY_PRIMARY_DNS && ipaddr.s_addr != have_ip.s_addr &&
1230 nak.hdr.id = opt->hdr.id;
1239 fsm_ack(dec, opt);
1246 memcpy(&ipcp->ns.dns[opt->hdr.id == TY_PRIMARY_DNS ? 0 : 1].s_addr,
1247 opt->data, 4);
1252 ipcp->peer_reject |= (1 << (opt->hdr.id - TY_ADJUST_NS));
1259 memcpy(&ipaddr.s_addr, opt->data, 4);
1265 ipcp->cfg.ns.nbns[opt->hdr.id == TY_PRIMARY_NBNS ? 0 : 1].s_addr;
1269 ipcp->my_reject |= (1 << (opt->hdr.id - TY_ADJUST_NS));
1270 fsm_rej(dec, opt);
1275 nak.hdr.id = opt->hdr.id;
1280 fsm_ack(dec, opt);
1284 log_Printf(LogIPCP, "MS NBNS req %d - NAK??\n", opt->hdr.id);
1288 log_Printf(LogIPCP, "MS NBNS req %d - REJ??\n", opt->hdr.id);
1295 ipcp->my_reject |= (1 << opt->hdr.id);
1296 fsm_rej(dec, opt);