diff options
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 |