many thanx for your answer. I understand what you mean. But my main problem is how to interpret the diff output, how do I count the route differences. This code should run mainly on OpenBSD and Linux. Traceroute and diff operates the same way on these OSs according to my tests.
Many thanx in advance.