index
:
ptunnel-ng.git
Tunnel TCP connections through ICMP.
log msg
author
committer
range
coverity_scan
feature/libsodium-integration
feature/wireshark-dissector
master
ptunnel-ng/2.0.0
release
removed_extended_options
about
summary
refs
log
tree
commit
diff
path:
root
/
src
/
ppkt.h
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Toni Uhlig <matzeton@googlemail.com>
2022-03-16 22:20:47 +0100
committer
Toni Uhlig <matzeton@googlemail.com>
2022-03-16 22:20:47 +0100
commit
54fb5592b4724934535a606f1981ea439533a4a8
(
patch
)
tree
4e5a664466817aa10195216b6e46c7ed855156b5
/
src/ppkt.h
parent
521ee3bb8356c0916b7fb228612f06e07a841b36
(
diff
)
initial whatever
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat
(limited to 'src/ppkt.h')
-rw-r--r--
src/ppkt.h
20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ppkt.h b/src/ppkt.h
new file mode 100644
index 0000000..83cc78a
--- /dev/null
+++ b/
src/ppkt.h
@@ -0,0 +1,20 @@
+#ifndef PPKT_H
+#define PPKT_H 1
+
+#include <stdint.h>
+
+#define PPKT_TYPE_DATA 0x0001u
+
+struct ppkt
+{
+ uint16_t type;
+ uint16_t data_size;
+ uint32_t sequence;
+ uint8_t data[0];
+};
+
+void ppkt_header_prepare(struct ppkt *);
+
+void ppkt_header_process(struct ppkt *);
+
+#endif