sysdecode_sockopt_name(3)

sysdecode_sockopt_name3

Lookup name of socket option

Usage

#include <sysdecode.h>

const char *

sysdecode_sockopt_name(int level, int optname);

Library

library “libsysdecode”

Overview

The sysdecode_sockopt_name() function returns a text description of the socket option name passed in the optname argument to getsockopt(2). sysdecode_sockopt_name() takes the socket option level as well as the option name to uniquely identify the option.

Releases

24 releases since FreeBSD 11.1-RELEASE; the text changed 11 times.

  1. 11.1
  2. 11.2
  3. 11.3
  4. 11.4
  5. 12.0
  6. 12.1
  7. 12.2
  8. 12.3
  9. 12.4
  10. 13.0–13.1
  11. 13.2
  12. 13.3–16.0

Bugs

Socket option levels and names are protocol-specific. Both sysdecode_sockopt_level() and sysdecode_sockopt_name() should possibly accept the protocol family as an additional argument.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.