From: xentec Date: Tue, 17 Feb 2015 03:02:35 +0000 (+0100) Subject: Fix compile errors introduced in cfe9285adf391ab66faeb5def811fe08e47a221a X-Git-Tag: release-1.1pre12~200 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=537c3528863c4736e877c4d1b6c6579940e6df5d;p=tinc Fix compile errors introduced in cfe9285adf391ab66faeb5def811fe08e47a221a Compiling with `--disable-legacy-protocol` resulted in failure caused by the missing exclusion of some symbols in net_packet.c. --- diff --git a/src/net_packet.c b/src/net_packet.c index abd83a9d..9e57df5b 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -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) {