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

net_if.h.0p (2511B)


  1. '\" et
  2. .TH net_if.h "0P" 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. net/if.h
  12. \(em sockets local interfaces
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <net/if.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <net/if.h>
  21. header shall define the
  22. .BR if_nameindex
  23. structure, which shall include at least the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. unsigned if_index \fRNumeric index of the interface.\fR
  28. char *if_name \fRNull-terminated name of the interface.\fR
  29. .fi
  30. .P
  31. .RE
  32. .P
  33. The
  34. .IR <net/if.h>
  35. header shall define the following symbolic constant for the length of
  36. a buffer containing an interface name (including the terminating NULL
  37. character):
  38. .IP IF_NAMESIZE 12
  39. Interface name length.
  40. .P
  41. The following shall be declared as functions and may also be defined as
  42. macros. Function prototypes shall be provided.
  43. .sp
  44. .RS 4
  45. .nf
  46. void if_freenameindex(struct if_nameindex *);
  47. char *if_indextoname(unsigned, char *);
  48. struct if_nameindex *if_nameindex(void);
  49. unsigned if_nametoindex(const char *);
  50. .fi
  51. .P
  52. .RE
  53. .LP
  54. .IR "The following sections are informative."
  55. .SH "APPLICATION USAGE"
  56. None.
  57. .SH "RATIONALE"
  58. None.
  59. .SH "FUTURE DIRECTIONS"
  60. None.
  61. .SH "SEE ALSO"
  62. The System Interfaces volume of POSIX.1\(hy2017,
  63. .IR "\fIif_freenameindex\fR\^(\|)",
  64. .IR "\fIif_indextoname\fR\^(\|)",
  65. .IR "\fIif_nameindex\fR\^(\|)",
  66. .IR "\fIif_nametoindex\fR\^(\|)"
  67. .\"
  68. .SH COPYRIGHT
  69. Portions of this text are reprinted and reproduced in electronic form
  70. from IEEE Std 1003.1-2017, Standard for Information Technology
  71. -- Portable Operating System Interface (POSIX), The Open Group Base
  72. Specifications Issue 7, 2018 Edition,
  73. Copyright (C) 2018 by the Institute of
  74. Electrical and Electronics Engineers, Inc and The Open Group.
  75. In the event of any discrepancy between this version and the original IEEE and
  76. The Open Group Standard, the original IEEE and The Open Group Standard
  77. is the referee document. The original Standard can be obtained online at
  78. http://www.opengroup.org/unix/online.html .
  79. .PP
  80. Any typographical or formatting errors that appear
  81. in this page are most likely
  82. to have been introduced during the conversion of the source files to
  83. man page format. To report such errors, see
  84. https://www.kernel.org/doc/man-pages/reporting_bugs.html .