Lines Matching refs:opt
181 (*algorithm[ccp->in.algorithm]->Disp)(&ccp->in.opt));
184 o = &ccp->out.opt;
279 ccp->in.opt.hdr.id = -1;
280 ccp->out.opt = NULL;
354 o = &ccp->out.opt;
355 alloc = ccp->his_reject == 0 && ccp->out.opt == NULL;
364 for (o = &ccp->out.opt; *o != NULL; o = &(*o)->next)
462 while (ccp->out.opt) {
463 next = ccp->out.opt->next;
464 free(ccp->out.opt);
465 ccp->out.opt = next;
483 while (ccp->out.opt) {
484 next = ccp->out.opt->next;
485 free(ccp->out.opt);
486 ccp->out.opt = next;
527 (fp->bundle, &ccp->in.opt);
537 o = &ccp->out.opt;
573 struct fsm_opt *opt;
578 while (end >= cp + sizeof(opt->hdr)) {
579 if ((opt = fsm_readopt(&cp)) == NULL)
583 if (algorithm[f]->id == opt->hdr.id)
586 disp = f == -1 ? "" : (*algorithm[f]->Disp)(opt);
590 log_Printf(LogCCP, " %s[%d] %s\n", protoname(opt->hdr.id),
591 opt->hdr.len, disp);
596 ccp->my_reject |= (1 << opt->hdr.id);
597 fsm_rej(dec, opt);
607 memcpy(&ccp->in.opt, opt, opt->hdr.len);
608 switch ((*algorithm[f]->i.Set)(fp->bundle, &ccp->in.opt, &ccp->cfg)) {
610 fsm_rej(dec, &ccp->in.opt);
613 fsm_nak(dec, &ccp->in.opt);
616 fsm_ack(dec, &ccp->in.opt);
617 ccp->his_proto = opt->hdr.id;
622 fsm_rej(dec, opt);
626 for (o = ccp->out.opt; o != NULL; o = o->next)
627 if (o->val.hdr.id == opt->hdr.id)
633 memcpy(&o->val, opt, opt->hdr.len);
638 ccp->his_reject |= (1 << opt->hdr.id);
650 ccp->his_reject |= (1 << opt->hdr.id);