Fix compile errors introduced in cfe9285adf
Compiling with `--disable-legacy-protocol` resulted in failure caused by the missing exclusion of some symbols in net_packet.c.
This commit is contained in:
parent
cffcaf966b
commit
537c352886
1 changed files with 2 additions and 0 deletions
|
@ -958,6 +958,7 @@ static length_t choose_initial_maxmtu(node_t *n) {
|
|||
mtu -= SPTPS_DATAGRAM_OVERHEAD;
|
||||
if((n->options >> 24) >= 4)
|
||||
mtu -= sizeof(node_id_t) + sizeof(node_id_t);
|
||||
#ifndef DISABLE_LEGACY
|
||||
} else {
|
||||
mtu -= digest_length(n->outdigest);
|
||||
|
||||
|
@ -977,6 +978,7 @@ static length_t choose_initial_maxmtu(node_t *n) {
|
|||
}
|
||||
|
||||
mtu -= 4; // seqno
|
||||
#endif
|
||||
}
|
||||
|
||||
if (mtu < 512) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue