diff options
author | Simon Rettberg | 2015-12-02 12:25:27 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-12-02 12:25:27 +0100 |
commit | b455beb789b89152bdfc3b769a87229b0cb7df26 (patch) | |
tree | 71402287732010e573c99403e35e318b5b5bffed /src/fuse/helper.h | |
parent | [FUSE] Clean up command line handling (diff) | |
download | dnbd3-b455beb789b89152bdfc3b769a87229b0cb7df26.tar.gz dnbd3-b455beb789b89152bdfc3b769a87229b0cb7df26.tar.xz dnbd3-b455beb789b89152bdfc3b769a87229b0cb7df26.zip |
[FUSE] Request alt servers from connected server
Diffstat (limited to 'src/fuse/helper.h')
-rw-r--r-- | src/fuse/helper.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |