Fix compile errors introduced in cfe9285adf391ab66faeb5def811fe08e47a221a
authorxentec <artificial.i7@gmail.com>
Tue, 17 Feb 2015 03:02:35 +0000 (04:02 +0100)
committerxentec <artificial.i7@gmail.com>
Tue, 17 Feb 2015 03:02:35 +0000 (04:02 +0100)
Compiling with `--disable-legacy-protocol` resulted in failure caused by the missing exclusion of some symbols in net_packet.c.

src/net_packet.c

index abd83a9d3abf0c81458a17d5992afe0bd708e743..9e57df5b12c0af0c2f450b30a8d7bd7e93e4fdde 100644 (file)
@@ -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) {