STRUCT IEEE802154_ADDR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ieee802154_addr πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this is the page for struct ieee802154_addr, aka the IEEE802.15.4 device address πŸŽ€. it's giving "tiny struct, big responsibilities" and honestly we're obsessed. let's get into it πŸ’–


✨ SYNOPSIS ✨

struct ieee802154_addr {
    u8 mode;
    __le16 pan_id;
    union {
      __le16 short_addr;
      __le64 extended_addr;
    };
 };

look at her. neat, tidy, doing exactly what she needs to do 🫢


🌸 Members 🌸

  • mode β€” the address mode, straight out of the frame header πŸ‘‘. it can be one of these three, no cap:
    • IEEE802154_ADDR_NONE
    • IEEE802154_ADDR_SHORT
    • IEEE802154_ADDR_LONG
  • pan_id β€” the PAN ID that this address belongs to πŸ’«. that's her home base.
  • {unnamed_union} β€” it's anonymous, it has no name, it simply exists ✨ main character energy fr fr.
  • short_addr β€” the address, but only when mode is IEEE802154_ADDR_SHORT. little and cute πŸ“
  • extended_addr β€” the address when mode is IEEE802154_ADDR_LONG. big girl, 64 bits, ate πŸ’…
ngl the union is the whole vibe check here β€” which member is "the" address depends entirely on what mode says, so read mode first before you go grabbing addresses. iykyk πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, in Kernel file ./include/net/cfg802154.h:


mwah πŸ’œ that's the whole page!! this one lives under ./include/net in the kernel tree, dated October 2026, and yes β€” the page's own name is struct ieee802154_addr(9), so now you know it, slay 🌈⭐ 🧚

πŸ“¦ where this page comes from