File: socket_getifname.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (17 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.TH socket_getifname 3
.SH NAME
socket_getifname \- get interface name
.SH SYNTAX
.B #include <libowfat/socket.h>

const char* \fBsocket_getifname\fP(uint32 \fIinterface\fR);
.SH DESCRIPTION
socket_getifname returns the symbolic interface name for a network
interface number.  The returned char* is a static buffer in the libc.
If you query the named for more than one interface, you have to save the
name before calling \fBsocket_getifidx\fR again.

If something goes wrong, socket_getifname returns "[unknown]".

.SH "SEE ALSO"
socket_getifidx(3), socket_connect6(3)