Function routes [src]

Adds and deletes routing table entries.

Prototype

pub fn routes( self: *Ip6, delete_route: DeleteFlag, destination: ?*const Address, prefix_length: u8, gateway_address: ?*const Address, ) RoutesError!void

Parameters

self: *Ip6delete_route: DeleteFlagdestination: ?*const Addressprefix_length: u8gateway_address: ?*const Address

Possible Errors

AccessDenied
InvalidParameter
NotFound
NotStarted
OutOfResources
Unexpected UnexpectedError

Source

pub fn routes( self: *Ip6, delete_route: DeleteFlag, destination: ?*const Address, prefix_length: u8, gateway_address: ?*const Address, ) RoutesError!void { switch (self._routes( self, delete_route == .delete, destination, prefix_length, gateway_address, )) { .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), } }