Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/netstat try to lookup /etc/protocols for histogram
details: https://anonhg.NetBSD.org/src/rev/7d25d616db49
branches: trunk
changeset: 500635:7d25d616db49
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Dec 14 20:38:10 2000 +0000
description:
try to lookup /etc/protocols for histogram
diffstat:
usr.bin/netstat/inet6.c | 338 ++++++++++++-----------------------------------
1 files changed, 90 insertions(+), 248 deletions(-)
diffs (truncated from 393 to 300 lines):
diff -r 642290770c56 -r 7d25d616db49 usr.bin/netstat/inet6.c
--- a/usr.bin/netstat/inet6.c Thu Dec 14 20:37:57 2000 +0000
+++ b/usr.bin/netstat/inet6.c Thu Dec 14 20:38:10 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inet6.c,v 1.15 2000/12/11 17:52:43 itojun Exp $ */
+/* $NetBSD: inet6.c,v 1.16 2000/12/14 20:38:10 itojun Exp $ */
/* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */
/*
@@ -68,7 +68,7 @@
#if 0
static char sccsid[] = "@(#)inet.c 8.4 (Berkeley) 4/20/94";
#else
-__RCSID("$NetBSD: inet6.c,v 1.15 2000/12/11 17:52:43 itojun Exp $");
+__RCSID("$NetBSD: inet6.c,v 1.16 2000/12/14 20:38:10 itojun Exp $");
#endif
#endif /* not lint */
@@ -355,262 +355,93 @@
}
static char *ip6nh[] = {
- "hop by hop",
+/*0*/ "hop by hop",
"ICMP",
"IGMP",
- "#3",
+ NULL,
"IP",
- "#5",
+/*5*/ NULL,
"TCP",
- "#7",
- "#8",
- "#9",
- "#10",
- "#11",
- "#12",
- "#13",
- "#14",
- "#15",
- "#16",
+ NULL,
+ NULL,
+ NULL,
+/*10*/ NULL, NULL, NULL, NULL, NULL,
+/*15*/ NULL,
+ NULL,
"UDP",
- "#18",
- "#19",
- "#20",
- "#21",
+ NULL,
+ NULL,
+/*20*/ NULL,
+ NULL,
"IDP",
- "#23",
- "#24",
- "#25",
- "#26",
- "#27",
- "#28",
- "TP",
- "#30",
- "#31",
- "#32",
- "#33",
- "#34",
- "#35",
- "#36",
- "#37",
- "#38",
- "#39",
- "#40",
+ NULL,
+ NULL,
+/*25*/ NULL,
+ NULL,
+ NULL,
+ NULL,
+ "TP",
+/*30*/ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+/*40*/ NULL,
"IP6",
- "#42",
+ NULL,
"routing",
"fragment",
- "#45",
- "#46",
- "#47",
- "#48",
- "#49",
- "ESP",
+/*45*/ NULL, NULL, NULL, NULL, NULL,
+/*50*/ "ESP",
"AH",
- "#52",
- "#53",
- "#54",
- "#55",
- "#56",
- "#57",
+ NULL,
+ NULL,
+ NULL,
+/*55*/ NULL,
+ NULL,
+ NULL,
"ICMP6",
- "no next header",
- "destination option",
- "#61",
- "#62",
- "#63",
- "#64",
- "#65",
- "#66",
- "#67",
- "#68",
- "#69",
- "#70",
- "#71",
- "#72",
- "#73",
- "#74",
- "#75",
- "#76",
- "#77",
- "#78",
- "#79",
- "ISOIP",
- "#81",
- "#82",
- "#83",
- "#84",
- "#85",
- "#86",
- "#87",
- "#88",
- "OSPF",
- "#80",
- "#91",
- "#92",
- "#93",
- "#94",
- "#95",
- "#96",
+ "no next header",
+/*60*/ "destination option",
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+/*65*/ NULL, NULL, NULL, NULL, NULL,
+/*70*/ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+/*80*/ "ISOIP",
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ "OSPF",
+/*90*/ NULL, NULL, NULL, NULL, NULL,
+/*95*/ NULL,
+ NULL,
"Ethernet",
- "#98",
- "#99",
- "#100",
- "#101",
- "#102",
+ NULL,
+ NULL,
+/*100*/ NULL,
+ NULL,
+ NULL,
"PIM",
- "#104",
- "#105",
- "#106",
- "#107",
- "#108",
- "#109",
- "#110",
- "#111",
- "#112",
- "#113",
- "#114",
- "#115",
- "#116",
- "#117",
- "#118",
- "#119",
- "#120",
- "#121",
- "#122",
- "#123",
- "#124",
- "#125",
- "#126",
- "#127",
- "#128",
- "#129",
- "#130",
- "#131",
- "#132",
- "#133",
- "#134",
- "#135",
- "#136",
- "#137",
- "#138",
- "#139",
- "#140",
- "#141",
- "#142",
- "#143",
- "#144",
- "#145",
- "#146",
- "#147",
- "#148",
- "#149",
- "#150",
- "#151",
- "#152",
- "#153",
- "#154",
- "#155",
- "#156",
- "#157",
- "#158",
- "#159",
- "#160",
- "#161",
- "#162",
- "#163",
- "#164",
- "#165",
- "#166",
- "#167",
- "#168",
- "#169",
- "#170",
- "#171",
- "#172",
- "#173",
- "#174",
- "#175",
- "#176",
- "#177",
- "#178",
- "#179",
- "#180",
- "#181",
- "#182",
- "#183",
- "#184",
- "#185",
- "#186",
- "#187",
- "#188",
- "#189",
- "#180",
- "#191",
- "#192",
- "#193",
- "#194",
- "#195",
- "#196",
- "#197",
- "#198",
- "#199",
- "#200",
- "#201",
- "#202",
- "#203",
- "#204",
- "#205",
- "#206",
- "#207",
- "#208",
- "#209",
- "#210",
- "#211",
- "#212",
- "#213",
- "#214",
- "#215",
- "#216",
- "#217",
- "#218",
- "#219",
- "#220",
Home |
Main Index |
Thread Index |
Old Index