---
name: "function::tcpmib_local_port"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::tcpmib_local_port"
---

# function::tcpmib\_local\_port(3stap)

Get the local port

## NAME

function::tcpmib\_local\_port - Get the local port

## SYNOPSIS

```
    tcpmib_local_port:long(sk:long)
```

## ARGUMENTS

*sk*

pointer to a struct inet\_sock

## DESCRIPTION

Returns the sport from a struct inet\_sock in host order.

## SEE ALSO0

[*tapset::tcpmib*(3stap)](/tapset::tcpmib/3stap.md)
