Make it easy to check if an address is locally usable via changed get_interface() method

This commit is contained in:
Tobias Brunner
2012-09-21 18:16:26 +02:00
parent aed33805ce
commit 9ba36c0f7f
10 changed files with 64 additions and 67 deletions
@@ -267,9 +267,8 @@ METHOD(listener_t, child_updown, bool,
if (up)
{
iface = hydra->kernel_interface->get_interface(
hydra->kernel_interface, me);
if (iface)
if (hydra->kernel_interface->get_interface(hydra->kernel_interface,
me, &iface))
{
cache_iface(this, child_sa->get_reqid(child_sa), iface);
}