IPRoute


Description:

[ CCode ( has_construct_function = false ) ]
public IPRoute (int family, string dest, uint prefix, string? next_hop, int64 metric) throws Error

Creates a new IPRoute object.

Parameters:

family

the IP address family (<literal>AF_INET</literal> or <literal>AF_INET6</literal>)

dest

the IP address of the route's destination

prefix

the address prefix length

next_hop

the IP address of the next hop (or null)

metric

the route metric (or -1 for "default")

Returns:

the new IPRoute object, or null on error