projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cffcaf9
)
Fix compile errors introduced in cfe9285adf391ab66faeb5def811fe08e47a221a
author
xentec
<artificial.i7@gmail.com>
Tue, 17 Feb 2015 03:02:35 +0000
(
04:02
+0100)
committer
xentec
<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
patch
|
blob
|
history
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
abd83a9
..
9e57df5
100644
(file)
--- 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) {