On Wed, Apr 8, 2009 at 12:57 PM, Jean Christophe Andr?
<jean-christophe.andre at auf.org> wrote:
> Nguyen Vu Hung a ?crit :
>> Please run the following command on the CentOS 5.2
>> ?rpm -qf /bin/traceroute
>> # On CentOS 4.4 (no tracert alias to traceroute), it gives
>> traceroute-1.4a12-24.EL4.1
>>
> ?$ rpm -qf /bin/traceroute
> ?traceroute-2.0.1-3.el5
>
>> I think the GNU project has been a good job making GNU/Linux more 
>> Windows-looking :D
>>
> If you by "good job" you mean letting people keep by habits to do daily
> work as "root" (because using "tracert" requires it) and having half the
> information they should get (because ICMP are usually more filtered than
> UDP, or dropped by overloaded routers), then we just appear to not agree
> on the definition of a "good job". ;-)
>
> What's quite funny here is that in this specific case using "root
> powers" gives you less! :-D

traceroute checks the program name when it is called.
When the name of the program is tracert, it uses ICMP,

traceroute-2.0.12 does *NOT* create any symlink "tracert",
the RPM packagers does.

For your curiousness, I include the function that does the check in
traceroute[1]

The symlink has been dropped by Redhat packagers so
I think in the next versions of CentOS - which is a sub-stream from
Fedore project -
will reflex the change[2]

[1] traceroute-2.0.12/traceroute/traceroute.c:164
/*  Set initial parameters according to how we was called   */
static void check_progname (const char *name) {
        const char *p;
        int l;

        p = strrchr (name, '/');
        if (p)  p++;
        else  p = name;

        l = strlen (p);
        if (l <= 0)  return;
        l--;

        if (p[l] == '6')  af = AF_INET6;
        else if (p[l] == '4')  af = AF_INET;

        if (!strncmp (p, "tcp", 3))
                module = "tcp";
        if (!strncmp (p, "tracert", 7))
                module = "icmp";

        return;
}

[2]
%changelog
* Wed Feb 25 2009 Fedora Release Engineering
<rel-eng at lists.fedoraproject.org> - 3:2.0.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Wed Sep 17 2008 Dmitry Butskoy <Dmitry at Butskoy.name>  - 3:2.0.12-1
- update to 2.0.12 (fixes #461278 and #461626)
- this release adds support for icmp extensions (including MPLS),
  which was expected for a long time (#176588)
- drop "tracert" symlink (#461109)


>
> FYI:
>
> ?# tracert google.com
> ?traceroute to google.com (74.125.67.100), 30 hops max, 40 byte packets
> ? 1 ?wifi.home (A.B.C.D) ?0.892 ms ?1.259 ms ?2.533 ms
> ? 2 ?123.24.0.1 (123.24.0.1) ?26.108 ms ?28.048 ms *
> ? 3 ?* * *
> ? 4 ?* * *
> ? 5 ?* * *
> ? 6 ?* * *
> ? 7 ?* 222.255.165.22 (222.255.165.22) ?33.242 ms ?36.140 ms
> ? 8 ?* * *
> ? 9 ?* * *
> ?10 ?* * *
> ?11 ?* * *
> ?12 ?* * 209.85.243.158 (209.85.243.158) ?71.740 ms
> ?13 ?209.85.254.155 (209.85.254.155) ?118.894 ms * *
> ?14 ?* * *
> ?15 ?* * *
> ?16 ?* * *
> ?17 ?* * *
> ?18 ?* 209.85.254.249 (209.85.254.249) ?288.041 ms ?291.860 ms
> ?19 ?* * *
> ?20 ?* * *
> ?21 ?* * *
> ?22 ?* * *
> ?23 ?* * gw-in-f100.google.com (74.125.67.100) ?293.627 ms
>
> ?$ traceroute google.com
> ?traceroute to google.com (209.85.171.100), 30 hops max, 40 byte packets
> ? 1 ?wifi.home (A.B.C.D) ?0.812 ms ?2.034 ms ?2.421 ms
> ? 2 ?123.24.0.1 (123.24.0.1) ?26.167 ms ?27.911 ms ?29.808 ms
> ? 3 ?203.210.148.13 (203.210.148.13) ?32.224 ms ?36.137 ms ?34.112 ms
> ? 4 ?203.210.148.1 (203.210.148.1) ?38.258 ms ?46.354 ms ?44.391 ms
> ? 5 ?localhost (123.30.63.73) ?40.340 ms ?41.780 ms ?56.045 ms
> ? 6 ?203.162.231.214 (203.162.231.214) ?60.273 ms ?62.285 ms ?57.117 ms
> ? 7 ?222.255.165.22 (222.255.165.22) ?62.265 ms ?118.302 ms ?119.009 ms
> ? 8 ?203.208.192.65 (203.208.192.65) ?90.643 ms 203.208.192.21
> (203.208.192.21) ?89.175 ms 203.208.192.33 (203.208.192.33) ?89.947 ms
> ? 9 ?ge-1-1-1-0.sngc3-dr1.ix.singtel.com (203.208.172.121) ?123.791 ms
> ge-1-1-4-0.sngc3-dr1.ix.singtel.com (203.208.172.169) ?65.215 ms ?67.528 ms
> ?10 ?ge-4-0-0-0.sngtp-dr2.ix.singtel.com (203.208.151.161) ?72.226 ms
> 72.841 ms ?76.009 ms
> ?11 ?74.125.50.225 (74.125.50.225) ?79.991 ms ?89.981 ms ?83.774 ms
> ?12 ?209.85.243.158 (209.85.243.158) ?88.200 ms ?86.147 ms ?72.185 ms
> ?13 ?209.85.254.155 (209.85.254.155) ?116.293 ms ?118.674 ms ?120.667 ms
> ?14 ?209.85.255.59 (209.85.255.59) ?128.698 ms 209.85.242.251
> (209.85.242.251) ?253.471 ms 209.85.255.59 (209.85.255.59) ?118.861 ms
> ?15 ?216.239.48.34 (216.239.48.34) ?242.217 ms ?243.986 ms
> 216.239.43.212 (216.239.43.212) ?262.745 ms
> ?16 ?64.233.174.103 (64.233.174.103) ?258.188 ms ?255.807 ms
> 64.233.174.101 (64.233.174.101) ?261.669 ms
> ?17 ?209.85.251.145 (209.85.251.145) ?254.248 ms 64.233.174.99
> (64.233.174.99) ?340.182 ms 209.85.251.149 (209.85.251.149) ?278.944 ms
> ?18 ?209.85.251.141 (209.85.251.141) ?263.299 ms 209.85.251.133
> (209.85.251.133) ?245.057 ms ?257.624 ms
> ?19 ?74.125.30.2 (74.125.30.2) ?253.567 ms ?254.177 ms 74.125.31.2
> (74.125.31.2) ?267.972 ms
> ?20 ?cg-in-f100.google.com (209.85.171.100) ?243.566 ms ?263.046 ms
> 263.663 ms
>
> --
> Jean Christophe "????" ANDR? ? ? ? ? ? Responsable technique r?gional
> Bureau Asie-Pacifique (BAP) ? ?? ? ? ? http://www.asie-pacifique.auf.org/
> Agence universitaire de la Francophonie (AuF) ?? ? ? ?http://www.auf.org/
> Adresse postale : AUF, 21 L? Th?nh T?ng, T.T. Ho?n Ki?m, H? N?i, Vi?t Nam
> T?l. : +84 4 9331108 ?? ?Fax : +84 4 8247383 ?? ?Cellul. : +84 91 3248747
> ? Note personnelle: merci d'?viter de m'envoyer des fichiers PowerPoint ?
> ? ou Word, cf http://www.gnu.org/philosophy/no-word-attachments.fr.html ?
>
> _______________________________________________
> POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines
> _______________________________________________
> HanoiLUG mailing lists: http://lists.hanoilug.org/
> HanoiLUG wiki: http://wiki.hanoilug.org/
> HanoiLUG blog: http://blog.hanoilug.org/



-- 
Best Regards,
Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguy?n V? H?ng )
vuhung16plus{[email protected] , YIM: vuhung16 , Skype: vuhung16dg
A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html

Trả lời cho