FUNCTION::SOCK\_PROT\_(3stap) Socket Tapset FUNCTION::SOCK\_PROT\_(3stap)

# [NAME](#NAME)

function::sock\_prot\_str2num - Given a protocol name (string), return the corresponding protocol number

# [SYNOPSIS](#SYNOPSIS)

```


    sock_prot_str2num:long(proto:string)
```

# [ARGUMENTS](#ARGUMENTS)

*proto*

The protocol name

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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