Go to main content

man pages section 3: Networking Library Functions

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

dlpi_mactype(3DLPI)

Name

dlpi_mactype - convert a DLPI MAC type to a string

Synopsis

cc [ flag ... ] file ... –ldlpi [ library ... ]
#include <libdlpi.h>

const char *dlpi_mactype(uint_t mactype);

Description

The dlpi_mactype() function returns a pointer to a string that describes the specified mactype. Possible MAC types are defined in <sys/dlpi.h>. The string is not dynamically allocated and must not be freed by the caller.

Return Values

Upon success, the function returns a pointer string that describes the MAC type. If mactype is unknown, the string “Unknown MAC Type” is returned.

Attributes

See attributes(7) for description of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Safe

See Also

libdlpi(3LIB), attributes(7)