ieee802154_get_fc_from_skb(9)
β¨ ieee802154_get_fc_from_skb β¨
okay bestie, quick vibe check: this is a page out of the Kernel API Manual, and it's about pulling one specific little field out of a packet. lowkey iconic, highkey niche. let's get into it π
πΈ NAME πΈ
ieee802154_get_fc_from_skb β literally just: get the frame control field out of an skb. that's the whole job. no cap.
π¦ SYNOPSIS π¦
__le16 ieee802154_get_fc_from_skb (const struct sk_buff *skb );
so it hands you back a __le16, and it takes exactly one thing: a const struct sk_buff *. simple. clean. we stan a one-argument function π«Ά
π ARGUMENTS π
skbβ the skb where the frame control field will be get from β¨ yeah, "will be get from" β the grammar is giving what it's giving, but the meaning is crystal: this is the packet you're grabbing the frame control field out of. that's it, that's the argument.
π SEE ALSO π
if you're the kind of girl who reads the whole header file (respect, honestly), this one lives in Kernel file ./include/net/mac802154.h and it keeps company with a whole ensemble cast:
enum ieee802154_hw_addr_filt_flags(9)struct ieee802154_hw_addr_filt(9)struct ieee802154_hw(9)enum ieee802154_hw_flags(9)ieee802154_skb_dst_pan(9)ieee802154_skb_src_pan(9)ieee802154_skb_is_intra_pan_addressing(9)ieee802154_be64_to_le64(9)ieee802154_le64_to_be64(9)ieee802154_le16_to_be16(9)ieee802154_be16_to_le16(9)ieee802154_alloc_hw(9)ieee802154_free_hw(9)ieee802154_register_hw(9)ieee802154_unregister_hw(9)ieee802154_rx_irqsafe(9)ieee802154_xmit_complete(9)ieee802154_xmit_error(9)ieee802154_xmit_hw_error(9)
like, that's the whole friend group right there. endianness besties, pan-id besties, hardware-lifecycle besties β everybody's invited π
fr fr tho: every single cross-reference above is worth a look if you're actually doing 802.15.4 work. iykyk π
and that's the whole page, bestie β no bugs, no warnings, no exit statuses to worry about, we love a low-drama function β¨
π cute little sign-off time π β this lil beauty comes from ./include/net, dated October 2026, and it's filed under ieee802154_get_fc_from_skb(9) in the Kernel API Manual. slay, go read some more manpages, mwah ππ¦πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms