Lines Matching defs:f
178 fsm *f = &ipcp_fsm[unit];
182 f->unit = unit;
183 f->protocol = PPP_IPCP;
184 f->callbacks = &ipcp_callbacks;
280 ipcp_resetci(fsm *f)
282 ipcp_options *wo = &ipcp_wantoptions[f->unit];
284 wo->req_addr = wo->neg_addr && ipcp_allowoptions[f->unit].neg_addr;
294 ipcp_gotoptions[f->unit] = *wo;
295 cis_received[f->unit] = 0;
303 ipcp_cilen(fsm *f)
305 ipcp_options *go = &ipcp_gotoptions[f->unit];
306 ipcp_options *wo = &ipcp_wantoptions[f->unit];
307 ipcp_options *ho = &ipcp_hisoptions[f->unit];
324 if (cis_received[f->unit] == 0) {
348 ipcp_addci(fsm *f, u_char *ucp, int *lenp)
350 ipcp_options *go = &ipcp_gotoptions[f->unit];
425 ipcp_ackci(fsm *f, u_char *p, int len)
427 ipcp_options *go = &ipcp_gotoptions[f->unit];
545 ipcp_nakci(fsm *f, u_char *p, int len)
547 ipcp_options *go = &ipcp_gotoptions[f->unit];
734 if (f->state != LS_OPENED) {
750 ipcp_rejci(fsm *f, u_char *p, int len)
752 ipcp_options *go = &ipcp_gotoptions[f->unit];
850 if (f->state != LS_OPENED) {
869 ipcp_reqci(fsm *f, u_char *inp/* Requested CIs */,int *len/* Length of requested CIs */,int reject_if_disagree)
871 ipcp_options *wo = &ipcp_wantoptions[f->unit];
872 ipcp_options *ho = &ipcp_hisoptions[f->unit];
873 ipcp_options *ao = &ipcp_allowoptions[f->unit];
875 ipcp_options *go = &ipcp_gotoptions[f->unit];
892 cis_received[f->unit] = 1;
1220 ipcp_up(fsm *f)
1223 ipcp_options *ho = &ipcp_hisoptions[f->unit];
1224 ipcp_options *go = &ipcp_gotoptions[f->unit];
1225 ipcp_options *wo = &ipcp_wantoptions[f->unit];
1227 np_up(f->unit, PPP_IP);
1239 ipcp_close(f->unit, "Could not determine remote IP address");
1244 ipcp_close(f->unit, "Could not determine local IP address");
1255 if (!auth_ip_addr(f->unit, ho->hisaddr)) {
1258 ipcp_close(f->unit, "Unauthorized remote IP address");
1263 sifvjcomp(f->unit, ho->neg_vj, ho->cflag, ho->maxslotindex);
1270 if (!sifaddr(f->unit, go->ouraddr, ho->hisaddr, mask, go->dnsaddr[0], go->dnsaddr[1])) {
1272 ipcp_close(f->unit, "Interface configuration failed");
1277 if (!sifup(f->unit)) {
1279 ipcp_close(f->unit, "Interface configuration failed");
1283 sifnpmode(f->unit, PPP_IP, NPMODE_PASS);
1286 if (ipcp_wantoptions[f->unit].default_route) {
1287 if (sifdefaultroute(f->unit, go->ouraddr, ho->hisaddr)) {
1288 default_route_set[f->unit] = 1;
1310 ipcp_down(fsm *f)
1313 np_down(f->unit, PPP_IP);
1314 sifvjcomp(f->unit, 0, 0, 0);
1316 sifdown(f->unit);
1317 ipcp_clear_addrs(f->unit);
1343 ipcp_finished(fsm *f)
1345 np_finished(f->unit, PPP_IP);