ptp_parse_header(9)
π ptp_parse_header(9) π
okay bestie, welcome to the Kernel API Manual corner where we talk about ptp_parse_header β she gets you a pointer to the PTP v2 header, and honestly? iconic. π Every fact is staying right here, no cap.
β¨ NAME β¨
ptp_parse_header β Get pointer to the PTP v2 header π«Ά
πΈ SYNOPSIS πΈ
struct ptp_header * ptp_parse_header (struct sk_buff *skb , unsigned int
type );
π ARGUMENTS π
skbβ packet buffer π¦typeβ type of the packet (seeptp_classify_raw) π
π¦ DESCRIPTION π¦
okay so this function is out here taking care of the VLAN, UDP, IPv4 and IPv6 headers, and the length is checked. π she's doing the absolute most so you don't have to.
π¨ note bestie: internallyskb_mac_headeris used. make sure that theskbis initialized accordingly β no vibes-only setup here, she needs it done right. π
π RETURN π
Pointer to the ptp v2 header or NULL if not found. so yeah: found it? pointer. not found? NULL. π
π SEE ALSO π
- Kernel file
./include/linux/ptp_classify.h ptp_classify_raw(9)ptp_get_msgtype(9)ptp_check_diff8(9)ptp_header_update_correction(9)ptp_msg_is_sync(9)
source/version: ./include/linux β’ date: October 2026 β’ page: ptp_parse_header(9). bye bestie, go parse those headers πβ¨
π¦ 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