diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-01-28 14:02:06 +0000 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-07-31 16:08:54 +0200 |
commit | ec267d9d072298100b6b13bafa1fce3440dabe38 (patch) | |
tree | eedd5ca12525fb8acee73bcf7c41a5c474e34d9a /tests | |
parent | 9fac4e2b35fccc976cf1d9ed202030beae091e66 (diff) | |
download | farstream-ec267d9d072298100b6b13bafa1fce3440dabe38.tar.gz |
tests: Ignore non-running multicast devices
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/testutils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/check/testutils.c b/tests/check/testutils.c index 089b9daf..33ca3f53 100644 --- a/tests/check/testutils.c +++ b/tests/check/testutils.c @@ -51,6 +51,9 @@ find_multicast_capable_address (void) if ((ifa->ifa_flags & IFF_MULTICAST) == 0) continue; + if ((ifa->ifa_flags & IFF_RUNNING) == 0) + continue; + if (ifa->ifa_addr == NULL || ifa->ifa_addr->sa_family != AF_INET) continue; |