summaryrefslogtreecommitdiff
path: root/src/fst/fst_iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fst/fst_iface.c')
-rw-r--r--src/fst/fst_iface.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fst/fst_iface.c b/src/fst/fst_iface.c
index 5a92d2c33e42..35e83cb7b471 100644
--- a/src/fst/fst_iface.c
+++ b/src/fst/fst_iface.c
@@ -49,12 +49,13 @@ void fst_iface_delete(struct fst_iface *i)
}
-Boolean fst_iface_is_connected(struct fst_iface *iface, const u8 *addr)
+Boolean fst_iface_is_connected(struct fst_iface *iface, const u8 *addr,
+ Boolean mb_only)
{
struct fst_get_peer_ctx *ctx;
- const u8 *a = fst_iface_get_peer_first(iface, &ctx, TRUE);
+ const u8 *a = fst_iface_get_peer_first(iface, &ctx, mb_only);
- for (; a != NULL; a = fst_iface_get_peer_next(iface, &ctx, TRUE))
+ for (; a != NULL; a = fst_iface_get_peer_next(iface, &ctx, mb_only))
if (os_memcmp(addr, a, ETH_ALEN) == 0)
return TRUE;