Deleted Added
full compact
ip6.c (158160) ip6.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/ip6.c 158160 2006-04-30 04:26:46Z bde $");
36__FBSDID("$FreeBSD: head/usr.bin/systat/ip6.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*/

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

7000 IPv6 Input IPv6 Output
71019999999 total packets received 999999999 total packets sent
72029999999 - too short for header 999999999 - generated locally
73039999999 - too short for data 999999999 - output drops
74049999999 - with invalid version 999999999 output fragments generated
75059999999 total fragments received 999999999 - fragmentation failed
76069999999 - fragments dropped 999999999 destinations unreachable
77079999999 - fragments timed out 999999999 packets output via raw IP
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*/

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

7000 IPv6 Input IPv6 Output
71019999999 total packets received 999999999 total packets sent
72029999999 - too short for header 999999999 - generated locally
73039999999 - too short for data 999999999 - output drops
74049999999 - with invalid version 999999999 output fragments generated
75059999999 total fragments received 999999999 - fragmentation failed
76069999999 - fragments dropped 999999999 destinations unreachable
77079999999 - fragments timed out 999999999 packets output via raw IP
78089999999 - fragments overflown
78089999999 - fragments overflown
79099999999 - packets reassembled ok Input next-header histogram
80109999999 packets forwarded 999999999 - destination options
81119999999 - unreachable dests 999999999 - hop-by-hop options
82129999999 - redirects generated 999999999 - IPv4
83139999999 option errors 999999999 - TCP
84149999999 unwanted multicasts 999999999 - UDP
85159999999 delivered to upper layer 999999999 - IPv6
86169999999 bad scope packets 999999999 - routing header
87179999999 address selection failed 999999999 - fragmentation header
8818 999999999 - ICMP6
79099999999 - packets reassembled ok Input next-header histogram
80109999999 packets forwarded 999999999 - destination options
81119999999 - unreachable dests 999999999 - hop-by-hop options
82129999999 - redirects generated 999999999 - IPv4
83139999999 option errors 999999999 - TCP
84149999999 unwanted multicasts 999999999 - UDP
85159999999 delivered to upper layer 999999999 - IPv6
86169999999 bad scope packets 999999999 - routing header
87179999999 address selection failed 999999999 - fragmentation header
8818 999999999 - ICMP6
8919 999999999 - none
8919 999999999 - none
90--0123456789012345678901234567890123456789012345678901234567890123456789012345
91--0 1 2 3 4 5 6 7
92*/
93
94WINDOW *
95openip6(void)
96{
97 return (subwin(stdscr, LINES-3-1, 0, MAINWIN_ROW, 0));

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

183 DO(ip6s_rawout);
184 DO(ip6s_notmember);
185 for (i = 0; i < 256; i++)
186 DO(ip6s_nxthist[i]);
187 DO(ip6s_badscope);
188 DO(ip6s_sources_none);
189#undef DO
190}
90--0123456789012345678901234567890123456789012345678901234567890123456789012345
91--0 1 2 3 4 5 6 7
92*/
93
94WINDOW *
95openip6(void)
96{
97 return (subwin(stdscr, LINES-3-1, 0, MAINWIN_ROW, 0));

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

183 DO(ip6s_rawout);
184 DO(ip6s_notmember);
185 for (i = 0; i < 256; i++)
186 DO(ip6s_nxthist[i]);
187 DO(ip6s_badscope);
188 DO(ip6s_sources_none);
189#undef DO
190}
191
191
192void
193showip6(void)
194{
195 struct ip6stat stats;
196 u_long totalout;
197
198 domode(&stats);
199 totalout = stats.ip6s_forward + stats.ip6s_localout;

--- 106 unchanged lines hidden ---
192void
193showip6(void)
194{
195 struct ip6stat stats;
196 u_long totalout;
197
198 domode(&stats);
199 totalout = stats.ip6s_forward + stats.ip6s_localout;

--- 106 unchanged lines hidden ---