From: Peter J. (Visiq) <P.J...@vi...> - 2004-12-08 01:31:37
|
>>Hi all, >> >>I just upgraded to 1.2.1 and found the following problems: >>- The traceroute -i / -s bug is back! >> =20 >I just checked the sources, the patch should be applied.... >What was the exact problem again? With is -i / -s option you can specify the source ip address used for the traceroute. Without the following patch this is not working. Without this option traceroute is brain dead if you are using rule based routing (iproute2). ----------------------------------------------------------------------- --- traceroute-1.4a12-org/traceroute.c 2004-05-20 08:58:34.082938408 +0000 +++ traceroute-1.4a12/traceroute.c 2004-05-20 09:00:05.743581806 +0000 @@ -756,13 +756,12 @@ setuid(getuid()); =20 outip->ip_src =3D from->sin_addr; -#ifndef IP_HDRINCL + if (bind(sndsock, (struct sockaddr *)from, sizeof(*from)) < 0) { Fprintf(stderr, "%s: bind: %s\n", prog, strerror(errno)); exit (1); } -#endif =20 Fprintf(stderr, "%s to %s (%s)", prog, hostname, inet_ntoa(to->sin_addr)); ----------------------------------------------------------------------- |