]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - net-tools/patches/net-tools-1.60-statistics-doubleword.patch
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / net-tools / patches / net-tools-1.60-statistics-doubleword.patch
1 diff -up net-tools-1.60/statistics.c.doubleword net-tools-1.60/statistics.c
2 --- net-tools-1.60/statistics.c.doubleword 2010-08-10 15:20:11.000000000 +0200
3 +++ net-tools-1.60/statistics.c 2010-08-10 15:21:24.000000000 +0200
4 @@ -63,54 +63,54 @@ static enum State state;
5 struct entry Iptab[] =
6 {
7 {"Forwarding", N_("Forwarding is %s"), i_forward | I_STATIC},
8 - {"DefaultTTL", N_("Default TTL is %lu"), number | I_STATIC},
9 - {"InReceives", N_("%lu total packets received"), number},
10 - {"InHdrErrors", N_("%lu with invalid headers"), opt_number},
11 - {"InAddrErrors", N_("%lu with invalid addresses"), opt_number},
12 - {"ForwDatagrams", N_("%lu forwarded"), number},
13 - {"InUnknownProtos", N_("%lu with unknown protocol"), opt_number},
14 - {"InDiscards", N_("%lu incoming packets discarded"), number},
15 - {"InDelivers", N_("%lu incoming packets delivered"), number},
16 - {"OutRequests", N_("%lu requests sent out"), number}, /*? */
17 - {"OutDiscards", N_("%lu outgoing packets dropped"), opt_number},
18 - {"OutNoRoutes", N_("%lu dropped because of missing route"), opt_number},
19 - {"ReasmTimeout", N_("%lu fragments dropped after timeout"), opt_number},
20 - {"ReasmReqds", N_("%lu reassemblies required"), opt_number}, /* ? */
21 - {"ReasmOKs", N_("%lu packets reassembled ok"), opt_number},
22 - {"ReasmFails", N_("%lu packet reassembles failed"), opt_number},
23 - {"FragOKs", N_("%lu fragments received ok"), opt_number},
24 - {"FragFails", N_("%lu fragments failed"), opt_number},
25 - {"FragCreates", N_("%lu fragments created"), opt_number}
26 + {"DefaultTTL", N_("Default TTL is %llu"), number | I_STATIC},
27 + {"InReceives", N_("%llu total packets received"), number},
28 + {"InHdrErrors", N_("%llu with invalid headers"), opt_number},
29 + {"InAddrErrors", N_("%llu with invalid addresses"), opt_number},
30 + {"ForwDatagrams", N_("%llu forwarded"), number},
31 + {"InUnknownProtos", N_("%llu with unknown protocol"), opt_number},
32 + {"InDiscards", N_("%llu incoming packets discarded"), number},
33 + {"InDelivers", N_("%llu incoming packets delivered"), number},
34 + {"OutRequests", N_("%llu requests sent out"), number}, /*? */
35 + {"OutDiscards", N_("%llu outgoing packets dropped"), opt_number},
36 + {"OutNoRoutes", N_("%llu dropped because of missing route"), opt_number},
37 + {"ReasmTimeout", N_("%llu fragments dropped after timeout"), opt_number},
38 + {"ReasmReqds", N_("%llu reassemblies required"), opt_number}, /* ? */
39 + {"ReasmOKs", N_("%llu packets reassembled ok"), opt_number},
40 + {"ReasmFails", N_("%llu packet reassembles failed"), opt_number},
41 + {"FragOKs", N_("%llu fragments received ok"), opt_number},
42 + {"FragFails", N_("%llu fragments failed"), opt_number},
43 + {"FragCreates", N_("%llu fragments created"), opt_number}
44 };
45
46 struct entry Icmptab[] =
47 {
48 - {"InMsgs", N_("%lu ICMP messages received"), number},
49 - {"InErrors", N_("%lu input ICMP message failed."), number},
50 - {"InDestUnreachs", N_("destination unreachable: %lu"), i_inp_icmp | I_TITLE},
51 - {"InTimeExcds", N_("timeout in transit: %lu"), i_inp_icmp | I_TITLE},
52 - {"InParmProbs", N_("wrong parameters: %lu"), i_inp_icmp | I_TITLE}, /*? */
53 - {"InSrcQuenchs", N_("source quenches: %lu"), i_inp_icmp | I_TITLE},
54 - {"InRedirects", N_("redirects: %lu"), i_inp_icmp | I_TITLE},
55 - {"InEchos", N_("echo requests: %lu"), i_inp_icmp | I_TITLE},
56 - {"InEchoReps", N_("echo replies: %lu"), i_inp_icmp | I_TITLE},
57 - {"InTimestamps", N_("timestamp request: %lu"), i_inp_icmp | I_TITLE},
58 - {"InTimestampReps", N_("timestamp reply: %lu"), i_inp_icmp | I_TITLE},
59 - {"InAddrMasks", N_("address mask request: %lu"), i_inp_icmp | I_TITLE}, /*? */
60 - {"InAddrMaskReps", N_("address mask replies: %lu"), i_inp_icmp | I_TITLE}, /*? */
61 - {"OutMsgs", N_("%lu ICMP messages sent"), number},
62 - {"OutErrors", N_("%lu ICMP messages failed"), number},
63 - {"OutDestUnreachs", N_("destination unreachable: %lu"), i_outp_icmp | I_TITLE},
64 - {"OutTimeExcds", N_("time exceeded: %lu"), i_outp_icmp | I_TITLE},
65 - {"OutParmProbs", N_("wrong parameters: %lu"), i_outp_icmp | I_TITLE}, /*? */
66 - {"OutSrcQuenchs", N_("source quench: %lu"), i_outp_icmp | I_TITLE},
67 - {"OutRedirects", N_("redirect: %lu"), i_outp_icmp | I_TITLE},
68 - {"OutEchos", N_("echo request: %lu"), i_outp_icmp | I_TITLE},
69 - {"OutEchoReps", N_("echo replies: %lu"), i_outp_icmp | I_TITLE},
70 - {"OutTimestamps", N_("timestamp requests: %lu"), i_outp_icmp | I_TITLE},
71 - {"OutTimestampReps", N_("timestamp replies: %lu"), i_outp_icmp | I_TITLE},
72 - {"OutAddrMasks", N_("address mask requests: %lu"), i_outp_icmp | I_TITLE},
73 - {"OutAddrMaskReps", N_("address mask replies: %lu"), i_outp_icmp | I_TITLE},
74 + {"InMsgs", N_("%llu ICMP messages received"), number},
75 + {"InErrors", N_("%llu input ICMP message failed."), number},
76 + {"InDestUnreachs", N_("destination unreachable: %llu"), i_inp_icmp | I_TITLE},
77 + {"InTimeExcds", N_("timeout in transit: %llu"), i_inp_icmp | I_TITLE},
78 + {"InParmProbs", N_("wrong parameters: %llu"), i_inp_icmp | I_TITLE}, /*? */
79 + {"InSrcQuenchs", N_("source quenches: %llu"), i_inp_icmp | I_TITLE},
80 + {"InRedirects", N_("redirects: %llu"), i_inp_icmp | I_TITLE},
81 + {"InEchos", N_("echo requests: %llu"), i_inp_icmp | I_TITLE},
82 + {"InEchoReps", N_("echo replies: %llu"), i_inp_icmp | I_TITLE},
83 + {"InTimestamps", N_("timestamp request: %llu"), i_inp_icmp | I_TITLE},
84 + {"InTimestampReps", N_("timestamp reply: %llu"), i_inp_icmp | I_TITLE},
85 + {"InAddrMasks", N_("address mask request: %llu"), i_inp_icmp | I_TITLE}, /*? */
86 + {"InAddrMaskReps", N_("address mask replies: %llu"), i_inp_icmp | I_TITLE}, /*? */
87 + {"OutMsgs", N_("%llu ICMP messages sent"), number},
88 + {"OutErrors", N_("%llu ICMP messages failed"), number},
89 + {"OutDestUnreachs", N_("destination unreachable: %llu"), i_outp_icmp | I_TITLE},
90 + {"OutTimeExcds", N_("time exceeded: %llu"), i_outp_icmp | I_TITLE},
91 + {"OutParmProbs", N_("wrong parameters: %llu"), i_outp_icmp | I_TITLE}, /*? */
92 + {"OutSrcQuenchs", N_("source quench: %llu"), i_outp_icmp | I_TITLE},
93 + {"OutRedirects", N_("redirect: %llu"), i_outp_icmp | I_TITLE},
94 + {"OutEchos", N_("echo request: %llu"), i_outp_icmp | I_TITLE},
95 + {"OutEchoReps", N_("echo replies: %llu"), i_outp_icmp | I_TITLE},
96 + {"OutTimestamps", N_("timestamp requests: %llu"), i_outp_icmp | I_TITLE},
97 + {"OutTimestampReps", N_("timestamp replies: %llu"), i_outp_icmp | I_TITLE},
98 + {"OutAddrMasks", N_("address mask requests: %llu"), i_outp_icmp | I_TITLE},
99 + {"OutAddrMaskReps", N_("address mask replies: %llu"), i_outp_icmp | I_TITLE},
100 };
101
102 struct entry Tcptab[] =
103 @@ -119,131 +119,131 @@ struct entry Tcptab[] =
104 {"RtoMin", "", number},
105 {"RtoMax", "", number},
106 {"MaxConn", "", number},
107 - {"ActiveOpens", N_("%lu active connections openings"), number},
108 - {"PassiveOpens", N_("%lu passive connection openings"), number},
109 - {"AttemptFails", N_("%lu failed connection attempts"), number},
110 - {"EstabResets", N_("%lu connection resets received"), number},
111 - {"CurrEstab", N_("%lu connections established"), number},
112 - {"InSegs", N_("%lu segments received"), number},
113 - {"OutSegs", N_("%lu segments send out"), number},
114 - {"RetransSegs", N_("%lu segments retransmited"), number},
115 - {"InErrs", N_("%lu bad segments received."), number},
116 - {"OutRsts", N_("%lu resets sent"), number},
117 + {"ActiveOpens", N_("%llu active connections openings"), number},
118 + {"PassiveOpens", N_("%llu passive connection openings"), number},
119 + {"AttemptFails", N_("%llu failed connection attempts"), number},
120 + {"EstabResets", N_("%llu connection resets received"), number},
121 + {"CurrEstab", N_("%llu connections established"), number},
122 + {"InSegs", N_("%llu segments received"), number},
123 + {"OutSegs", N_("%llu segments send out"), number},
124 + {"RetransSegs", N_("%llu segments retransmited"), number},
125 + {"InErrs", N_("%llu bad segments received."), number},
126 + {"OutRsts", N_("%llu resets sent"), number},
127 };
128
129 struct entry Udptab[] =
130 {
131 - {"InDatagrams", N_("%lu packets received"), number},
132 - {"NoPorts", N_("%lu packets to unknown port received."), number},
133 - {"InErrors", N_("%lu packet receive errors"), number},
134 - {"OutDatagrams", N_("%lu packets sent"), number},
135 + {"InDatagrams", N_("%llu packets received"), number},
136 + {"NoPorts", N_("%llu packets to unknown port received."), number},
137 + {"InErrors", N_("%llu packet receive errors"), number},
138 + {"OutDatagrams", N_("%llu packets sent"), number},
139 };
140
141 struct entry Tcpexttab[] =
142 {
143 - {"SyncookiesSent", N_("%lu SYN cookies sent"), opt_number},
144 - {"SyncookiesRecv", N_("%lu SYN cookies received"), opt_number},
145 - {"SyncookiesFailed", N_("%lu invalid SYN cookies received"), opt_number},
146 + {"SyncookiesSent", N_("%llu SYN cookies sent"), opt_number},
147 + {"SyncookiesRecv", N_("%llu SYN cookies received"), opt_number},
148 + {"SyncookiesFailed", N_("%llu invalid SYN cookies received"), opt_number},
149
150 - { "EmbryonicRsts", N_("%lu resets received for embryonic SYN_RECV sockets"),
151 + { "EmbryonicRsts", N_("%llu resets received for embryonic SYN_RECV sockets"),
152 opt_number },
153 - { "PruneCalled", N_("%lu packets pruned from receive queue because of socket"
154 + { "PruneCalled", N_("%llu packets pruned from receive queue because of socket"
155 " buffer overrun"), opt_number },
156 /* obsolete: 2.2.0 doesn't do that anymore */
157 - { "RcvPruned", N_("%lu packets pruned from receive queue"), opt_number },
158 - { "OfoPruned", N_("%lu packets dropped from out-of-order queue because of"
159 + { "RcvPruned", N_("%llu packets pruned from receive queue"), opt_number },
160 + { "OfoPruned", N_("%llu packets dropped from out-of-order queue because of"
161 " socket buffer overrun"), opt_number },
162 - { "OutOfWindowIcmps", N_("%lu ICMP packets dropped because they were "
163 + { "OutOfWindowIcmps", N_("%llu ICMP packets dropped because they were "
164 "out-of-window"), opt_number },
165 - { "LockDroppedIcmps", N_("%lu ICMP packets dropped because"
166 + { "LockDroppedIcmps", N_("%llu ICMP packets dropped because"
167 " socket was locked"), opt_number },
168 - { "TW", N_("%lu TCP sockets finished time wait in fast timer"), opt_number },
169 - { "TWRecycled", N_("%lu time wait sockets recycled by time stamp"), opt_number },
170 - { "TWKilled", N_("%lu TCP sockets finished time wait in slow timer"), opt_number },
171 - { "PAWSPassive", N_("%lu passive connections rejected because of"
172 + { "TW", N_("%llu TCP sockets finished time wait in fast timer"), opt_number },
173 + { "TWRecycled", N_("%llu time wait sockets recycled by time stamp"), opt_number },
174 + { "TWKilled", N_("%llu TCP sockets finished time wait in slow timer"), opt_number },
175 + { "PAWSPassive", N_("%llu passive connections rejected because of"
176 " time stamp"), opt_number },
177 - { "PAWSActive", N_("%lu active connections rejected because of "
178 + { "PAWSActive", N_("%llu active connections rejected because of "
179 "time stamp"), opt_number },
180 - { "PAWSEstab", N_("%lu packets rejects in established connections because of"
181 + { "PAWSEstab", N_("%llu packets rejects in established connections because of"
182 " timestamp"), opt_number },
183 - { "DelayedACKs", N_("%lu delayed acks sent"), opt_number },
184 - { "DelayedACKLocked", N_("%lu delayed acks further delayed because of"
185 + { "DelayedACKs", N_("%llu delayed acks sent"), opt_number },
186 + { "DelayedACKLocked", N_("%llu delayed acks further delayed because of"
187 " locked socket"), opt_number },
188 - { "DelayedACKLost", N_("Quick ack mode was activated %lu times"), opt_number },
189 - { "ListenOverflows", N_("%lu times the listen queue of a socket overflowed"),
190 + { "DelayedACKLost", N_("Quick ack mode was activated %llu times"), opt_number },
191 + { "ListenOverflows", N_("%llu times the listen queue of a socket overflowed"),
192 opt_number },
193 - { "ListenDrops", N_("%lu SYNs to LISTEN sockets ignored"), opt_number },
194 - { "TCPPrequeued", N_("%lu packets directly queued to recvmsg prequeue."),
195 + { "ListenDrops", N_("%llu SYNs to LISTEN sockets ignored"), opt_number },
196 + { "TCPPrequeued", N_("%llu packets directly queued to recvmsg prequeue."),
197 opt_number },
198 - { "TCPDirectCopyFromBacklog", N_("%lu packets directly received"
199 + { "TCPDirectCopyFromBacklog", N_("%llu packets directly received"
200 " from backlog"), opt_number },
201 - { "TCPDirectCopyFromPrequeue", N_("%lu packets directly received"
202 + { "TCPDirectCopyFromPrequeue", N_("%llu packets directly received"
203 " from prequeue"), opt_number },
204 - { "TCPPrequeueDropped", N_("%lu packets dropped from prequeue"), opt_number },
205 - { "TCPHPHits", N_("%lu packets header predicted"), number },
206 - { "TCPHPHitsToUser", N_("%lu packets header predicted and "
207 + { "TCPPrequeueDropped", N_("%llu packets dropped from prequeue"), opt_number },
208 + { "TCPHPHits", N_("%llu packets header predicted"), number },
209 + { "TCPHPHitsToUser", N_("%llu packets header predicted and "
210 "directly queued to user"), opt_number },
211 - { "SockMallocOOM", N_("Ran %lu times out of system memory during "
212 + { "SockMallocOOM", N_("Ran %llu times out of system memory during "
213 "packet sending"), opt_number },
214 - { "TCPPureAcks", N_("%u acknowledgments not containing data received"), opt_number },
215 - { "TCPHPAcks", N_("%u predicted acknowledgments"), opt_number },
216 - { "TCPRenoRecovery", N_("%u times recovered from packet loss due to fast retransmit"), opt_number },
217 - { "TCPSackRecovery", N_("%u times recovered from packet loss due to SACK data"), opt_number },
218 - { "TCPSACKReneging", N_("%u bad SACKs received"), opt_number },
219 - { "TCPFACKReorder", N_("Detected reordering %u times using FACK"), opt_number },
220 - { "TCPSACKReorder", N_("Detected reordering %u times using SACK"), opt_number },
221 - { "TCPTSReorder", N_("Detected reordering %u times using time stamp"), opt_number },
222 - { "TCPRenoReorder", N_("Detected reordering %u times using reno fast retransmit"), opt_number },
223 - { "TCPFullUndo", N_("%u congestion windows fully recovered"), opt_number },
224 - { "TCPPartialUndo", N_("%u congestion windows partially recovered using Hoe heuristic"), opt_number },
225 - { "TCPDSackUndo", N_("%u congestion window recovered using DSACK"), opt_number },
226 - { "TCPLossUndo", N_("%u congestion windows recovered after partial ack"), opt_number },
227 - { "TCPLostRetransmits", N_("%u retransmits lost"), opt_number },
228 - { "TCPRenoFailures", N_("%u timeouts after reno fast retransmit"), opt_number },
229 - { "TCPSackFailures", N_("%u timeouts after SACK recovery"), opt_number },
230 - { "TCPLossFailures", N_("%u timeouts in loss state"), opt_number },
231 - { "TCPFastRetrans", N_("%u fast retransmits"), opt_number },
232 - { "TCPForwardRetrans", N_("%u forward retransmits"), opt_number },
233 - { "TCPSlowStartRetrans", N_("%u retransmits in slow start"), opt_number },
234 - { "TCPTimeouts", N_("%u other TCP timeouts"), opt_number },
235 - { "TCPRenoRecoveryFailed", N_("%u reno fast retransmits failed"), opt_number },
236 - { "TCPSackRecoveryFail", N_("%u sack retransmits failed"), opt_number },
237 - { "TCPSchedulerFailed", N_("%u times receiver scheduled too late for direct processing"), opt_number },
238 - { "TCPRcvCollapsed", N_("%u packets collapsed in receive queue due to low socket buffer"), opt_number },
239 - { "TCPDSACKOldSent", N_("%u DSACKs sent for old packets"), opt_number },
240 - { "TCPDSACKOfoSent", N_("%u DSACKs sent for out of order packets"), opt_number },
241 - { "TCPDSACKRecv", N_("%u DSACKs received"), opt_number },
242 - { "TCPDSACKOfoRecv", N_("%u DSACKs for out of order packets received"), opt_number },
243 - { "TCPAbortOnSyn", N_("%u connections reset due to unexpected SYN"), opt_number },
244 - { "TCPAbortOnData", N_("%u connections reset due to unexpected data"), opt_number },
245 - { "TCPAbortOnClose", N_("%u connections reset due to early user close"), opt_number },
246 - { "TCPAbortOnMemory", N_("%u connections aborted due to memory pressure"), opt_number },
247 - { "TCPAbortOnTimeout", N_("%u connections aborted due to timeout"), opt_number },
248 - { "TCPAbortOnLinger", N_("%u connections aborted after user close in linger timeout"), opt_number },
249 - { "TCPAbortFailed", N_("%u times unable to send RST due to no memory"), opt_number },
250 - { "TCPMemoryPressures", N_("TCP ran low on memory %u times"), opt_number },
251 - { "TCPLoss", N_("%u TCP data loss events") },
252 + { "TCPPureAcks", N_("%llu acknowledgments not containing data received"), opt_number },
253 + { "TCPHPAcks", N_("%llu predicted acknowledgments"), opt_number },
254 + { "TCPRenoRecovery", N_("%llu times recovered from packet loss due to fast retransmit"), opt_number },
255 + { "TCPSackRecovery", N_("%llu times recovered from packet loss due to SACK data"), opt_number },
256 + { "TCPSACKReneging", N_("%llu bad SACKs received"), opt_number },
257 + { "TCPFACKReorder", N_("Detected reordering %llu times using FACK"), opt_number },
258 + { "TCPSACKReorder", N_("Detected reordering %llu times using SACK"), opt_number },
259 + { "TCPTSReorder", N_("Detected reordering %llu times using time stamp"), opt_number },
260 + { "TCPRenoReorder", N_("Detected reordering %llu times using reno fast retransmit"), opt_number },
261 + { "TCPFullUndo", N_("%llu congestion windows fully recovered"), opt_number },
262 + { "TCPPartialUndo", N_("%llu congestion windows partially recovered using Hoe heuristic"), opt_number },
263 + { "TCPDSackUndo", N_("%llu congestion window recovered using DSACK"), opt_number },
264 + { "TCPLossUndo", N_("%llu congestion windows recovered after partial ack"), opt_number },
265 + { "TCPLostRetransmits", N_("%llu retransmits lost"), opt_number },
266 + { "TCPRenoFailures", N_("%llu timeouts after reno fast retransmit"), opt_number },
267 + { "TCPSackFailures", N_("%llu timeouts after SACK recovery"), opt_number },
268 + { "TCPLossFailures", N_("%llu timeouts in loss state"), opt_number },
269 + { "TCPFastRetrans", N_("%llu fast retransmits"), opt_number },
270 + { "TCPForwardRetrans", N_("%llu forward retransmits"), opt_number },
271 + { "TCPSlowStartRetrans", N_("%llu retransmits in slow start"), opt_number },
272 + { "TCPTimeouts", N_("%llu other TCP timeouts"), opt_number },
273 + { "TCPRenoRecoveryFailed", N_("%llu reno fast retransmits failed"), opt_number },
274 + { "TCPSackRecoveryFail", N_("%llu sack retransmits failed"), opt_number },
275 + { "TCPSchedulerFailed", N_("%llu times receiver scheduled too late for direct processing"), opt_number },
276 + { "TCPRcvCollapsed", N_("%llu packets collapsed in receive queue due to low socket buffer"), opt_number },
277 + { "TCPDSACKOldSent", N_("%llu DSACKs sent for old packets"), opt_number },
278 + { "TCPDSACKOfoSent", N_("%llu DSACKs sent for out of order packets"), opt_number },
279 + { "TCPDSACKRecv", N_("%llu DSACKs received"), opt_number },
280 + { "TCPDSACKOfoRecv", N_("%llu DSACKs for out of order packets received"), opt_number },
281 + { "TCPAbortOnSyn", N_("%llu connections reset due to unexpected SYN"), opt_number },
282 + { "TCPAbortOnData", N_("%llu connections reset due to unexpected data"), opt_number },
283 + { "TCPAbortOnClose", N_("%llu connections reset due to early user close"), opt_number },
284 + { "TCPAbortOnMemory", N_("%llu connections aborted due to memory pressure"), opt_number },
285 + { "TCPAbortOnTimeout", N_("%llu connections aborted due to timeout"), opt_number },
286 + { "TCPAbortOnLinger", N_("%llu connections aborted after user close in linger timeout"), opt_number },
287 + { "TCPAbortFailed", N_("%llu times unable to send RST due to no memory"), opt_number },
288 + { "TCPMemoryPressures", N_("TCP ran low on memory %llu times"), opt_number },
289 + { "TCPLoss", N_("%llu TCP data loss events") },
290 };
291
292 struct entry Sctptab[] =
293 {
294 - {"SctpCurrEstab", N_("%u Current Associations"), number},
295 - {"SctpActiveEstabs", N_("%u Active Associations"), number},
296 - {"SctpPassiveEstabs", N_("%u Passive Associations"), number},
297 - {"SctpAborteds", N_("%u Number of Aborteds "), number},
298 - {"SctpShutdowns", N_("%u Number of Graceful Terminations"), number},
299 - {"SctpOutOfBlues", N_("%u Number of Out of Blue packets"), number},
300 - {"SctpChecksumErrors", N_("%u Number of Packets with invalid Checksum"), number},
301 - {"SctpOutCtrlChunks", N_("%u Number of control chunks sent"), number},
302 - {"SctpOutOrderChunks", N_("%u Number of ordered chunks sent"), number},
303 - {"SctpOutUnorderChunks", N_("%u Number of Unordered chunks sent"), number},
304 - {"SctpInCtrlChunks", N_("%u Number of control chunks received"), number},
305 - {"SctpInOrderChunks", N_("%u Number of ordered chunks received"), number},
306 - {"SctpInUnorderChunks", N_("%u Number of Unordered chunks received"), number},
307 - {"SctpFragUsrMsgs", N_("%u Number of messages fragmented"), number},
308 - {"SctpReasmUsrMsgs", N_("%u Number of messages reassembled "), number},
309 - {"SctpOutSCTPPacks", N_("%u Number of SCTP packets sent"), number},
310 - {"SctpInSCTPPacks", N_("%u Number of SCTP packets received"), number},
311 + {"SctpCurrEstab", N_("%llu Current Associations"), number},
312 + {"SctpActiveEstabs", N_("%llu Active Associations"), number},
313 + {"SctpPassiveEstabs", N_("%llu Passive Associations"), number},
314 + {"SctpAborteds", N_("%llu Number of Aborteds "), number},
315 + {"SctpShutdowns", N_("%llu Number of Graceful Terminations"), number},
316 + {"SctpOutOfBlues", N_("%llu Number of Out of Blue packets"), number},
317 + {"SctpChecksumErrors", N_("%llu Number of Packets with invalid Checksum"), number},
318 + {"SctpOutCtrlChunks", N_("%llu Number of control chunks sent"), number},
319 + {"SctpOutOrderChunks", N_("%llu Number of ordered chunks sent"), number},
320 + {"SctpOutUnorderChunks", N_("%llu Number of Unordered chunks sent"), number},
321 + {"SctpInCtrlChunks", N_("%llu Number of control chunks received"), number},
322 + {"SctpInOrderChunks", N_("%llu Number of ordered chunks received"), number},
323 + {"SctpInUnorderChunks", N_("%llu Number of Unordered chunks received"), number},
324 + {"SctpFragUsrMsgs", N_("%llu Number of messages fragmented"), number},
325 + {"SctpReasmUsrMsgs", N_("%llu Number of messages reassembled "), number},
326 + {"SctpOutSCTPPacks", N_("%llu Number of SCTP packets sent"), number},
327 + {"SctpInSCTPPacks", N_("%llu Number of SCTP packets received"), number},
328 };
329
330 struct tabtab {
331 @@ -271,7 +271,7 @@ int cmpentries(const void *a, const void
332 return strcmp(((struct entry *) a)->title, ((struct entry *) b)->title);
333 }
334
335 -void printval(struct tabtab *tab, char *title, int val)
336 +void printval(struct tabtab *tab, char *title, unsigned long long val)
337 {
338 struct entry *ent = NULL, key;
339 int type;
340 @@ -283,7 +283,7 @@ void printval(struct tabtab *tab, char *
341 sizeof(struct entry), cmpentries);
342 if (!ent) { /* try our best */
343 if (val)
344 - printf("%*s%s: %d\n", states[state].indent, "", title, val);
345 + printf("%*s%s: %llu\n", states[state].indent, "", title, val);
346 return;
347 }
348 type = ent->type;
349 @@ -390,7 +390,7 @@ void process_fd(FILE *f,int file_desc)
350 *p = '\0';
351
352 if (*sp != '\0' && *(tab->flag))
353 - printval(tab, sp, strtoul(np, &np, 10));
354 + printval(tab, sp, strtoull(np, &np, 10));
355
356 sp = p + 1;
357 }
358 @@ -426,7 +426,7 @@ void process_fd2(FILE *f, const char *fi
359 sp += strspn(sp, " \t\n");
360
361 if (*sp != '\0' && *(tab->flag))
362 - printval(tab, buf1, strtoul(sp, 0, 10));
363 + printval(tab, buf1, strtoull(sp, 0, 10));
364 }
365 return;
366