Home
last modified time | relevance | path

Searched refs:linkaddr (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/subsys/net/l2/ppp/
Dipv6cp.c34 struct net_linkaddr *linkaddr; in ipv6cp_add_iid() local
36 linkaddr = net_if_get_link_addr(ctx->iface); in ipv6cp_add_iid()
37 if (linkaddr->len == 8) { in ipv6cp_add_iid()
38 memcpy(iid, linkaddr->addr, iid_len); in ipv6cp_add_iid()
40 NET_ASSERT(linkaddr->len >= 6); in ipv6cp_add_iid()
41 memcpy(iid, linkaddr->addr, 3); in ipv6cp_add_iid()
44 memcpy(iid + 5, linkaddr->addr + 3, 3); in ipv6cp_add_iid()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154.c654 ctx->linkaddr.type = NET_LINK_IEEE802154; in ieee802154_init()
655 ctx->linkaddr.len = IEEE802154_EXT_ADDR_LENGTH; in ieee802154_init()
656 memcpy(ctx->linkaddr.addr, eui64_be, IEEE802154_EXT_ADDR_LENGTH); in ieee802154_init()
657 net_if_set_link_addr(iface, ctx->linkaddr.addr, ctx->linkaddr.len, ctx->linkaddr.type); in ieee802154_init()
Dieee802154_mgmt.c241 net_if_set_link_addr(iface, ctx->linkaddr.addr, ctx->linkaddr.len, ctx->linkaddr.type); in update_net_if_link_addr()
251 ctx->linkaddr.len = IEEE802154_EXT_ADDR_LENGTH; in set_linkaddr_to_ext_addr()
252 sys_memcpy_swap(ctx->linkaddr.addr, ctx->ext_addr, IEEE802154_EXT_ADDR_LENGTH); in set_linkaddr_to_ext_addr()
273 ctx->linkaddr.len = IEEE802154_SHORT_ADDR_LENGTH; in set_association()
275 memcpy(ctx->linkaddr.addr, &short_addr_be, IEEE802154_SHORT_ADDR_LENGTH); in set_association()
/Zephyr-latest/include/zephyr/net/
Dieee802154.h299 struct net_linkaddr_storage linkaddr; member
/Zephyr-latest/subsys/net/l2/virtual/
Dvirtual.c185 static void random_linkaddr(uint8_t *linkaddr, size_t len) in random_linkaddr() argument
187 sys_rand_get(linkaddr, len); in random_linkaddr()
189 linkaddr[0] |= 0x02; /* force LAA bit */ in random_linkaddr()
/Zephyr-latest/subsys/net/l2/ethernet/
Dbridge.c234 static void random_linkaddr(uint8_t *linkaddr, size_t len) in random_linkaddr() argument
236 sys_rand_get(linkaddr, len); in random_linkaddr()
/Zephyr-latest/tests/net/ieee802154/l2/src/
Dieee802154_test.c275 if (ctx->linkaddr.len != IEEE802154_SHORT_ADDR_LENGTH) { in tear_down_short_addr()