Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ if_indextoname(3) — Tru64 UNIX 5.0a

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

if_freenameindex(3)

if_nameindex(3)

if_nametoindex(3)

if_indextoname(3)  —  Subroutines

NAME

if_indextoname − Maps an interface index to an interface name

LIBRARY

Standard C Library (libc.so, libc.a)

SYNOPSIS

#include <net/if.h>

char ∗if_indextoname (
unsigned int ifindex,
char ∗ifname) ;

PARAMETERS

ifindexSpecifies the index number. 

ifnamePoints to a buffer, IFNAMSIZ bytes in length, that contains the interface name.  IFNAMSIZ is defined in <net/if.h>. 

DESCRIPTION

The if_indextoname() function maps an interface index number to its corresponding interface name. 

RETURN VALUES

Upon successful conversion, the if_indextoname() function returns a pointer to the buffer containing the interface name.  If no interface name corresponds to the index, it returns a pointer to the buffer containing NULL. 

RELATED INFORMATION

Functions: if_freenameindex(3), if_nameindex(3), if_nametoindex(3). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026