Lines Matching refs:f

358     fsm *f = &ipv6cp_fsm[unit];  local
362 f->unit = unit;
363 f->protocol = PPP_IPV6CP;
364 f->callbacks = &ipv6cp_callbacks;
455 ipv6cp_resetci(f) in ipv6cp_resetci() argument
456 fsm *f; in ipv6cp_resetci()
458 ipv6cp_options *wo = &ipv6cp_wantoptions[f->unit];
459 ipv6cp_options *go = &ipv6cp_gotoptions[f->unit];
461 wo->req_ifaceid = wo->neg_ifaceid && ipv6cp_allowoptions[f->unit].neg_ifaceid;
476 ipv6cp_cilen(f) in ipv6cp_cilen() argument
477 fsm *f; in ipv6cp_cilen()
479 ipv6cp_options *go = &ipv6cp_gotoptions[f->unit];
493 ipv6cp_addci(f, ucp, lenp) in ipv6cp_addci() argument
494 fsm *f; in ipv6cp_addci()
498 ipv6cp_options *go = &ipv6cp_gotoptions[f->unit];
541 ipv6cp_ackci(f, p, len) in ipv6cp_ackci() argument
542 fsm *f; in ipv6cp_ackci()
546 ipv6cp_options *go = &ipv6cp_gotoptions[f->unit];
612 ipv6cp_nakci(f, p, len) in ipv6cp_nakci() argument
613 fsm *f; in ipv6cp_nakci()
617 ipv6cp_options *go = &ipv6cp_gotoptions[f->unit];
732 if (f->state != OPENED)
747 ipv6cp_rejci(f, p, len) in ipv6cp_rejci() argument
748 fsm *f; in ipv6cp_rejci()
752 ipv6cp_options *go = &ipv6cp_gotoptions[f->unit];
804 if (f->state != OPENED)
822 ipv6cp_reqci(f, p, lenp, dont_nak) in ipv6cp_reqci() argument
823 fsm *f; in ipv6cp_reqci()
828 ipv6cp_options *wo = &ipv6cp_wantoptions[f->unit];
829 ipv6cp_options *ho = &ipv6cp_hisoptions[f->unit];
830 ipv6cp_options *ao = &ipv6cp_allowoptions[f->unit];
831 ipv6cp_options *go = &ipv6cp_gotoptions[f->unit];
1134 ipv6cp_up(f) in ipv6cp_up() argument
1135 fsm *f; in ipv6cp_up()
1137 ipv6cp_options *ho = &ipv6cp_hisoptions[f->unit];
1138 ipv6cp_options *go = &ipv6cp_gotoptions[f->unit];
1139 ipv6cp_options *wo = &ipv6cp_wantoptions[f->unit];
1152 ipv6cp_close(f->unit, "Could not determine remote LL address");
1157 ipv6cp_close(f->unit, "Could not determine local LL address");
1162 ipv6cp_close(f->unit, "local and remote LL addresses are equal");
1169 if (sif6comp(f->unit, ho->neg_vj) != 1) {
1170 ipv6cp_close(f->unit, "Could not enable TCP compression");
1189 ipv6cp_clear_addrs(f->unit, go->ourid, ho->hisid);
1192 if (!sif6addr(f->unit, go->ourid, ho->hisid)) {
1195 ipv6cp_close(f->unit, "Interface configuration failed");
1201 if (sifnpmode(f->unit, PPP_IPV6, NPMODE_PASS) != 1) {
1202 ipv6cp_close(f->unit, "Interface configuration failed");
1211 if (!sif6addr(f->unit, go->ourid, ho->hisid)) {
1214 ipv6cp_close(f->unit, "Interface configuration failed");
1220 if (!sif6up(f->unit)) {
1223 ipv6cp_close(f->unit, "Interface configuration failed");
1227 if (!sifup(f->unit)) {
1230 ipv6cp_close(f->unit, "Interface configuration failed");
1235 if (!sif6addr(f->unit, go->ourid, ho->hisid)) {
1238 ipv6cp_close(f->unit, "Interface configuration failed");
1242 if (sifnpmode(f->unit, PPP_IPV6, NPMODE_PASS) != 1) {
1243 ipv6cp_close(f->unit, "Interface configuration failed");
1251 np_up(f->unit, PPP_IPV6);
1275 ipv6cp_down(f) in ipv6cp_down() argument
1276 fsm *f; in ipv6cp_down()
1279 update_link_stats(f->unit);
1282 np_down(f->unit, PPP_IPV6);
1285 if (sif6comp(f->unit, 0) != 1) {
1296 if (sifnpmode(f->unit, PPP_IPV6, NPMODE_QUEUE) != 1) {
1301 if (sifnpmode(f->unit, PPP_IPV6, NPMODE_ERROR) != 1) {
1307 if (sif6down(f->unit) != 1)
1310 if (sifdown(f->unit) != 1)
1314 ipv6cp_clear_addrs(f->unit,
1315 ipv6cp_gotoptions[f->unit].ourid,
1316 ipv6cp_hisoptions[f->unit].hisid);
1318 if (sifdown(f->unit) != 1)
1350 ipv6cp_finished(f) in ipv6cp_finished() argument
1351 fsm *f; in ipv6cp_finished()
1353 np_finished(f->unit, PPP_IPV6);