IPRoute.binary
Description:
[ CCode ( has_construct_function = false ) ]
public IPRoute.binary (int family, void* dest, uint prefix, void* next_hop, int64 metric) throws Error
public IPRoute.binary (int family, void* dest, uint prefix, void* next_hop, int64 metric) throws Error
Creates a new IPRoute object.
dest and next_hop (if non-null) must point to buffers of the correct size for
family.
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 |