diff options
author | Frederic Robra | 2019-08-29 16:50:04 +0200 |
---|---|---|
committer | Frederic Robra | 2019-08-29 16:50:04 +0200 |
commit | 4a0c8ebec090c06cf32121efd86ea8fae9e9a9c7 (patch) | |
tree | e4dac84f40082cedd4828ebb4aaa174cb6f5b5d0 /src/kernel/utils.h | |
parent | optimized behaviour with failures (diff) | |
download | dnbd3-ng-4a0c8ebec090c06cf32121efd86ea8fae9e9a9c7.tar.gz dnbd3-ng-4a0c8ebec090c06cf32121efd86ea8fae9e9a9c7.tar.xz dnbd3-ng-4a0c8ebec090c06cf32121efd86ea8fae9e9a9c7.zip |
splitted net
Diffstat (limited to 'src/kernel/utils.h')
-rw-r--r-- | src/kernel/utils.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/kernel/utils.h b/src/kernel/utils.h index e54b3cf..d7eb87f 100644 --- a/src/kernel/utils.h +++ b/src/kernel/utils.h @@ -1,7 +1,8 @@ /* * This file is part of the Distributed Network Block Device 3 - * + * Copyright(c) 2011-2012 Johann Latocha <johann@latocha.de> + * Copyright(c) 2019 Frederic Robra <frederic@robra.org> * * This file may be licensed under the terms of of the * GNU General Public License Version 2 (the ``GPL''). @@ -21,9 +22,18 @@ #ifndef UTILS_H_ #define UTILS_H_ +#include "dnbd3.h" + #include <linux/in.h> unsigned int inet_addr(char *str); + void inet_ntoa(struct in_addr addr, char *str); +/** + * dnbd3_average_rtt - calculate the average rtt + * @server: the server to calculate the average rtt + */ +uint64_t dnbd3_average_rtt(struct dnbd3_server *server); + #endif /* UTILS_H_ */ |