Probe MTU before sending real packets

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-12-21 20:47:46 +00:00
parent 8c033a12a1
commit 569e712248
2 changed files with 70 additions and 72 deletions

10
mud.h
View File

@@ -64,7 +64,6 @@ struct mud_path {
uint64_t window;
uint64_t window_time;
struct mud_pubkey pk;
unsigned char ok;
};
struct mud_bad {
@@ -78,16 +77,13 @@ struct mud_bad {
struct mud *mud_create (struct sockaddr *);
void mud_delete (struct mud *);
int mud_get_fd (struct mud *);
int mud_get_fd (struct mud *);
size_t mud_get_mtu (struct mud *);
int mud_get_bad (struct mud *, struct mud_bad *);
int mud_set_key (struct mud *, unsigned char *, size_t);
int mud_get_key (struct mud *, unsigned char *, size_t *);
void mud_set_mtu (struct mud *, size_t);
size_t mud_get_mtu (struct mud *);
int mud_get_bad (struct mud *, struct mud_bad *);
long mud_send_wait (struct mud *);
int mud_set_time_tolerance (struct mud *, unsigned long);