From 6c358bbad435c84e8a11a27cec366d97f7539aeb Mon Sep 17 00:00:00 2001
From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net>
Date: Sat, 8 Sep 2018 19:06:57 +0700
Subject: [PATCH] [+] Chain Network Service Packet

---
 dap_chain_net_srv_pkt.c |  3 +++
 dap_chain_net_srv_pkt.h | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 dap_chain_net_srv_pkt.c
 create mode 100644 dap_chain_net_srv_pkt.h

diff --git a/dap_chain_net_srv_pkt.c b/dap_chain_net_srv_pkt.c
new file mode 100644
index 0000000..e7e590f
--- /dev/null
+++ b/dap_chain_net_srv_pkt.c
@@ -0,0 +1,3 @@
+#include "dap_chain_srv_pkt.h"
+
+#define LOG_TAG "srv_pkt"
diff --git a/dap_chain_net_srv_pkt.h b/dap_chain_net_srv_pkt.h
new file mode 100644
index 0000000..0e731fb
--- /dev/null
+++ b/dap_chain_net_srv_pkt.h
@@ -0,0 +1,35 @@
+/*
+ * Authors:
+ * Dmitriy A. Gearasimov <kahovski@gmail.com>
+ * DeM Labs Inc.   https://demlabs.net
+ * DeM Labs Open source community https://github.com/demlabsinc
+ * Copyright  (c) 2017-2018
+ * All rights reserved.
+
+ This file is part of DAP (Deus Applications Prototypes) the open source project
+
+    DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    DAP is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with any DAP based project.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#include <stdint.h>
+
+typedef uint64_t dap_chain_srv_uid_t;
+typedef struct dap_chain_srv_pkt{
+    struct {
+        dap_chain_srv_uid_t uid;
+    } __attribute__((packed)) header ;
+    uint8_t data[];
+} __attribute__((packed)) dap_chain_srv_pkt_t;
-- 
GitLab