summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-19 17:12:49 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-19 17:12:49 +0200
commitc03f985b99f365d97c450a785dc75523d386020b (patch)
treec103a6ca7976bf24c47568823a13fc8f4a6661a4 /src/types.h
parent7982387d5fea3dbc4825e0b1eaccd0a2af0eb061 (diff)
downloadfastd-c03f985b99f365d97c450a785dc75523d386020b.tar
fastd-c03f985b99f365d97c450a785dc75523d386020b.zip
Get rid of packet.h
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,