Function mcastIpToMac [src]
Converts a multicast IP address to a multicast HW MAC address.
Prototype
pub fn mcastIpToMac( self: *SimpleNetwork, ipv6: bool, ip: *const anyopaque, ) McastIpToMacError!MacAddress
Parameters
self: *SimpleNetwork
ipv6: bool
ip: *const anyopaque
Possible Errors
Source
pub fn mcastIpToMac(
self: *SimpleNetwork,
ipv6: bool,
ip: *const anyopaque,
) McastIpToMacError!MacAddress {
var mac: MacAddress = undefined;
switch (self._mcast_ip_to_mac(self, ipv6, ip, &mac)) {
.success => return mac,
.not_started => return Error.NotStarted,
.invalid_parameter => return Error.InvalidParameter,
.device_error => return Error.DeviceError,
.unsupported => return Error.Unsupported,
else => |status| return uefi.unexpectedStatus(status),
}
}