"Fossies" - the Fresh Open Source Software Archive 
Member "atop-2.8.1/netstats.h" (7 Jan 2023, 4414 Bytes) of package /linux/misc/atop-2.8.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "netstats.h" see the
Fossies "Dox" file reference documentation and the last
Fossies "Diffs" side-by-side code changes report:
2.7.1_vs_2.8.0.
1 /*
2 ** ATOP - System & Process Monitor
3 **
4 ** The program 'atop' offers the possibility to view the activity of
5 ** the system on system-level as well as process-level.
6 ** ==========================================================================
7 ** Author: Gerlof Langeveld
8 ** E-mail: gerlof.langeveld@atoptool.nl
9 ** Date: September 2002
10 ** --------------------------------------------------------------------------
11 ** Copyright (C) 2000-2010 Gerlof Langeveld
12 **
13 ** This program is free software; you can redistribute it and/or modify it
14 ** under the terms of the GNU General Public License as published by the
15 ** Free Software Foundation; either version 2, or (at your option) any
16 ** later version.
17 **
18 ** This program is distributed in the hope that it will be useful, but
19 ** WITHOUT ANY WARRANTY; without even the implied warranty of
20 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 ** See the GNU General Public License for more details.
22 **
23 ** You should have received a copy of the GNU General Public License
24 ** along with this program; if not, write to the Free Software
25 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 ** --------------------------------------------------------------------------
27 */
28
29 /*
30 ** structures defined from the output of /proc/net/snmp and /proc/net/snmp6
31 */
32 struct ipv4_stats {
33 count_t Forwarding;
34 count_t DefaultTTL;
35 count_t InReceives;
36 count_t InHdrErrors;
37 count_t InAddrErrors;
38 count_t ForwDatagrams;
39 count_t InUnknownProtos;
40 count_t InDiscards;
41 count_t InDelivers;
42 count_t OutRequests;
43 count_t OutDiscards;
44 count_t OutNoRoutes;
45 count_t ReasmTimeout;
46 count_t ReasmReqds;
47 count_t ReasmOKs;
48 count_t ReasmFails;
49 count_t FragOKs;
50 count_t FragFails;
51 count_t FragCreates;
52 };
53
54 struct icmpv4_stats {
55 count_t InMsgs;
56 count_t InErrors;
57 count_t InCsumErrors;
58 count_t InDestUnreachs;
59 count_t InTimeExcds;
60 count_t InParmProbs;
61 count_t InSrcQuenchs;
62 count_t InRedirects;
63 count_t InEchos;
64 count_t InEchoReps;
65 count_t InTimestamps;
66 count_t InTimestampReps;
67 count_t InAddrMasks;
68 count_t InAddrMaskReps;
69 count_t OutMsgs;
70 count_t OutErrors;
71 count_t OutDestUnreachs;
72 count_t OutTimeExcds;
73 count_t OutParmProbs;
74 count_t OutSrcQuenchs;
75 count_t OutRedirects;
76 count_t OutEchos;
77 count_t OutEchoReps;
78 count_t OutTimestamps;
79 count_t OutTimestampReps;
80 count_t OutAddrMasks;
81 count_t OutAddrMaskReps;
82 };
83
84 struct udpv4_stats {
85 count_t InDatagrams;
86 count_t NoPorts;
87 count_t InErrors;
88 count_t OutDatagrams;
89 };
90
91 struct tcp_stats {
92 count_t RtoAlgorithm;
93 count_t RtoMin;
94 count_t RtoMax;
95 count_t MaxConn;
96 count_t ActiveOpens;
97 count_t PassiveOpens;
98 count_t AttemptFails;
99 count_t EstabResets;
100 count_t CurrEstab;
101 count_t InSegs;
102 count_t OutSegs;
103 count_t RetransSegs;
104 count_t InErrs;
105 count_t OutRsts;
106 };
107
108 struct ipv6_stats {
109 count_t Ip6InReceives;
110 count_t Ip6InHdrErrors;
111 count_t Ip6InTooBigErrors;
112 count_t Ip6InNoRoutes;
113 count_t Ip6InAddrErrors;
114 count_t Ip6InUnknownProtos;
115 count_t Ip6InTruncatedPkts;
116 count_t Ip6InDiscards;
117 count_t Ip6InDelivers;
118 count_t Ip6OutForwDatagrams;
119 count_t Ip6OutRequests;
120 count_t Ip6OutDiscards;
121 count_t Ip6OutNoRoutes;
122 count_t Ip6ReasmTimeout;
123 count_t Ip6ReasmReqds;
124 count_t Ip6ReasmOKs;
125 count_t Ip6ReasmFails;
126 count_t Ip6FragOKs;
127 count_t Ip6FragFails;
128 count_t Ip6FragCreates;
129 count_t Ip6InMcastPkts;
130 count_t Ip6OutMcastPkts;
131 };
132
133 struct icmpv6_stats {
134 count_t Icmp6InMsgs;
135 count_t Icmp6InErrors;
136 count_t Icmp6InDestUnreachs;
137 count_t Icmp6InPktTooBigs;
138 count_t Icmp6InTimeExcds;
139 count_t Icmp6InParmProblems;
140 count_t Icmp6InEchos;
141 count_t Icmp6InEchoReplies;
142 count_t Icmp6InGroupMembQueries;
143 count_t Icmp6InGroupMembResponses;
144 count_t Icmp6InGroupMembReductions;
145 count_t Icmp6InRouterSolicits;
146 count_t Icmp6InRouterAdvertisements;
147 count_t Icmp6InNeighborSolicits;
148 count_t Icmp6InNeighborAdvertisements;
149 count_t Icmp6InRedirects;
150 count_t Icmp6OutMsgs;
151 count_t Icmp6OutDestUnreachs;
152 count_t Icmp6OutPktTooBigs;
153 count_t Icmp6OutTimeExcds;
154 count_t Icmp6OutParmProblems;
155 count_t Icmp6OutEchoReplies;
156 count_t Icmp6OutRouterSolicits;
157 count_t Icmp6OutNeighborSolicits;
158 count_t Icmp6OutNeighborAdvertisements;
159 count_t Icmp6OutRedirects;
160 count_t Icmp6OutGroupMembResponses;
161 count_t Icmp6OutGroupMembReductions;
162 };
163
164 struct udpv6_stats {
165 count_t Udp6InDatagrams;
166 count_t Udp6NoPorts;
167 count_t Udp6InErrors;
168 count_t Udp6OutDatagrams;
169 };