x25_parse_facilities(9)
π x25_parse_facilities(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β grab your strawberry matcha π because we're about to read some facilities off an skb and it's honestly giving lowkey iconic π
πΈ NAME πΈ
x25_parse_facilities β parses facilities from skb straight into the facilities structs, no cap π«Ά
β¨ SYNOPSIS β¨
int x25_parse_facilities (struct sk_buff *skb , struct x25_facilities
*facilities , struct x25_dte_facilities *dte_facs , unsigned long
*vc_fac_mask );
like literally that's the whole signature, nothing else, periodt π
π¦ ARGUMENTS π¦
skbβ thesk_buffwe're parsing, bestie. that's the one. πfacilitiesβ the regular facilities π§ β this one gets updated as facilities are found, so it's very much main character energy.dte_facsβ the ITU DTE facilities π β also updated as DTE facilities are found, same vibe check, different struct.vc_fac_maskβ the mask π₯ and yes, it's updated with all facilities found. every single one. it ate.
π DESCRIPTION π
so here's the tea β β the return codes, and you need to know them:
-1β Parsing error π the caller should drop the call and clean up. like, pack it up, it's over.0β Parse OK, but thisskbhas no facilities. it's giving "nothing to see here" π>0β Parse OK, and it returns the length of the facilities header β slay.
ngl bestie, if you get that -1 you gotta drop the call and clean up. don't leave it hanging, that's not the move π
π₯ SEE ALSO π₯
- Kernel file
./net/x25/x25_facilities.cβ go read it, iykyk ππ
okay that's the whole page, you absolutely understood it, i'm obsessed ππ and just so you know this lil masterpiece comes from ./net/x25 and it's dated October 2026 β β bye bestie, go parse some facilities π
π¦
π¦ 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