From b455beb789b89152bdfc3b769a87229b0cb7df26 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 2 Dec 2015 12:25:27 +0100 Subject: [FUSE] Request alt servers from connected server --- src/fuse/helper.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/fuse/helper.h') diff --git a/src/fuse/helper.h b/src/fuse/helper.h index 0b98ded..c0c70c7 100644 --- a/src/fuse/helper.h +++ b/src/fuse/helper.h @@ -27,4 +27,9 @@ static inline bool isSameAddressPort(const dnbd3_host_t * const a, const dnbd3_h return (a->type == b->type) && (a->port == b->port) && (0 == memcmp( a->addr, b->addr, (a->type == AF_INET ? 4 : 16) )); } +static inline bool isSameAddress(const dnbd3_host_t * const a, const dnbd3_host_t * const b) +{ + return (a->type == b->type) && (0 == memcmp( a->addr, b->addr, (a->type == AF_INET ? 4 : 16) )); +} + #endif -- cgit v1.2.3-55-g7522