Lines Matching refs:ipv6cp
24 return ppp_fsm_input(&ctx->ipv6cp.fsm, PPP_IPV6CP, pkt); in ipv6cp_handle()
32 uint8_t *iid = ctx->ipv6cp.my_options.iid; in ipv6cp_add_iid()
33 size_t iid_len = sizeof(ctx->ipv6cp.my_options.iid); in ipv6cp_add_iid()
54 uint8_t *req_iid = ctx->ipv6cp.my_options.iid; in ipv6cp_ack_iid()
130 CONTAINER_OF(fsm, struct ppp_context, ipv6cp.fsm); in ipv6cp_config_info_req()
150 memcpy(ctx->ipv6cp.peer_options.iid, data.iface_id, in ipv6cp_config_info_req()
174 ipv6cp.fsm); in ipv6cp_config_info_ack()
175 uint8_t *iid = ctx->ipv6cp.my_options.iid; in ipv6cp_config_info_ack()
176 size_t iid_len = sizeof(ctx->ipv6cp.my_options.iid); in ipv6cp_config_info_ack()
191 ppp_fsm_lower_down(&ctx->ipv6cp.fsm); in ipv6cp_lower_down()
196 ppp_fsm_lower_up(&ctx->ipv6cp.fsm); in ipv6cp_lower_up()
201 ppp_fsm_open(&ctx->ipv6cp.fsm); in ipv6cp_open()
206 ppp_fsm_close(&ctx->ipv6cp.fsm, reason); in ipv6cp_close()
243 ipv6cp.fsm); in ipv6cp_up()
259 add_iid_address(ctx->iface, ctx->ipv6cp.my_options.iid); in ipv6cp_up()
262 setup_iid_address(ctx->ipv6cp.peer_options.iid, &peer_addr); in ipv6cp_up()
264 peer_lladdr.addr = ctx->ipv6cp.peer_options.iid; in ipv6cp_up()
265 peer_lladdr.len = sizeof(ctx->ipv6cp.peer_options.iid); in ipv6cp_up()
299 ipv6cp.fsm); in ipv6cp_down()
314 setup_iid_address(ctx->ipv6cp.my_options.iid, &my_addr); in ipv6cp_down()
318 setup_iid_address(ctx->ipv6cp.peer_options.iid, &peer_addr); in ipv6cp_down()
320 peer_lladdr.addr = ctx->ipv6cp.peer_options.iid; in ipv6cp_down()
321 peer_lladdr.len = sizeof(ctx->ipv6cp.peer_options.iid); in ipv6cp_down()
337 net_sprint_ll_addr_buf(ctx->ipv6cp.peer_options.iid, in ipv6cp_down()
338 sizeof(ctx->ipv6cp.peer_options.iid), in ipv6cp_down()
354 ipv6cp.fsm); in ipv6cp_finished()
373 PPP_IPV6CP, &ctx->ipv6cp.fsm); in ipv6cp_init()
375 memset(&ctx->ipv6cp.fsm, 0, sizeof(ctx->ipv6cp.fsm)); in ipv6cp_init()
377 ppp_fsm_init(&ctx->ipv6cp.fsm, PPP_IPV6CP); in ipv6cp_init()
379 ppp_fsm_name_set(&ctx->ipv6cp.fsm, ppp_proto2str(PPP_IPV6CP)); in ipv6cp_init()
381 ctx->ipv6cp.fsm.my_options.info = ipv6cp_my_options; in ipv6cp_init()
382 ctx->ipv6cp.fsm.my_options.data = ctx->ipv6cp.my_options_data; in ipv6cp_init()
383 ctx->ipv6cp.fsm.my_options.count = ARRAY_SIZE(ipv6cp_my_options); in ipv6cp_init()
385 ctx->ipv6cp.fsm.cb.up = ipv6cp_up; in ipv6cp_init()
386 ctx->ipv6cp.fsm.cb.down = ipv6cp_down; in ipv6cp_init()
387 ctx->ipv6cp.fsm.cb.finished = ipv6cp_finished; in ipv6cp_init()
388 ctx->ipv6cp.fsm.cb.proto_reject = ipv6cp_proto_reject; in ipv6cp_init()
389 ctx->ipv6cp.fsm.cb.config_info_ack = ipv6cp_config_info_ack; in ipv6cp_init()
390 ctx->ipv6cp.fsm.cb.config_info_rej = ppp_my_options_parse_conf_rej; in ipv6cp_init()
391 ctx->ipv6cp.fsm.cb.config_info_add = ipv6cp_config_info_add; in ipv6cp_init()
392 ctx->ipv6cp.fsm.cb.config_info_req = ipv6cp_config_info_req; in ipv6cp_init()