aboutsummaryrefslogtreecommitdiffstats
path: root/ipm.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipm.h')
-rw-r--r--ipm.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/ipm.h b/ipm.h
new file mode 100644
index 0000000..6e5994d
--- /dev/null
+++ b/ipm.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
+ */
+
+#ifndef __IPM_H__
+#define __IPM_H__
+
+#include <stdint.h>
+
+#include "common.h"
+
+void ipm_init();
+void ipm_free();
+void ipm_newaddr(uint32_t ifindex, const struct wg_combined_ip *addr);
+void ipm_deladdr(uint32_t ifindex, const struct wg_combined_ip *addr);
+int ipm_getlladdr(uint32_t ifindex, struct wg_combined_ip *addr);
+
+#endif