Made IP address enumeration more flexible
Also added an option to enumerate addresses on ignored interfaces.
This commit is contained in:
@@ -517,7 +517,7 @@ METHOD(stroke_list_t, status, void,
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
enumerator = hydra->kernel_interface->create_address_enumerator(
|
||||
hydra->kernel_interface, FALSE, FALSE, FALSE);
|
||||
hydra->kernel_interface, ADDR_TYPE_REGULAR);
|
||||
fprintf(out, "Listening IP addresses:\n");
|
||||
while (enumerator->enumerate(enumerator, (void**)&host))
|
||||
{
|
||||
|
||||
@@ -49,7 +49,7 @@ static bool publish_device_ip_addresses(private_tnc_ifmap_listener_t *this)
|
||||
bool success = TRUE;
|
||||
|
||||
enumerator = hydra->kernel_interface->create_address_enumerator(
|
||||
hydra->kernel_interface, FALSE, FALSE, FALSE);
|
||||
hydra->kernel_interface, ADDR_TYPE_REGULAR);
|
||||
while (enumerator->enumerate(enumerator, &host))
|
||||
{
|
||||
if (!this->ifmap->publish_device_ip(this->ifmap, host))
|
||||
|
||||
Reference in New Issue
Block a user