summaryrefslogtreecommitdiffstats
path: root/quicktun.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-04-12 21:03:35 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-04-12 21:03:35 +0200
commit35bfd16af8f8316de5ee392fe06020a7d7ed7a33 (patch)
treea91818cbe150d002f995b0e2ffefd58a55931cf5 /quicktun.h
downloadmodquicktun-35bfd16af8f8316de5ee392fe06020a7d7ed7a33.tar
modquicktun-35bfd16af8f8316de5ee392fe06020a7d7ed7a33.zip
Sending through the quicktun interface is working now.
Diffstat (limited to 'quicktun.h')
-rw-r--r--quicktun.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/quicktun.h b/quicktun.h
new file mode 100644
index 0000000..a363491
--- /dev/null
+++ b/quicktun.h
@@ -0,0 +1,33 @@
+#ifndef __QUICKTUN_H
+#define __QUICKTUN_H
+
+#define QUICKTUN_TUN_DEV 0x0001
+#define QUICKTUN_TAP_DEV 0x0002
+
+enum {
+ QUICKTUN_CMD_UNSPEC,
+ QUICKTUN_CMD_CREATE_DEVICE,
+ QUICKTUN_CMD_MODIFY_DEVICE,
+ QUICKTUN_CMD_DESTROY_DEVICE,
+ QUICKTUN_CMD_GET_DEVICE,
+ __QUICKTUN_CMD_MAX
+};
+
+enum {
+ QUICKTUN_A_UNSPEC,
+ QUICKTUN_A_IFNAME,
+ QUICKTUN_A_TYPE,
+ QUICKTUN_A_LOCAL_ADDRESS,
+ QUICKTUN_A_LOCAL_PORT,
+ QUICKTUN_A_REMOTE_ADDRESS,
+ QUICKTUN_A_REMOTE_PORT,
+ QUICKTUN_A_REMOTE_FLOAT,
+ __QUICKTUN_A_MAX
+};
+
+#define QUICKTUN_CMD_MAX (__QUICKTUN_CMD_MAX - 1)
+#define QUICKTUN_A_MAX (__QUICKTUN_A_MAX - 1)
+
+#define QUICKTUN_DEFAULT_PORT 2998
+
+#endif /* __QUICKTUN_H */