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:
xentec 2015-02-17 04:02:35 +01:00
parent cffcaf966b
commit 537c352886

View 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) {