summaryrefslogtreecommitdiffstats
path: root/man3/if_nametoindex.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/if_nametoindex.3')
-rw-r--r--man3/if_nametoindex.313
1 files changed, 6 insertions, 7 deletions
diff --git a/man3/if_nametoindex.3 b/man3/if_nametoindex.3
index ebbd257..e4e183e 100644
--- a/man3/if_nametoindex.3
+++ b/man3/if_nametoindex.3
@@ -3,7 +3,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH if_nametoindex 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH if_nametoindex 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
if_nametoindex, if_indextoname \- mappings between network interface
names and indexes
@@ -13,7 +13,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <net/if.h>
-.PP
+.P
.BI "unsigned int if_nametoindex(const char *" "ifname" );
.BI "char *if_indextoname(unsigned int ifindex, char *" ifname );
.fi
@@ -23,7 +23,7 @@ The
function returns the index of the network interface
corresponding to the name
.IR ifname .
-.PP
+.P
The
.BR if_indextoname ()
function returns the name of the network interface
@@ -41,7 +41,7 @@ returns the index number of the network interface;
on error, 0 is returned and
.I errno
is set to indicate the error.
-.PP
+.P
On success,
.BR if_indextoname ()
returns
@@ -57,7 +57,7 @@ if:
.TP
.B ENODEV
No interface found with given name.
-.PP
+.P
.BR if_indextoname ()
may fail and set
.I errno
@@ -65,7 +65,7 @@ if:
.TP
.B ENXIO
No interface found for the index.
-.PP
+.P
.BR if_nametoindex ()
and
.BR if_indextoname ()
@@ -88,7 +88,6 @@ T{
.BR if_indextoname ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH STANDARDS
POSIX.1-2008, RFC\ 3493.
.SH HISTORY