X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fsptps.h;h=efca2b3eab05e0b364ec61c780183b6c2e0c22ba;hp=3f8d29c6925a76e9a709c16c44c8cd6a5181e7b6;hb=66f325f4674e70d83744626f3b8dda6760f8d613;hpb=c35bfa18ec49439d4a028990fcf0ae6d8c4508a5 diff --git a/src/sptps.h b/src/sptps.h index 3f8d29c6..efca2b3e 100644 --- a/src/sptps.h +++ b/src/sptps.h @@ -39,6 +39,9 @@ #define SPTPS_SIG 3 // Waiting for a SIGnature record #define SPTPS_ACK 4 // Waiting for an ACKnowledgement record +// Overhead for datagrams +#define SPTPS_DATAGRAM_OVERHEAD 21 + typedef bool (*send_data_t)(void *handle, uint8_t type, const char *data, size_t len); typedef bool (*receive_record_t)(void *handle, uint8_t type, const char *data, uint16_t len);