Fixed length of UUID in header

pull/23/head
Gerard Wagener 2018-12-03 14:30:03 +01:00
parent 34d74a7a23
commit 047b6c790f
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
#define STDIN "stdin" #define STDIN "stdin"
#define STDOUT "stdout" #define STDOUT "stdout"
#define MAXSNAPLEN 65535 #define MAXSNAPLEN 65535
#define SZUUID 128 #define SZUUID 16
#define SZUUID_TEXT 37 #define SZUUID_TEXT 37
#define INSERT_ERROR(...) do { \ #define INSERT_ERROR(...) do { \
if (d4->err_idx < NERRORS) \ if (d4->err_idx < NERRORS) \
@ -20,7 +20,7 @@
typedef struct d4_header_s { typedef struct d4_header_s {
uint8_t version; uint8_t version;
uint8_t type; uint8_t type;
uint8_t uuid[128]; uint8_t uuid[SZUUID];
uint64_t timestamp; uint64_t timestamp;
uint8_t hmac[256]; uint8_t hmac[256];
uint32_t size; uint32_t size;