FUNCTION::TCPMIB_LOC(3stap)
β¨ NAME β¨
okay bestie, so this is function::tcpmib_local_addr β she's the one who gets the source address π that's it, that's her whole job, and she does it flawlessly.
This page lives in the SNMP Information Tapset, which is part of the 3stap manual β iykyk π
πΈ SYNOPSIS πΈ
tcpmib_local_addr:long(sk:long)
that's the whole signature. she takes one thing, she gives you back a long. no notes, no drama π
π¦ ARGUMENTS π¦
skβ this is a pointer to astruct inet_sockπ«Ά so like, hand her the socket struct and she'll dig around in it for you. that's the whole vibe.
π DESCRIPTION π
she returns the saddr from a struct inet_sock, and the way she does it?? in host order β¨ no byte-swapping nonsense, no surprise endianness jumpscare, just the source address in the order your CPU actually wants to read it. iconic behavior, truly π
ngl this is one of those little helpers that makes you feel like the main character of your own network debugging session π
π₯ SEE ALSO π₯
tapset::tcpmib(3stap)β go read the whole family, she's not the only one in the tapset, and the rest of them ate too π
and that's the page, bestie!! go get those source addresses, no cap ππ this was the SystemTap Tapset Reference, Version 5.3 (or wherever your install landed, fr fr), dated September 2026 β ty for coming to my ted talk, mwah πππ¦
π¦ 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