Don't parse node IDs if the sending node doesn't support them.
authorEtienne Dechamps <etienne@edechamps.fr>
Mon, 18 May 2015 19:48:45 +0000 (20:48 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Mon, 18 May 2015 19:56:16 +0000 (20:56 +0100)
Currently, tinc tries to parse node IDs for all SPTPS packets, including
ones sent from older, pre-node-IDs tinc-1.1 nodes, and therefore doesn't
recognize packets from these nodes. This commit fixes that.

It also makes code slightly clearer by reducing the amount of fiddling
around packet offset/length.


No differences found