FUNCTION::TCPMIB\_GET(3stap) SNMP Information Tapset FUNCTION::TCPMIB\_GET(3stap)

# [NAME](#NAME)

function::tcpmib\_get\_state - Get a socket's state

# [SYNOPSIS](#SYNOPSIS)

```


    tcpmib_get_state:long(sk:long)
```

# [ARGUMENTS](#ARGUMENTS)

*sk*

pointer to a struct sock

# [DESCRIPTION](#DESCRIPTION)

Returns the sk\_state from a struct sock.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::tcpmib*(3stap)](/man/enterprise-packages/systemtap/tapset::tcpmib.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::tcpmib_get_state(3stap) from systemtap 5.6-r0 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
