Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › os › uefi › protocol › ip6 › Ip6 › routes Public Function routes Doc Source Public Function std.os.uefi.protocol.ip6.Ip6.routes
pub fn routes (
self : *Ip6 ,
delete_route : DeleteFlag ,
destination : ?*const Address ,
prefix_length : u8 ,
gateway_address : ?*const Address ,
) RoutesError !void Params File os/uefi/protocol/ip6.zig: 180
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202 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 ),
}
}
Adds and deletes routing table entries.