TAPSET::INET(3stap)
β¨ NAME β¨
ok so this is tapset::inet from the 3stap manual β it's the systemtap inet tapset bestie, and it's literally just a lil directory of byte-order glow-up functions π
π¦ DESCRIPTION π¦
so the inet tapset is giving network byte order realness. it's a collection of lil converter functions β some of them flip stuff from host order to network order, some of them flip it right back. every single one has its own dedicated page with the whole story, so imma point you at those π«Ά
πΈ host β network (the "hton" girlies)
htonllβ converts a 64-bitlong longfrom host order to network order. it's giving big-endian makeover β¨ seefunction::htonll(3stap)for the full deets.htonlβ converts a 32-bitlongfrom host order to network order. the O.G. classic, no cap π seefunction::htonl(3stap)for the full deets.htonsβ converts a 16-bitshortfrom host order to network order. smol but mighty π seefunction::htons(3stap)for the full deets.
π network β host (the "ntoh" girlies)
ntohllβ converts a 64-bitlong longfrom network order back to host order. the reverse glow-up, she understood the assignment π seefunction::ntohll(3stap)for the full deets.ntohlβ converts a 32-bitlongfrom network order back to host order. iconic, honestly π seefunction::ntohl(3stap)for the full deets.ntohsβ converts a 16-bitshortfrom network order back to host order. tiny icon behavior πΈ seefunction::ntohs(3stap)for the full deets.
lowkey note: this page is just the tapset index, bestie. it lists the functions and sends you to their individual pages β the actual signatures and semantics live over there, so don't come for me asking for more detail than the index has π
π SEE ALSO π
go read these next, fr fr β the tapset is a whole universe:
function::htonll(3stap)function::htonl(3stap)function::htons(3stap)function::ntohll(3stap)function::ntohl(3stap)function::ntohs(3stap)stap(1)stapprobes(3stap)
SystemTap Tapset Reference Β· September 2026 β okay that's the whole page bestie, tysm for reading, go convert some bytes and slay πβ¨π¦π
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms