Deleted Added
full compact
inet6.c (54263) inet6.c (55163)
1/* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */
2/*
3 * Copyright (c) 1983, 1988, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
1/* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */
2/*
3 * Copyright (c) 1983, 1988, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $FreeBSD: head/usr.bin/netstat/inet6.c 54263 1999-12-07 17:39:16Z shin $
34 * $FreeBSD: head/usr.bin/netstat/inet6.c 55163 1999-12-28 02:37:14Z shin $
35 */
36
37#ifndef lint
38/*
39static char sccsid[] = "@(#)inet6.c 8.4 (Berkeley) 4/20/94";
40*/
41#endif /* not lint */
42

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

385 first = 0;
386 }
387 printf("\t\t%s: %lu\n", ip6nh[i],
388 ip6stat.ip6s_nxthist[i]);
389 }
390 printf("\tMbuf statistics:\n");
391 printf("\t\t%lu one mbuf\n", ip6stat.ip6s_m1);
392 for (first = 1, i = 0; i < 32; i++) {
35 */
36
37#ifndef lint
38/*
39static char sccsid[] = "@(#)inet6.c 8.4 (Berkeley) 4/20/94";
40*/
41#endif /* not lint */
42

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

385 first = 0;
386 }
387 printf("\t\t%s: %lu\n", ip6nh[i],
388 ip6stat.ip6s_nxthist[i]);
389 }
390 printf("\tMbuf statistics:\n");
391 printf("\t\t%lu one mbuf\n", ip6stat.ip6s_m1);
392 for (first = 1, i = 0; i < 32; i++) {
393 char ifbuf[IFNAMSIZ];
393 if (ip6stat.ip6s_m2m[i] != 0) {
394 if (first) {
395 printf("\t\ttwo or more mbuf:\n");
396 first = 0;
397 }
394 if (ip6stat.ip6s_m2m[i] != 0) {
395 if (first) {
396 printf("\t\ttwo or more mbuf:\n");
397 first = 0;
398 }
398 printf("\t\t\t"
399#ifdef notyet
400 "%s"
401#else
402 "if%d"
403#endif
404 "= %ld\n",
405#ifdef notyet
399 printf("\t\t\t%s= %ld\n",
406 if_indextoname(i, ifbuf),
400 if_indextoname(i, ifbuf),
407#else
408 i,
409#endif
410 ip6stat.ip6s_m2m[i]);
411 }
412 }
413 printf("\t\t%lu one ext mbuf\n", ip6stat.ip6s_mext1);
414 printf("\t\t%lu two or more ext mbuf\n", ip6stat.ip6s_mext2m);
415 p(ip6s_exthdrtoolong, "\t%lu packet%s whose headers are not continuous\n");
416 p(ip6s_nogif, "\t%lu tunneling packet%s that can't find gif\n");
417 p(ip6s_toomanyhdr, "\t%lu packet%s discarded due to too may headers\n");

--- 545 unchanged lines hidden ---
401 ip6stat.ip6s_m2m[i]);
402 }
403 }
404 printf("\t\t%lu one ext mbuf\n", ip6stat.ip6s_mext1);
405 printf("\t\t%lu two or more ext mbuf\n", ip6stat.ip6s_mext2m);
406 p(ip6s_exthdrtoolong, "\t%lu packet%s whose headers are not continuous\n");
407 p(ip6s_nogif, "\t%lu tunneling packet%s that can't find gif\n");
408 p(ip6s_toomanyhdr, "\t%lu packet%s discarded due to too may headers\n");

--- 545 unchanged lines hidden ---