eth_skb_pkt_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… eth_skb_pkt_type(9) β€” a Kernel API Manual moment

okay so bestie, welcome to eth_skb_pkt_type, the tiny function that does one specific little job and honestly? it ate. it's from the Kernel API Manual, so you know it's official 🌸


✨ NAME ✨

eth_skb_pkt_type β€” literally just "assign packet type if destination address does not match" πŸŽ€


🌈 SYNOPSIS 🌈

void eth_skb_pkt_type (struct sk_buff *skb , const struct net_device *dev );

look at that signature. gorgeous. no return value, it just goes in there and does the thing, no notes πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” this one gets assigned a packet type if the address doesn't match the dev address. main character energy fr πŸ’–
  • dev β€” the network device you're comparing the packet address against. it's the reference point, the vibe check baseline 🫢

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: if the destination MAC address of the packet does not match the network device address, eth_skb_pkt_type assigns an appropriate packet type. that's it. that's the whole personality 😌✨

no match? cute, you get a packet type. periodt.


πŸ‘‘ SEE ALSO πŸ‘‘

all of these live in the kernel file ./include/linux/etherdevice.h β€” go say hi to the whole friend group πŸ’«


bestie reminder: every single one of those is a (9) manpage in its own right, so if you're confused about one of them it's a whole read, not a footnote πŸ’€

✨ and that's the page ✨ β€” it ships out of ./include/linux, dated October 2026, part of the Kernel API Manual. stay slay, go read your manpages, mwah πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from