Return MTU probing status in mud_update()

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2020-01-03 20:49:04 +00:00
parent 2a812f332f
commit e3689d29b7
3 changed files with 14 additions and 9 deletions

5
mud.h
View File

@@ -70,6 +70,9 @@ struct mud_bad {
struct mud *mud_create (struct sockaddr *);
void mud_delete (struct mud *);
int mud_update (struct mud *);
int mud_send_wait (struct mud *);
int mud_get_fd (struct mud *);
size_t mud_get_mtu (struct mud *);
int mud_get_bad (struct mud *, struct mud_bad *);
@@ -77,8 +80,6 @@ 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 *);
long mud_send_wait (struct mud *);
int mud_set_time_tolerance (struct mud *, unsigned long);
int mud_set_keyx_timeout (struct mud *, unsigned long);
int mud_set_loss_limit (struct mud *, unsigned);