ptp_classify_raw(9)
π NAME π
okay so bestie, welcome to ptp_classify_raw(9) β the kernel API manual page that is literally here to classify a PTP packet. thatβs the whole main-character job. πβ¨
β¨ SYNOPSIS β¨
unsigned int ptp_classify_raw (const struct sk_buff *skb );
π¦ ARGUMENTS π¦
skbβ buffer. yes, just the buffer. the packet is in there. no cap. π
πΈ DESCRIPTION πΈ
so hereβs the tea: it runs a minimal BPF dissector to classify a network packet and determine the PTP class. lowkey iconic. π§π
if the skb does not contain any PTP protocol data, you get PTP_CLASS_NONE back. otherwise you get PTP_CLASS_V1_IPV{4,6}, PTP_CLASS_V2_IPV{4,6}, or PTP_CLASS_V2_{L2,VLAN} β depending on the packet content. thatβs the classification lineup, periodt. π₯π
bestie note: the returned class depends on whatβs actually inside the packet, so the answer isnβt one fixed thing for every single skb. πβ¨
π SEE ALSO π
kernel file ./include/linux/ptp_classify.h β yes, that file β plus these functions, bestie:
ptp_parse_header(9)ptp_get_msgtype(9)ptp_check_diff8(9)ptp_header_update_correction(9)ptp_msg_is_sync(9)
mwah π β source/version ./include/linux, date October 2026, page ptp_classify_raw(9). bye bestie, go classify something cute π«Άπ
π¦ 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