Lines Matching refs:ipcp

25 	return ppp_fsm_input(&ctx->ipcp.fsm, PPP_IPCP, pkt);  in ipcp_handle()
42 return ipcp_add_address(ctx, pkt, &ctx->ipcp.my_options.address); in ipcp_add_ip_address()
47 return ipcp_add_address(ctx, pkt, &ctx->ipcp.my_options.dns1_address); in ipcp_add_dns1()
52 return ipcp_add_address(ctx, pkt, &ctx->ipcp.my_options.dns2_address); in ipcp_add_dns2()
81 &ctx->ipcp.my_options.address); in ipcp_ack_ip_address()
88 &ctx->ipcp.my_options.dns1_address); in ipcp_ack_dns1()
95 &ctx->ipcp.my_options.dns2_address); in ipcp_ack_dns2()
112 &ctx->ipcp.my_options.address); in ipcp_nak_ip_address()
119 &ctx->ipcp.my_options.dns1_address); in ipcp_nak_dns1()
126 &ctx->ipcp.my_options.dns2_address); in ipcp_nak_dns2()
217 CONTAINER_OF(fsm, struct ppp_context, ipcp.fsm); in ipcp_server_nak_ip_address()
232 CONTAINER_OF(fsm, struct ppp_context, ipcp.fsm); in ipcp_server_nak_dns1_address()
245 CONTAINER_OF(fsm, struct ppp_context, ipcp.fsm); in ipcp_server_nak_dns2_address()
275 CONTAINER_OF(fsm, struct ppp_context, ipcp.fsm); in ipcp_config_info_req()
303 memcpy(&ctx->ipcp.peer_options.address, &data.addr, sizeof(data.addr)); in ipcp_config_info_req()
312 ipcp.fsm); in ipcp_set_dns_servers()
318 .sin_addr = ctx->ipcp.my_options.dns1_address in ipcp_set_dns_servers()
323 .sin_addr = ctx->ipcp.my_options.dns2_address in ipcp_set_dns_servers()
355 ipcp.fsm); in ipcp_config_info_nack()
363 if (!ctx->ipcp.my_options.address.s_addr) { in ipcp_config_info_nack()
374 ppp_fsm_lower_down(&ctx->ipcp.fsm); in ipcp_lower_down()
379 ppp_fsm_lower_up(&ctx->ipcp.fsm); in ipcp_lower_up()
384 ppp_fsm_open(&ctx->ipcp.fsm); in ipcp_open()
389 ppp_fsm_close(&ctx->ipcp.fsm, reason); in ipcp_close()
395 ipcp.fsm); in ipcp_up()
404 addr_str = net_addr_ntop(AF_INET, &ctx->ipcp.my_options.address, in ipcp_up()
408 &ctx->ipcp.my_options.address, in ipcp_up()
428 ipcp.fsm); in ipcp_down()
431 if (ctx->ipcp.my_options.address.s_addr) { in ipcp_down()
433 ctx->iface, &ctx->ipcp.my_options.address); in ipcp_down()
435 memset(&ctx->ipcp.my_options.address, 0, in ipcp_down()
436 sizeof(ctx->ipcp.my_options.address)); in ipcp_down()
437 memset(&ctx->ipcp.my_options.dns1_address, 0, in ipcp_down()
438 sizeof(ctx->ipcp.my_options.dns1_address)); in ipcp_down()
439 memset(&ctx->ipcp.my_options.dns2_address, 0, in ipcp_down()
440 sizeof(ctx->ipcp.my_options.dns2_address)); in ipcp_down()
454 ipcp.fsm); in ipcp_finished()
473 &ctx->ipcp.fsm); in ipcp_init()
475 memset(&ctx->ipcp.fsm, 0, sizeof(ctx->ipcp.fsm)); in ipcp_init()
477 ppp_fsm_init(&ctx->ipcp.fsm, PPP_IPCP); in ipcp_init()
479 ppp_fsm_name_set(&ctx->ipcp.fsm, ppp_proto2str(PPP_IPCP)); in ipcp_init()
481 ctx->ipcp.fsm.my_options.info = ipcp_my_options; in ipcp_init()
482 ctx->ipcp.fsm.my_options.data = ctx->ipcp.my_options_data; in ipcp_init()
483 ctx->ipcp.fsm.my_options.count = ARRAY_SIZE(ipcp_my_options); in ipcp_init()
485 ctx->ipcp.fsm.cb.up = ipcp_up; in ipcp_init()
486 ctx->ipcp.fsm.cb.down = ipcp_down; in ipcp_init()
487 ctx->ipcp.fsm.cb.finished = ipcp_finished; in ipcp_init()
488 ctx->ipcp.fsm.cb.proto_reject = ipcp_proto_reject; in ipcp_init()
489 ctx->ipcp.fsm.cb.config_info_add = ipcp_config_info_add; in ipcp_init()
490 ctx->ipcp.fsm.cb.config_info_req = ipcp_config_info_req; in ipcp_init()
491 ctx->ipcp.fsm.cb.config_info_nack = ipcp_config_info_nack; in ipcp_init()
492 ctx->ipcp.fsm.cb.config_info_rej = ppp_my_options_parse_conf_rej; in ipcp_init()