socket_getifname(3)

socket_getifname3

Get interface name

Usage

#include <libowfat/socket.h>

const char* socket_getifname(uint32 interface);

Overview

socket_getifname returns the symbolic interface name for a network interface number. The returned char* is a static buffer in the libc. If you query the named for more than one interface, you have to save the name before calling socket_getifidx again.

If something goes wrong, socket_getifname returns "[unknown]".

Releases

8 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.