Use source address in get_nexthop() call
Otherwise the nexthop returned might belong to a different route than the one actually used with the current source address.
This commit is contained in:
1 parent
662534657f
commit
dad6d904ee
8 files changed
+19
-12
No files matched your search
@@ -269,13 +269,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)
|
||||
private_kernel_interface_t *this, host_t *dest, host_t *src)
|
||||
{
|
||||
if (!this->net)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
return this->net->get_nexthop(this->net, dest);
|
||||
return this->net->get_nexthop(this->net, dest, src);
|
||||
}
|
||||
|
||||
METHOD(kernel_interface_t, get_interface, char*,
|
||||
|
||||
Reference in new issue
Block a user