inet6.c (186498) | inet6.c (187134) |
---|---|
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: --- 25 unchanged lines hidden (view full) --- 34 35#if 0 36#ifndef lint 37static char sccsid[] = "@(#)inet6.c 8.4 (Berkeley) 4/20/94"; 38#endif /* not lint */ 39#endif 40 41#include <sys/cdefs.h> | 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: --- 25 unchanged lines hidden (view full) --- 34 35#if 0 36#ifndef lint 37static char sccsid[] = "@(#)inet6.c 8.4 (Berkeley) 4/20/94"; 38#endif /* not lint */ 39#endif 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/usr.bin/netstat/inet6.c 186498 2008-12-26 07:16:20Z maxim $"); | 42__FBSDID("$FreeBSD: head/usr.bin/netstat/inet6.c 187134 2009-01-13 07:58:57Z maxim $"); |
43 44#ifdef INET6 45#include <sys/param.h> 46#include <sys/socket.h> 47#include <sys/socketvar.h> 48#include <sys/ioctl.h> 49#include <sys/mbuf.h> 50#include <sys/protosw.h> --- 810 unchanged lines hidden (view full) --- 861 } 862 } else 863 kread(off, &icmp6stat, len); 864 865 printf("%s:\n", name); 866 867#define p(f, m) if (icmp6stat.f || sflag <= 1) \ 868 printf(m, (uintmax_t)icmp6stat.f, plural(icmp6stat.f)) | 43 44#ifdef INET6 45#include <sys/param.h> 46#include <sys/socket.h> 47#include <sys/socketvar.h> 48#include <sys/ioctl.h> 49#include <sys/mbuf.h> 50#include <sys/protosw.h> --- 810 unchanged lines hidden (view full) --- 861 } 862 } else 863 kread(off, &icmp6stat, len); 864 865 printf("%s:\n", name); 866 867#define p(f, m) if (icmp6stat.f || sflag <= 1) \ 868 printf(m, (uintmax_t)icmp6stat.f, plural(icmp6stat.f)) |
869#define p_5(f, m) printf(m, (uintmax_t)icmp6stat.f) | 869#define p_5(f, m) if (icmp6stat.f || sflag <= 1) \ 870 printf(m, (uintmax_t)icmp6stat.f) |
870 871 p(icp6s_error, "\t%ju call%s to icmp6_error\n"); 872 p(icp6s_canterror, 873 "\t%ju error%s not generated in response to an icmp6 message\n"); 874 p(icp6s_toofreq, 875 "\t%ju error%s not generated because of rate limitation\n"); 876#define NELEM (int)(sizeof(icmp6stat.icp6s_outhist)/sizeof(icmp6stat.icp6s_outhist[0])) 877 for (first = 1, i = 0; i < NELEM; i++) --- 279 unchanged lines hidden --- | 871 872 p(icp6s_error, "\t%ju call%s to icmp6_error\n"); 873 p(icp6s_canterror, 874 "\t%ju error%s not generated in response to an icmp6 message\n"); 875 p(icp6s_toofreq, 876 "\t%ju error%s not generated because of rate limitation\n"); 877#define NELEM (int)(sizeof(icmp6stat.icp6s_outhist)/sizeof(icmp6stat.icp6s_outhist[0])) 878 for (first = 1, i = 0; i < NELEM; i++) --- 279 unchanged lines hidden --- |