main.c (139463) | main.c (142215) |
---|---|
1/* 2 * Copyright (c) 1983, 1988, 1993 3 * 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 the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 30 unchanged lines hidden (view full) --- 39 40#if 0 41#ifndef lint 42static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 3/1/94"; 43#endif /* not lint */ 44#endif 45 46#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1983, 1988, 1993 3 * 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 the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 30 unchanged lines hidden (view full) --- 39 40#if 0 41#ifndef lint 42static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 3/1/94"; 43#endif /* not lint */ 44#endif 45 46#include <sys/cdefs.h> |
47__FBSDID("$FreeBSD: head/usr.bin/netstat/main.c 139463 2004-12-31 00:32:50Z rwatson $"); | 47__FBSDID("$FreeBSD: head/usr.bin/netstat/main.c 142215 2005-02-22 13:04:05Z glebius $"); |
48 49#include <sys/param.h> 50#include <sys/file.h> 51#include <sys/protosw.h> 52#include <sys/socket.h> 53 54#include <netinet/in.h> 55 --- 75 unchanged lines hidden (view full) --- 131#define N_MBPSTAT 29 132 { "_mb_statpcpu" }, 133#define N_RTTRASH 30 134 { "_rttrash" }, 135#define N_MBLO 31 136 { "_mbuf_lowm" }, 137#define N_CLLO 32 138 { "_clust_lowm" }, | 48 49#include <sys/param.h> 50#include <sys/file.h> 51#include <sys/protosw.h> 52#include <sys/socket.h> 53 54#include <netinet/in.h> 55 --- 75 unchanged lines hidden (view full) --- 131#define N_MBPSTAT 29 132 { "_mb_statpcpu" }, 133#define N_RTTRASH 30 134 { "_rttrash" }, 135#define N_MBLO 31 136 { "_mbuf_lowm" }, 137#define N_CLLO 32 138 { "_clust_lowm" }, |
139#define N_CARPSTAT 33 140 { "_carpstats" }, |
|
139 { "" }, 140}; 141 142struct protox { 143 u_char pr_index; /* index into nlist of cb head */ 144 u_char pr_sindex; /* index into nlist of stat block */ 145 u_char pr_wanted; /* 1 if wanted, 0 otherwise */ 146 void (*pr_cblocks)(u_long, const char *, int); --- 19 unchanged lines hidden (view full) --- 166#ifdef IPSEC 167 { -1, N_IPSECSTAT, 1, NULL, 168 ipsec_stats, NULL, "ipsec", 0}, 169#endif 170 { -1, -1, 1, NULL, 171 bdg_stats, NULL, "bdg", 1 /* bridging... */ }, 172 { -1, -1, 1, protopr, 173 pim_stats, NULL, "pim", IPPROTO_PIM }, | 141 { "" }, 142}; 143 144struct protox { 145 u_char pr_index; /* index into nlist of cb head */ 146 u_char pr_sindex; /* index into nlist of stat block */ 147 u_char pr_wanted; /* 1 if wanted, 0 otherwise */ 148 void (*pr_cblocks)(u_long, const char *, int); --- 19 unchanged lines hidden (view full) --- 168#ifdef IPSEC 169 { -1, N_IPSECSTAT, 1, NULL, 170 ipsec_stats, NULL, "ipsec", 0}, 171#endif 172 { -1, -1, 1, NULL, 173 bdg_stats, NULL, "bdg", 1 /* bridging... */ }, 174 { -1, -1, 1, protopr, 175 pim_stats, NULL, "pim", IPPROTO_PIM }, |
176 { -1, N_CARPSTAT, 1, 0, 177 carp_stats, NULL, "carp", 0}, |
|
174 { -1, -1, 0, NULL, 175 NULL, NULL, NULL, 0 } 176}; 177 178#ifdef INET6 179struct protox ip6protox[] = { 180 { -1, -1, 1, protopr, 181 tcp_stats, NULL, "tcp", IPPROTO_TCP }, --- 517 unchanged lines hidden --- | 178 { -1, -1, 0, NULL, 179 NULL, NULL, NULL, 0 } 180}; 181 182#ifdef INET6 183struct protox ip6protox[] = { 184 { -1, -1, 1, protopr, 185 tcp_stats, NULL, "tcp", IPPROTO_TCP }, --- 517 unchanged lines hidden --- |