1dlpi_mactype(3DLPDIa)ta Link Provider Interface Library Functiodnlspi_mactype(3DLPI)
2
3
4
6 dlpi_mactype - convert a DLPI MAC type to a string
7
9 cc [ flag ... ] file ... -ldlpi [ library ... ]
10 #include <libdlpi.h>
11
12 const char *dlpi_mactype(uint_t mactype);
13
14
16 The dlpi_mactype() function returns a pointer to a string that
17 describes the specified mactype. Possible MAC types are defined in
18 <sys/dlpi.h>. The string is not dynamically allocated and must not be
19 freed by the caller.
20
22 Upon success, the function returns a pointer string that describes the
23 MAC type. If mactype is unknown, the string "Unknown MAC Type" is
24 returned.
25
27 See attributes(5) for description of the following attributes:
28
29
30
31
32 ┌─────────────────────────────┬─────────────────────────────┐
33 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
34 ├─────────────────────────────┼─────────────────────────────┤
35 │Interface Stability │Committed │
36 ├─────────────────────────────┼─────────────────────────────┤
37 │MT-Level │Safe │
38 └─────────────────────────────┴─────────────────────────────┘
39
41 libdlpi(3LIB), attributes(5)
42
43
44
45SunOS 5.11 15 Jun 2007 dlpi_mactype(3DLPI)