aboutsummaryrefslogtreecommitdiffstats
path: root/wg_dynamic_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'wg_dynamic_server.c')
-rw-r--r--wg_dynamic_server.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/wg_dynamic_server.c b/wg_dynamic_server.c
new file mode 100644
index 0000000..a8e2924
--- /dev/null
+++ b/wg_dynamic_server.c
@@ -0,0 +1,33 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright (C) 2018 Wireguard LLC
+ */
+
+#include <stdlib.h>
+#include <stdio.h>
+
+const char *PROG_NAME;
+
+/* TODO: break this function out into another file when it gets big */
+static void setup_server(char *interface)
+{
+}
+
+static void show_usage()
+{
+ fprintf(stderr, "Usage: %s <interface>\n\n", PROG_NAME);
+}
+
+int main(int argc, char *argv[])
+{
+ PROG_NAME = argv[0];
+
+ if (argc == 1) {
+ show_usage();
+ return EXIT_FAILURE;
+ }
+
+ setup_server(argv[1]);
+
+ return EXIT_SUCCESS;
+}