Deleted Added
full compact
traceroute.c (149509) traceroute.c (154192)
1/*
2 * Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 14 unchanged lines hidden (view full) ---

23static const char copyright[] =
24 "@(#) Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000\n\
25The Regents of the University of California. All rights reserved.\n";
26#if 0
27static const char rcsid[] =
28 "@(#)$Id: traceroute.c,v 1.68 2000/12/14 08:04:33 leres Exp $ (LBL)";
29#endif
30static const char rcsid[] =
1/*
2 * Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 14 unchanged lines hidden (view full) ---

23static const char copyright[] =
24 "@(#) Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000\n\
25The Regents of the University of California. All rights reserved.\n";
26#if 0
27static const char rcsid[] =
28 "@(#)$Id: traceroute.c,v 1.68 2000/12/14 08:04:33 leres Exp $ (LBL)";
29#endif
30static const char rcsid[] =
31 "$FreeBSD: head/contrib/traceroute/traceroute.c 149509 2005-08-26 18:08:24Z andre $";
31 "$FreeBSD: head/contrib/traceroute/traceroute.c 154192 2006-01-10 16:48:52Z pav $";
32#endif
33
34/*
35 * traceroute host - trace the route ip packets follow going to "host".
36 *
37 * Attempt to trace the route an ip packet would follow to some
38 * internet host. We find out intermediate hops by launching probe
39 * packets with a small ttl (time to live) then listening for an

--- 901 unchanged lines hidden (view full) ---

941
942 (void)gettimeofday(&t2, &tz);
943 i = packet_ok(packet, cc, from, seq);
944 /* Skip short packet */
945 if (i == 0)
946 continue;
947 if (!gotlastaddr ||
948 from->sin_addr.s_addr != lastaddr) {
32#endif
33
34/*
35 * traceroute host - trace the route ip packets follow going to "host".
36 *
37 * Attempt to trace the route an ip packet would follow to some
38 * internet host. We find out intermediate hops by launching probe
39 * packets with a small ttl (time to live) then listening for an

--- 901 unchanged lines hidden (view full) ---

941
942 (void)gettimeofday(&t2, &tz);
943 i = packet_ok(packet, cc, from, seq);
944 /* Skip short packet */
945 if (i == 0)
946 continue;
947 if (!gotlastaddr ||
948 from->sin_addr.s_addr != lastaddr) {
949 if (probe > 0) printf("\n ");
949 if (gotlastaddr) printf("\n ");
950 print(packet, cc, from);
951 lastaddr = from->sin_addr.s_addr;
952 ++gotlastaddr;
953 }
954 T = deltaT(&t1, &t2);
955#ifdef SANE_PRECISION
956 if (T >= 1000.0)
957 precis = 0;

--- 722 unchanged lines hidden ---
950 print(packet, cc, from);
951 lastaddr = from->sin_addr.s_addr;
952 ++gotlastaddr;
953 }
954 T = deltaT(&t1, &t2);
955#ifdef SANE_PRECISION
956 if (T >= 1000.0)
957 precis = 0;

--- 722 unchanged lines hidden ---