eth_skb_pkt_type(9)
π 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 thedevaddress. 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 π«
is_link_local_ether_addr(9)is_zero_ether_addr(9)is_multicast_ether_addr(9)is_local_ether_addr(9)is_broadcast_ether_addr(9)is_unicast_ether_addr(9)is_valid_ether_addr(9)eth_proto_is_802_3(9)eth_random_addr(9)eth_broadcast_addr(9)eth_zero_addr(9)eth_hw_addr_random(9)eth_hw_addr_crc(9)ether_addr_copy(9)eth_hw_addr_set(9)eth_hw_addr_inherit(9)ether_addr_equal(9)ether_addr_equal_64bits(9)ether_addr_equal_unaligned(9)ether_addr_equal_masked(9)ether_addr_to_u64(9)u64_to_ether_addr(9)eth_addr_dec(9)eth_addr_inc(9)eth_addr_add(9)is_etherdev_addr(9)compare_ether_header(9)eth_hw_addr_gen(9)eth_skb_pad(9)
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
- 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