blob: 08d4fa6b023fbbe27184a5d299783151665bab5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef _SEPPL_H
#define _SEPPL_H
#define SEPPL_PROTOCOL 177
// Packet layout:
// 1. IP-Header PLAIN
// 2. Uncrypted header PLAIN
// 3. iv PLAIN
// 4. Crypted header CRYPTED
// 5. Payload (with TCP/UDP/...-Header) CRYPTED
// 6. Padding CRYPTED
struct seppl_uncrypt_hdr {
uint8_t algorithm;
char key_name[7];
} __attribute__((packed)) uncrypt_hdr;
struct seppl_crypt_hdr{
uint8_t ident; // 0x00
uint8_t saved_protocol;
uint16_t saved_tot_len;
uint16_t saved_frag_off;
} __attribute__((packed)) crypt_hdr;
#endif
|