FUNCTION::SOCK_PROT_(3stap)

πŸ’– FUNCTION::SOCK_PROT_(3stap) πŸ’–

okay bestie, welcome to the Socket Tapset section of the SystemTap manual, and no this page is NOT long but it IS important so stay with me 🫢


✨ NAME ✨

function::sock_prot_str2num β€” you hand it a protocol name as a string, and it hands you back the matching protocol number. it's giving translator energy πŸ’…


🌸 SYNOPSIS 🌸

sock_prot_str2num:long(proto:string)

so like, you put a string in, you get a long out. simple. iconic. no cap.


πŸŽ€ ARGUMENTS πŸŽ€

  • proto β€” the protocol name, bestie. that's the string you're converting. that's it. that's the whole vibe. ✨

πŸ¦‹ SEE ALSO πŸ¦‹

  • tapset::socket(3stap) β€” go read this one too, it's the main character of the socket tapset and it knows things πŸ‘‘

and that's the whole page, fr fr. short but slay. now go convert some protocols πŸ’œ


this lil page came to you from the SystemTap Tapset Reference, and the date on it is September 2026 🌈 mwah, love u, bye πŸŽ€βœ¨

πŸ“¦ where this page comes from