ip.c (158160) | ip.c (158161) |
---|---|
1/*- 2 * Copyright (c) 1980, 1992, 1993 3 * The 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 --- 19 unchanged lines hidden (view full) --- 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> 35 | 1/*- 2 * Copyright (c) 1980, 1992, 1993 3 * The 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 --- 19 unchanged lines hidden (view full) --- 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> 35 |
36__FBSDID("$FreeBSD: head/usr.bin/systat/ip.c 158160 2006-04-30 04:26:46Z bde $"); | 36__FBSDID("$FreeBSD: head/usr.bin/systat/ip.c 158161 2006-04-30 04:47:23Z bde $"); |
37 38#ifdef lint 39static const char sccsid[] = "@(#)mbufs.c 8.1 (Berkeley) 6/6/93"; 40#endif 41 42/* From: 43 "Id: mbufs.c,v 1.5 1997/02/24 20:59:03 wollman Exp" 44*/ --- 151 unchanged lines hidden (view full) --- 196 DO(u.udps_nosum); 197 DO(u.udps_badlen); 198 DO(u.udps_noport); 199 DO(u.udps_noportbcast); 200 DO(u.udps_fullsock); 201 DO(u.udps_opackets); 202#undef DO 203} | 37 38#ifdef lint 39static const char sccsid[] = "@(#)mbufs.c 8.1 (Berkeley) 6/6/93"; 40#endif 41 42/* From: 43 "Id: mbufs.c,v 1.5 1997/02/24 20:59:03 wollman Exp" 44*/ --- 151 unchanged lines hidden (view full) --- 196 DO(u.udps_nosum); 197 DO(u.udps_badlen); 198 DO(u.udps_noport); 199 DO(u.udps_noportbcast); 200 DO(u.udps_fullsock); 201 DO(u.udps_opackets); 202#undef DO 203} |
204 | 204 |
205void 206showip(void) 207{ 208 struct stat stats; 209 u_long totalout; 210 211 domode(&stats); 212 totalout = stats.i.ips_forward + stats.i.ips_localout; --- 133 unchanged lines hidden --- | 205void 206showip(void) 207{ 208 struct stat stats; 209 u_long totalout; 210 211 domode(&stats); 212 totalout = stats.i.ips_forward + stats.i.ips_localout; --- 133 unchanged lines hidden --- |