Use Dijkstra's algorithm. Based on patches from Max Rijevskiy.
[tinc] / src / linux /
drwxr-xr-x   ..
-rw-r--r-- 5387 device.c