logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

if_nametoindex.3p (2070B)


  1. '\" et
  2. .TH IF_NAMETOINDEX "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. if_nametoindex
  12. \(em map a network interface name to its corresponding index
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <net/if.h>
  17. .P
  18. unsigned if_nametoindex(const char *\fIifname\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The
  22. \fIif_nametoindex\fR()
  23. function shall return the interface index corresponding to name
  24. .IR ifname .
  25. .SH "RETURN VALUE"
  26. The corresponding index if
  27. .IR ifname
  28. is the name of an interface; otherwise, zero.
  29. .SH ERRORS
  30. No errors are defined.
  31. .LP
  32. .IR "The following sections are informative."
  33. .SH "EXAMPLES"
  34. None.
  35. .SH "APPLICATION USAGE"
  36. None.
  37. .SH "RATIONALE"
  38. None.
  39. .SH "FUTURE DIRECTIONS"
  40. None.
  41. .SH "SEE ALSO"
  42. .IR "\fIgetsockopt\fR\^(\|)",
  43. .IR "\fIif_freenameindex\fR\^(\|)",
  44. .IR "\fIif_indextoname\fR\^(\|)",
  45. .IR "\fIif_nameindex\fR\^(\|)",
  46. .IR "\fIsetsockopt\fR\^(\|)"
  47. .P
  48. The Base Definitions volume of POSIX.1\(hy2017,
  49. .IR "\fB<net_if.h>\fP"
  50. .\"
  51. .SH COPYRIGHT
  52. Portions of this text are reprinted and reproduced in electronic form
  53. from IEEE Std 1003.1-2017, Standard for Information Technology
  54. -- Portable Operating System Interface (POSIX), The Open Group Base
  55. Specifications Issue 7, 2018 Edition,
  56. Copyright (C) 2018 by the Institute of
  57. Electrical and Electronics Engineers, Inc and The Open Group.
  58. In the event of any discrepancy between this version and the original IEEE and
  59. The Open Group Standard, the original IEEE and The Open Group Standard
  60. is the referee document. The original Standard can be obtained online at
  61. http://www.opengroup.org/unix/online.html .
  62. .PP
  63. Any typographical or formatting errors that appear
  64. in this page are most likely
  65. to have been introduced during the conversion of the source files to
  66. man page format. To report such errors, see
  67. https://www.kernel.org/doc/man-pages/reporting_bugs.html .