Function neighbors [src]
Add or delete Neighbor cache entries.
Prototype
pub fn neighbors( self: *Ip6, delete_flag: DeleteFlag, target_ip6_address: *const Address, target_link_address: ?*const MacAddress, timeout: u32, override: bool, ) NeighborsError!void Parameters
self: *Ip6delete_flag: DeleteFlagtarget_ip6_address: *const Addresstarget_link_address: ?*const MacAddresstimeout: u32override: bool Possible Errors
Source
pub fn neighbors(
self: *Ip6,
delete_flag: DeleteFlag,
target_ip6_address: *const Address,
target_link_address: ?*const MacAddress,
timeout: u32,
override: bool,
) NeighborsError!void {
switch (self._neighbors(
self,
// set to TRUE to delete this route from the routing table.
// set to FALSE to add this route to the routing table.
delete_flag == .delete,
target_ip6_address,
target_link_address,
timeout,
override,
)) {
.success => {},
.not_started => return Error.NotStarted,
.invalid_parameter => return Error.InvalidParameter,
.out_of_resources => return Error.OutOfResources,
.not_found => return Error.NotFound,
.access_denied => return Error.AccessDenied,
else => |status| return uefi.unexpectedStatus(status),
}
}