if_nameindex man page on Tru64

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
Tru64 logo
[printable version]

if_nameindex(3)						       if_nameindex(3)

NAME
       if_nameindex - Return an array of all interface names and indexes

SYNOPSIS
       #include <net/if.h>

       struct if_nameindex *if_nameindex(
	       void );

LIBRARY
       Standard C Library (libc)

DESCRIPTION
       The  if_nameindex()  function dynamically allocates memory for an array
       of if_nameindex structures, one structure for each interface. A	strucā€
       ture  with a zero (0) if_index value and a NULL if_name value indicates
       the end of the array.

       You must define the following if_nameindex structure prior to a call to
       if_nameindex():

       struct if_nameindex {
	   unsigned int	  if_index;
	   char		  *if_name;
	};

       To  free	 memory allocated by this function, use the if_freenameindex()
       function.

RETURN VALUES
       Upon successful	conversion,  the  if_nameindex()  function  returns  a
       pointer to the first structure in the array of if_nameindex structures.

SEE ALSO
       Functions: if_freenameindex(3), if_indextoname(3), if_nametoindex(3).

							       if_nameindex(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Tru64

List of man pages available for Tru64

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net