summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h
index e817f2e..16b1a5a 100644
--- a/src/types.h
+++ b/src/types.h
@@ -52,6 +52,15 @@ static const fastd_tristate_t fastd_tristate_false = {true, false};
static const fastd_tristate_t fastd_tristate_undef = {false, false};
+#define PACKET_TYPE_LEN 1
+
+
+typedef enum fastd_packet_type {
+ PACKET_UNKNOWN = 0,
+ PACKET_HANDSHAKE,
+ PACKET_DATA,
+} fastd_packet_type_t;
+
typedef enum fastd_mode {
MODE_TAP,
MODE_TUN,