FUNCTION::TCPMIB_FIL(3stap)

πŸ’– FUNCTION::TCPMIB_FIL β€” SNMP Information Tapset ✨

okay bestie, you're in the 3stap section of the manual, and this is the SNMP Information Tapset era. let's get into it 🫢


🌸 NAME 🌸

function::tcpmib_filter_key β€” the default filter function for tcpmib.* probes. it's giving gatekeeper, but in a helpful way πŸ’…


✨ SYNOPSIS ✨

tcpmib_filter_key:long(sk:long,op:long)

πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” a pointer to the struct sock that's being acted on. like, the socket in question, the main character of this whole operation πŸ’«
  • op β€” the value that gets counted if sk passes the filter. so it's waiting in the wings, and it only gets its moment if the filter says yes ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: this function is a default filter function. the user can literally replace it with their own, no cap β€” it's yours to swap out.

when you do supply your own filter function, it returns an index key based on the values inside sk.

and here's the part you cannot miss: if the return value is 0, that means this particular sk should not be counted. zero = not invited to the party πŸ™ˆ. periodt.


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole vibe πŸ’–

this was your girl signing off from the SystemTap Tapset Reference, Ver September 2026 β€” FUNCTION::TCPMIB_FIL(3stap), always and forever πŸ‘‘πŸŒΈβœ¨

πŸ“¦ where this page comes from