aboutsummaryrefslogtreecommitdiffstats
path: root/lib/util.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-08-20 13:24:55 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-08-28 11:14:57 +0200
commitf612ffea8262f53017be8eaf465b23c4c18c532a (patch)
treee5202b7f57d934015b491023524b777afba94a67 /lib/util.h
parent421f22e8cf8059a7141f08b8dcac0854305571fa (diff)
Move pdp_get_peer_ipv() to lib/util.*
Preparation for next commit, where this function will be needed inside libmisc (lib/*). Change-Id: Ibab4f6c09d1e5f0e9cfaea28ae1e7ab5b5c219b5
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/util.h b/lib/util.h
new file mode 100644
index 0000000..bc9674d
--- /dev/null
+++ b/lib/util.h
@@ -0,0 +1,18 @@
+#pragma once
+/*
+ * misc helpers
+ * Copyright 2019 sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
+ *
+ * The contents of this file may be used under the terms of the GNU
+ * General Public License Version 2, provided that the above copyright
+ * notice and this permission notice is included in all copies or
+ * substantial portions of the software.
+ *
+ */
+
+#include <stdbool.h>
+
+struct ippoolm_t;
+struct pdp_t;
+
+struct ippoolm_t *pdp_get_peer_ipv(struct pdp_t *pdp, bool is_ipv6);