socket_getifidx(3) debian man page | unix.com

Man Page: socket_getifidx

Operating Environment: debian

Section: 3

socket_getifidx(3)					     Library Functions Manual						socket_getifidx(3)

NAME
socket_getifidx - get interface number
SYNTAX
#include <socket.h> int socket_getifidx(const char* ifname);
DESCRIPTION
socket_getifidx returns the interface number for a symbolic network interface name (like "eth0" on Linux, for example). The interface number can be used as scope_id for IPv6 communications on link-local addresses. If something goes wrong, socket_getifidx returns -1, setting errno appropriately.
SEE ALSO
socket_getifname(3), socket_connect6(3) socket_getifidx(3)
Related Man Pages
if_nametoindex(3) - linux
socket_send6(3) - debian
if_nametoindex(3) - centos
if_indextoname(3) - debian
if_nametoindex(3) - debian
Similar Topics in the Unix Linux Community
How can I do this in VI editor?
One instance of comparing grep and awk
Find columns in a file based on header and print to new file
How to copy a column of multiple files and paste into new excel file (next to column)?
New UNIX and Linux History Sections