Deleted Added
full compact
ping6.c (92883) ping6.c (99540)
1/* $KAME: ping6.c,v 1.126 2001/05/17 03:39:08 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

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

73 The Regents of the University of California. All rights reserved.\n";
74#endif /* not lint */
75
76#ifndef lint
77#if 0
78static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93";
79#endif
80static const char rcsid[] =
1/* $KAME: ping6.c,v 1.126 2001/05/17 03:39:08 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

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

73 The Regents of the University of California. All rights reserved.\n";
74#endif /* not lint */
75
76#ifndef lint
77#if 0
78static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93";
79#endif
80static const char rcsid[] =
81 "$FreeBSD: head/sbin/ping6/ping6.c 92883 2002-03-21 13:20:49Z imp $";
81 "$FreeBSD: head/sbin/ping6/ping6.c 99540 2002-07-07 18:19:48Z ume $";
82#endif /* not lint */
83
84/*
85 * Using the InterNet Control Message Protocol (ICMP) "ECHO" facility,
86 * measure round-trip-delays and packet loss across network paths.
87 *
88 * Author -
89 * Mike Muuss

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

2139 * onint --
2140 * SIGINT handler.
2141 */
2142/* ARGSUSED */
2143void
2144onint(notused)
2145 int notused;
2146{
82#endif /* not lint */
83
84/*
85 * Using the InterNet Control Message Protocol (ICMP) "ECHO" facility,
86 * measure round-trip-delays and packet loss across network paths.
87 *
88 * Author -
89 * Mike Muuss

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

2139 * onint --
2140 * SIGINT handler.
2141 */
2142/* ARGSUSED */
2143void
2144onint(notused)
2145 int notused;
2146{
2147 (void)signal(SIGINT, SIG_IGN);
2148 (void)signal(SIGALRM, SIG_IGN);
2149
2147 summary();
2148
2150 summary();
2151
2149 (void)signal(SIGINT, SIG_DFL);
2150 (void)kill(getpid(), SIGINT);
2151
2152 /* NOTREACHED */
2153 exit(1);
2152 exit(nreceived == 0);
2154}
2155
2156/*
2157 * summary --
2158 * Print out statistics.
2159 */
2160void
2161summary()

--- 548 unchanged lines hidden ---
2153}
2154
2155/*
2156 * summary --
2157 * Print out statistics.
2158 */
2159void
2160summary()

--- 548 unchanged lines hidden ---