eth_skb_pad(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… eth_skb_pad(9) β€” like, the Kernel API Manual page, bestie πŸ’…

okay so this is eth_skb_pad(9) from the Kernel API Manual, and it's honestly such a little glow-up function. it takes your sad under-sized Ethernet frame and pads it. that's it. that's the whole vibe. and yes it lives in the kernel β€” we're in the kernel now, stay with me 🫢


✨ NAME ✨

eth_skb_pad β€” pad a buffer up to the minimum number of octets an Ethernet frame needs πŸŽ€

✨ SYNOPSIS ✨

int eth_skb_pad (struct sk_buff *skb );

no cap, that's the whole signature. one argument, returns an int. πŸ’–

✨ ARGUMENTS ✨

  • skb β€” the buffer you want to pad, bestie. that's the one. that's the buffer. πŸ¦‹

✨ DESCRIPTION ✨

okay so picture this: an Ethernet frame should have a minimum size of 60 bytes. that's the rule. that's the standard. 60 bytes minimum, periodt πŸ’…

but sometimes you get a short frame β€” a little baby frame, absolutely not hitting the 60-byte mark β€” and that's where this icon comes in. eth_skb_pad takes those short frames and pads them with zeros up to the 60 byte limit. literally just filling in the gaps so your frame meets the vibe check. ✨ zeroes. clean. simple. iconic. 🌸

✨ SEE ALSO ✨

the kernel file ./include/linux/etherdevice.h is the mothership, and it's giving so many ether-related besties. here's the whole friend group, no one left out 🫢:

like, the whole etherdevice.h friend group?? we love to see it πŸ’–βœ¨


lowkey a note: short frames get zero-padded to 60 bytes. that's the entire point of the function. don't overthink it, bestie. 🧚

mwah πŸ’‹ and that's the page!! brought to you by that ./include/linux source, October 2026 edition β€” go off, kernel docs, we're literally obsessed πŸ‘‘πŸŒˆβ­

πŸ“¦ where this page comes from