Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ if_nametoindex(3) — Tru64 UNIX 5.0a

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

if_freenameindex(3)

if_indextoname(3)

if_nameindex(3)

if_nametoindex(3)  —  Subroutines

NAME

if_nametoindex − Maps an interface name to an interface index

LIBRARY

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

SYNOPSIS

#include <net/if.h>

unsigned int if_nametoindex (
const char ∗ifname) ;

PARAMETERS

ifnamePoints to a buffer that contains the interface name. 

DESCRIPTION

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

RETURN VALUES

Upon successful conversion, the if_nametoindex() function returns an interface index number.  If the interface does not exist, it returns zero (0). 

RELATED INFORMATION

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

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