Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
socket_getifidx(3)	    Library Functions Manual	      socket_getifidx(3)

NAME
     socket_getifidx - get interface number

SYNTAX
     #include <libowfat/socket.h>

     int socket_getifidx(const char* ifname);

DESCRIPTION
     socket_getifidx  returns the interface number for a symbolic network inter-
     face 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 appro-
     priately.

SEE ALSO
     socket_getifname(3), socket_connect6(3)

							      socket_getifidx(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=libowfat_socket_getifidx&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help