From 4a0c8ebec090c06cf32121efd86ea8fae9e9a9c7 Mon Sep 17 00:00:00 2001 From: Frederic Robra Date: Thu, 29 Aug 2019 16:50:04 +0200 Subject: splitted net --- src/kernel/utils.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/kernel/utils.h') 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 + * Copyright(c) 2019 Frederic Robra * * 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 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_ */ -- cgit v1.2.3-55-g7522