Allow a different loss_limit per path

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2020-03-07 14:27:47 +00:00
parent 2f966bb365
commit d68aee8249
3 changed files with 14 additions and 17 deletions

5
mud.h
View File

@@ -26,7 +26,6 @@ struct mud_conf {
unsigned long keepalive;
unsigned long timetolerance;
unsigned long kxtimeout;
unsigned losslimit;
int tc;
};
@@ -65,6 +64,7 @@ struct mud_path {
uint64_t rx_max_rate;
uint64_t beat;
unsigned char fixed_rate;
unsigned char loss_limit;
} conf;
uint64_t idle;
unsigned char ok;
@@ -95,7 +95,8 @@ int mud_set_aes (struct mud *);
int mud_set_conf (struct mud *, struct mud_conf *);
int mud_set_state (struct mud *, struct sockaddr *, enum mud_state,
unsigned long, unsigned long, unsigned long, unsigned char);
unsigned long, unsigned long, unsigned long,
unsigned char, unsigned char);
int mud_peer (struct mud *, struct sockaddr *);