commit 31544602b2fe71af732b04589286bab86b870d4d
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 21 Sep 2017 21:00:53 +0200
Initial Commit
Signed-off-by: MTRNord <mtrnord1@gmail.com>
Diffstat:
4 files changed, 132 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,94 @@
+# Created by .ignore support plugin (hsz.mobi)
+### JetBrains template
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
+
+# User-specific stuff:
+.idea/**/workspace.xml
+.idea/**/tasks.xml
+.idea/dictionaries
+
+# Sensitive or high-churn files:
+.idea/**/dataSources/
+.idea/**/dataSources.ids
+.idea/**/dataSources.xml
+.idea/**/dataSources.local.xml
+.idea/**/sqlDataSources.xml
+.idea/**/dynamic.xml
+.idea/**/uiDesigner.xml
+
+# Gradle:
+.idea/**/gradle.xml
+.idea/**/libraries
+
+# CMake
+cmake-build-debug/
+
+# Mongo Explorer plugin:
+.idea/**/mongoSettings.xml
+
+## File-based project format:
+*.iws
+
+## Plugin-specific files:
+
+# IntelliJ
+out/
+
+# mpeltonen/sbt-idea plugin
+.idea_modules/
+
+# JIRA plugin
+atlassian-ide-plugin.xml
+
+# Cursive Clojure plugin
+.idea/replstate.xml
+
+# Crashlytics plugin (for Android Studio and IntelliJ)
+com_crashlytics_export_strings.xml
+crashlytics.properties
+crashlytics-build.properties
+fabric.properties
+### C++ template
+# Prerequisites
+*.d
+
+# Compiled Object files
+*.slo
+*.lo
+*.o
+*.obj
+
+# Precompiled Headers
+*.gch
+*.pch
+
+# Compiled Dynamic libraries
+*.so
+*.dylib
+*.dll
+
+# Fortran module files
+*.mod
+*.smod
+
+# Compiled Static libraries
+*.lai
+*.la
+*.a
+*.lib
+
+# Executables
+*.exe
+*.out
+*.app
+### CMake template
+CMakeCache.txt
+CMakeFiles
+CMakeScripts
+Testing
+Makefile
+cmake_install.cmake
+install_manifest.txt
+compile_commands.json
+CTestTestfile.cmake
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -0,0 +1,7 @@
+cmake_minimum_required(VERSION 3.7)
+project(helloWorld__)
+
+set(CMAKE_CXX_STANDARD 14)
+
+set(SOURCE_FILES main.cpp)
+add_executable(helloWorld__ ${SOURCE_FILES})
+\ No newline at end of file
diff --git a/README.md b/README.md
@@ -0,0 +1,8 @@
+# Tunneldigger L2TP C++ Fork
+This is a inofficial Tunneldigger fork to rewrite the broker in C++ to hopefully provide slightly better performance compared to the python code at the Original https://github.com/wlanslovenija/tunneldigger Repo.
+
+This is also my first ever C++ Project so it isn't anywhere near production ready!
+
+## Wishes after rewriting
+ - [ ] Windows support?
+
+\ No newline at end of file
diff --git a/main.cpp b/main.cpp
@@ -0,0 +1,20 @@
+#include <iostream>
+using namespace std;
+
+int main() {
+ #ifdef linux
+ int uid=getuid(), euid=geteuid();
+ if (uid<0 || uid!=euid) {
+ /* We might have elevated privileges beyond that of the user who invoked
+ * the program, due to suid bit. Be very careful about trusting any data! */
+ } else {
+ /* Anything goes. */
+ }
+ #endif
+
+ #ifdef _WIN32
+ printf("You currently have to use Linux to run this. Windows support might eventually come in the future. :)\n");
+ #endif
+
+ return 0;
+}
+\ No newline at end of file