dmi_mgmt_redfish_ip_format

Synopsis

#include <opendmi/entity/mgmt-controller.h>

typedef enum dmi_mgmt_redfish_ip_format {
    DMI_MGMT_REDFISH_IP_FORMAT_UNKNOWN = 0x00,
    DMI_MGMT_REDFISH_IP_FORMAT_IPV4    = 0x01,
    DMI_MGMT_REDFISH_IP_FORMAT_IPV6    = 0x02
} dmi_mgmt_redfish_ip_format_t;

const char *dmi_mgmt_redfish_ip_format_name(
        dmi_mgmt_redfish_ip_format_t value);

Description

The dmi_mgmt_redfish_ip_format_t enumeration tells the format of the IP addresses and masks of a Redfish over IP protocol record, and is the type of the host_ip_format and service_ip_format fields of dmi_mgmt_redfish_over_ip_t. The values the enumeration does not name are reserved.

The dmi_mgmt_redfish_ip_format_name function returns the printable name of a value, as the command line tool shows it. The name is translated to the locale set with dmi_set_locale, when the library is built with ICU4C support and has a translation of it.

Values

DMI_MGMT_REDFISH_IP_FORMAT_UNKNOWN

Unknown. The address and the mask take 16 bytes.

DMI_MGMT_REDFISH_IP_FORMAT_IPV4

IPv4. The address and the mask take 4 bytes.

DMI_MGMT_REDFISH_IP_FORMAT_IPV6

IPv6. The address and the mask take 16 bytes.

Return value

dmi_mgmt_redfish_ip_format_name returns the name of the value, or nullptr if the value has no name. The name is a static string, which must not be modified or freed.

Errors

None.

Standards

DMTF Redfish Host Interface Specification (DSP0270), which defines this data of the management controller host interface structure (type 42) of the DMTF SMBIOS Specification (DSP0134).