Lines Matching full:iid
32 uint8_t *iid = ctx->ipv6cp.my_options.iid; in ipv6cp_add_iid() local
33 size_t iid_len = sizeof(ctx->ipv6cp.my_options.iid); in ipv6cp_add_iid()
38 memcpy(iid, linkaddr->addr, iid_len); in ipv6cp_add_iid()
41 memcpy(iid, linkaddr->addr, 3); in ipv6cp_add_iid()
42 iid[3] = 0xff; in ipv6cp_add_iid()
43 iid[4] = 0xfe; in ipv6cp_add_iid()
44 memcpy(iid + 5, linkaddr->addr + 3, 3); in ipv6cp_add_iid()
48 return net_pkt_write(pkt, iid, iid_len); in ipv6cp_add_iid()
54 uint8_t *req_iid = ctx->ipv6cp.my_options.iid; in ipv6cp_ack_iid()
150 memcpy(ctx->ipv6cp.peer_options.iid, data.iface_id, in ipv6cp_config_info_req()
168 NET_ERR("IID was not acked"); in ipv6cp_config_info_ack()
175 uint8_t *iid = ctx->ipv6cp.my_options.iid; in ipv6cp_config_info_ack() local
176 size_t iid_len = sizeof(ctx->ipv6cp.my_options.iid); in ipv6cp_config_info_ack()
179 net_sprint_ll_addr_buf(iid, iid_len, in ipv6cp_config_info_ack()
209 static void setup_iid_address(uint8_t *iid, struct in6_addr *addr) in setup_iid_address() argument
215 memcpy(&addr->s6_addr[8], iid, PPP_INTERFACE_IDENTIFIER_LEN); in setup_iid_address()
221 static void add_iid_address(struct net_if *iface, uint8_t *iid) in add_iid_address() argument
226 setup_iid_address(iid, &addr); in add_iid_address()
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()
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()