diff options
author | Martin Willi <martin@revosec.ch> | 2013-04-19 14:52:29 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-05-06 16:10:13 +0200 |
commit | 1a2a8bffedd633dbfd8ed7fe6ff28218cd535497 (patch) | |
tree | 830a26733a4da01f1a0d4dc3039e47716fd6708e /src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c | |
parent | 5f7f8c92cab171a0bfe20dfcea076642bedd52b0 (diff) | |
download | strongswan-1a2a8bffedd633dbfd8ed7fe6ff28218cd535497.tar.bz2 strongswan-1a2a8bffedd633dbfd8ed7fe6ff28218cd535497.tar.xz |
kernel-interface: support enumeration of virtual-only IPs
Diffstat (limited to 'src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c')
-rw-r--r-- | src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c b/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c index f8d3f2c44..2aeb840b2 100644 --- a/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c +++ b/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c @@ -704,6 +704,10 @@ static bool filter_addresses(address_enumerator_t *data, { /* skip virtual interfaces added by us */ return FALSE; } + if (!(data->which & ADDR_TYPE_REGULAR) && !(*in)->virtual) + { /* address is regular, but not requested */ + return FALSE; + } ip = (*in)->ip; if (ip->get_family(ip) == AF_INET6) { |