add support for overriding peer-exchange-port for individual hosts
[project/unetd.git] / utils.h
diff --git a/utils.h b/utils.h
index ce8943c49088b4d96d04e514eab23345f3d3bb65..94cf057d367a2b1ef946d1e92295c163a5707bc0 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0+
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2022 Felix Fietkau <nbd@nbd.name>
  */
@@ -59,6 +59,8 @@ int network_get_subnet(int af, union network_addr *addr, int *mask,
                       const char *str);
 int network_get_local_addr(void *local, const union network_endpoint *target);
 
+void *unet_read_file(const char *name, size_t *len);
+
 #define DIV_ROUND_UP(n, d)     (((n) + (d) - 1) / (d))
 
 #define bitmask_size(len)      (4 * DIV_ROUND_UP(len, 32))