Deleted Added
full compact
traceroute6.c (103133) traceroute6.c (108533)
1/* $KAME: traceroute6.c,v 1.42 2001/05/08 04:36:41 itojun Exp $ */
2
3/*
4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

71 The Regents of the University of California. All rights reserved.\n";
72#endif /* not lint */
73
74#ifndef lint
75#if 0
76static char sccsid[] = "@(#)traceroute.c 8.1 (Berkeley) 6/6/93";
77#endif
78static const char rcsid[] =
1/* $KAME: traceroute6.c,v 1.42 2001/05/08 04:36:41 itojun Exp $ */
2
3/*
4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

71 The Regents of the University of California. All rights reserved.\n";
72#endif /* not lint */
73
74#ifndef lint
75#if 0
76static char sccsid[] = "@(#)traceroute.c 8.1 (Berkeley) 6/6/93";
77#endif
78static const char rcsid[] =
79 "$FreeBSD: head/usr.sbin/traceroute6/traceroute6.c 103133 2002-09-09 16:43:18Z nectar $";
79 "$FreeBSD: head/usr.sbin/traceroute6/traceroute6.c 108533 2003-01-01 18:49:04Z schweikh $";
80#endif /* not lint */
81
82/*
83 * traceroute host - trace the route ip packets follow going to "host".
84 *
85 * Attempt to trace the route an ip packet would follow to some
86 * internet host. We find out intermediate hops by launching probe
87 * packets with a small ttl (time to live) then listening for an

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

200 * -----
201 * This program must be run by root or be setuid. (I suggest that
202 * you *don't* make it setuid -- casual use could result in a lot
203 * of unnecessary traffic on our poor, congested nets.)
204 *
205 * This program requires a kernel mod that does not appear in any
206 * system available from Berkeley: A raw ip socket using proto
207 * IPPROTO_RAW must interpret the data sent as an ip datagram (as
80#endif /* not lint */
81
82/*
83 * traceroute host - trace the route ip packets follow going to "host".
84 *
85 * Attempt to trace the route an ip packet would follow to some
86 * internet host. We find out intermediate hops by launching probe
87 * packets with a small ttl (time to live) then listening for an

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

200 * -----
201 * This program must be run by root or be setuid. (I suggest that
202 * you *don't* make it setuid -- casual use could result in a lot
203 * of unnecessary traffic on our poor, congested nets.)
204 *
205 * This program requires a kernel mod that does not appear in any
206 * system available from Berkeley: A raw ip socket using proto
207 * IPPROTO_RAW must interpret the data sent as an ip datagram (as
208 * opposed to data to be wrapped in a ip datagram). See the README
208 * opposed to data to be wrapped in an ip datagram). See the README
209 * file that came with the source to this program for a description
210 * of the mods I made to /sys/netinet/raw_ip.c. Your mileage may
211 * vary. But, again, ANY 4.x (x < 4) BSD KERNEL WILL HAVE TO BE
212 * MODIFIED TO RUN THIS PROGRAM.
213 *
214 * The udp port usage may appear bizarre (well, ok, it is bizarre).
215 * The problem is that an icmp message only contains 8 bytes of
216 * data from the original datagram. 8 bytes is the size of a udp

--- 1141 unchanged lines hidden ---
209 * file that came with the source to this program for a description
210 * of the mods I made to /sys/netinet/raw_ip.c. Your mileage may
211 * vary. But, again, ANY 4.x (x < 4) BSD KERNEL WILL HAVE TO BE
212 * MODIFIED TO RUN THIS PROGRAM.
213 *
214 * The udp port usage may appear bizarre (well, ok, it is bizarre).
215 * The problem is that an icmp message only contains 8 bytes of
216 * data from the original datagram. 8 bytes is the size of a udp

--- 1141 unchanged lines hidden ---