kernel-interface: Add destination prefix to get_nexthop()
This allows to determine the next hop to reach a subnet, for instance, when installing routes for shunt policies.
This commit is contained in:
@@ -302,13 +302,13 @@ METHOD(kernel_interface_t, get_source_addr, host_t*,
|
||||
}
|
||||
|
||||
METHOD(kernel_interface_t, get_nexthop, host_t*,
|
||||
private_kernel_interface_t *this, host_t *dest, host_t *src)
|
||||
private_kernel_interface_t *this, host_t *dest, int prefix, host_t *src)
|
||||
{
|
||||
if (!this->net)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
return this->net->get_nexthop(this->net, dest, src);
|
||||
return this->net->get_nexthop(this->net, dest, prefix, src);
|
||||
}
|
||||
|
||||
METHOD(kernel_interface_t, get_interface, bool,
|
||||
|
||||
Reference in New Issue
Block a user