Print this page
dccp: stats
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/inet/kstatcom.h
+++ new/usr/src/uts/common/inet/kstatcom.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License, Version 1.0 only
6 6 * (the "License"). You may not use this file except in compliance
7 7 * with the License.
8 8 *
9 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 * or http://www.opensolaris.org/os/licensing.
11 11 * See the License for the specific language governing permissions
12 12 * and limitations under the License.
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
15 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 * If applicable, add the following below this CDDL HEADER, with the
17 17 * fields enclosed by brackets "[]" replaced with your own identifying
18 18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 19 *
20 20 * CDDL HEADER END
21 21 */
22 22 /*
23 23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 24 * Use is subject to license terms.
25 25 */
26 26
27 27 #ifndef _INET_KSTATCOM_H
28 28 #define _INET_KSTATCOM_H
29 29
30 30 #pragma ident "%Z%%M% %I% %E% SMI"
31 31
32 32 #ifdef __cplusplus
33 33 extern "C" {
34 34 #endif
35 35
36 36
37 37 #include <sys/kstat.h>
38 38
39 39
40 40
41 41 typedef struct ip_named_kstat {
42 42 kstat_named_t forwarding;
43 43 kstat_named_t defaultTTL;
44 44 kstat_named_t inReceives;
45 45 kstat_named_t inHdrErrors;
46 46 kstat_named_t inAddrErrors;
47 47 kstat_named_t forwDatagrams;
48 48 kstat_named_t inUnknownProtos;
49 49 kstat_named_t inDiscards;
50 50 kstat_named_t inDelivers;
51 51 kstat_named_t outRequests;
52 52 kstat_named_t outDiscards;
53 53 kstat_named_t outNoRoutes;
54 54 kstat_named_t reasmTimeout;
55 55 kstat_named_t reasmReqds;
56 56 kstat_named_t reasmOKs;
57 57 kstat_named_t reasmFails;
58 58 kstat_named_t fragOKs;
59 59 kstat_named_t fragFails;
60 60 kstat_named_t fragCreates;
61 61 kstat_named_t addrEntrySize;
62 62 kstat_named_t routeEntrySize;
63 63 kstat_named_t netToMediaEntrySize;
64 64 kstat_named_t routingDiscards;
65 65 kstat_named_t inErrs;
66 66 kstat_named_t noPorts;
67 67 kstat_named_t inCksumErrs;
68 68 kstat_named_t reasmDuplicates;
69 69 kstat_named_t reasmPartDups;
70 70 kstat_named_t forwProhibits;
71 71 kstat_named_t udpInCksumErrs;
72 72 kstat_named_t udpInOverflows;
73 73 kstat_named_t rawipInOverflows;
74 74 kstat_named_t ipsecInSucceeded;
75 75 kstat_named_t ipsecInFailed;
76 76 kstat_named_t memberEntrySize;
77 77 kstat_named_t inIPv6;
78 78 kstat_named_t outIPv6;
79 79 kstat_named_t outSwitchIPv6;
80 80 } ip_named_kstat_t;
81 81
82 82
83 83 typedef struct ipv6IfStatsEntry_named_kstat {
84 84 kstat_named_t ifIndex;
85 85 kstat_named_t forwarding;
86 86 kstat_named_t defaultHopLimit;
87 87 kstat_named_t ifStatsEntrySize;
88 88 kstat_named_t addrEntrySize;
89 89 kstat_named_t routeEntrySize;
90 90 kstat_named_t netToMediaEntrySize;
91 91 kstat_named_t memberEntrySize;
92 92 kstat_named_t inReceives;
93 93 kstat_named_t inHdrErrors;
94 94 kstat_named_t inTooBigErrors;
95 95 kstat_named_t InUnknownProtos;
96 96 kstat_named_t inTruncatedPkts;
97 97 kstat_named_t inDisards;
98 98 kstat_named_t inDelivers;
99 99 kstat_named_t outForwDatagrams;
100 100 kstat_named_t outRequests;
101 101 kstat_named_t outDiscards;
102 102 kstat_named_t outFragOKs;
103 103 kstat_named_t outFragFails;
104 104 kstat_named_t outFragCreates;
105 105 kstat_named_t reasmReqds;
106 106 kstat_named_t reasmOKs;
107 107 kstat_named_t reasmFails;
108 108 kstat_named_t inMcastPkts;
109 109 kstat_named_t outMcastPkts;
110 110 kstat_named_t outNoRoutes;
111 111 kstat_named_t reasmDuplicates;
112 112 kstat_named_t reasmPartDups;
113 113 kstat_named_t forwProhibits;
114 114 kstat_named_t inChksumerrs;
115 115 kstat_named_t inOverflows;
116 116 } ipv6IfStatsEntry_named_kstat_t;
117 117
118 118
119 119 typedef struct ipAddrEntry_named_kstat {
120 120 kstat_named_t addr;
121 121 kstat_named_t ifIndex;
122 122 kstat_named_t netMask;
123 123 kstat_named_t bcastAddr;
124 124 kstat_named_t reasmMaxSize;
125 125 kstat_named_t mtu;
126 126 kstat_named_t metric;
127 127 kstat_named_t broadcast_addr;
128 128 kstat_named_t pp_dst_addr;
129 129 kstat_named_t flags;
130 130 kstat_named_t ibcnt;
131 131 kstat_named_t obcnt;
132 132 kstat_named_t focnt;
133 133 kstat_named_t subnet;
134 134 kstat_named_t subnet_len;
135 135 kstat_named_t src_addr;
136 136 } ipAddrEntry_named_kstat_t;
137 137
138 138
139 139 typedef struct ipv6AddrEntry_named_kstat {
140 140 kstat_named_t ifIndex;
141 141 kstat_named_t address;
142 142 kstat_named_t pfxLength;
143 143 kstat_named_t type;
144 144 kstat_named_t anycastFlag;
145 145 kstat_named_t status;
146 146 kstat_named_t mtu;
147 147 kstat_named_t metric;
148 148 kstat_named_t pp_dst_addr;
149 149 kstat_named_t flags;
150 150 kstat_named_t ibcnt;
151 151 kstat_named_t obcnt;
152 152 kstat_named_t focnt;
153 153 kstat_named_t subnet;
154 154 kstat_named_t subnet_len;
155 155 kstat_named_t src_addr;
156 156 } ipv6AddrEntry_named_kstat_t;
157 157
158 158
159 159 typedef struct ipRouteEntry_named_kstat {
160 160 kstat_named_t dest;
161 161 kstat_named_t ifIndex;
162 162 kstat_named_t metric1;
163 163 kstat_named_t metric2;
164 164 kstat_named_t metric3;
165 165 kstat_named_t metric4;
166 166 kstat_named_t nextHop;
167 167 kstat_named_t type;
168 168 kstat_named_t proto;
169 169 kstat_named_t age;
170 170 kstat_named_t mask;
171 171 kstat_named_t metric5;
172 172 kstat_named_t max_frag;
173 173 kstat_named_t rtt;
174 174 kstat_named_t ref;
175 175 kstat_named_t frag_flag;
176 176 kstat_named_t src_addr;
177 177 kstat_named_t ire_type;
178 178 kstat_named_t obppkt;
179 179 kstat_named_t ibpkt;
180 180 kstat_named_t flags;
181 181 kstat_named_t in_ill;
182 182 kstat_named_t in_src_addr;
183 183 } ipRouteEntry_named_kstat_t;
184 184
185 185
186 186 typedef struct ipv6RouteEntry_named_kstat {
187 187 kstat_named_t dest;
188 188 kstat_named_t pfxLength;
189 189 kstat_named_t index;
190 190 kstat_named_t ifIndex;
191 191 kstat_named_t nextHop;
192 192 kstat_named_t type;
193 193 kstat_named_t protocol;
194 194 kstat_named_t policy;
195 195 kstat_named_t age;
196 196 kstat_named_t nextHopRDI;
197 197 kstat_named_t metric;
198 198 kstat_named_t weight;
199 199 kstat_named_t max_frag;
200 200 kstat_named_t rtt;
201 201 kstat_named_t ref;
202 202 kstat_named_t frag_flag;
203 203 kstat_named_t src_addr;
204 204 kstat_named_t ire_type;
205 205 kstat_named_t obpkt;
206 206 kstat_named_t ibpkt;
207 207 kstat_named_t flags;
208 208 } ipv6RouteEntry_named_kstat_t;
209 209
210 210
211 211 typedef struct ipNextToMediaEntry_named_kstat {
212 212 kstat_named_t ifIndex;
213 213 kstat_named_t physAddress;
214 214 kstat_named_t netAddress;
215 215 kstat_named_t type;
216 216 kstat_named_t mask;
217 217 kstat_named_t flags;
218 218 } ipNextToMediaEntry_named_kstat_t;
219 219
220 220 typedef struct ipv6NextToMediaEntry_named_kstat {
221 221 kstat_named_t ifIndex;
222 222 kstat_named_t netAddress;
223 223 kstat_named_t physAddress;
224 224 kstat_named_t type;
225 225 kstat_named_t state;
226 226 kstat_named_t lastUpdated;
227 227 } ipv6NextToMediaEntry_named_kstat_t;
228 228
229 229 typedef struct icmp_named_kstat {
230 230 kstat_named_t inMsgs;
231 231 kstat_named_t inErrors;
232 232 kstat_named_t inDestUnreachs;
233 233 kstat_named_t inTimeExcds;
234 234 kstat_named_t inParmProbs;
235 235 kstat_named_t inSrcQuenchs;
236 236 kstat_named_t inRedirects;
237 237 kstat_named_t inEchos;
238 238 kstat_named_t inEchoReps;
239 239 kstat_named_t inTimestamps;
240 240 kstat_named_t inTimestampReps;
241 241 kstat_named_t inAddrMasks;
242 242 kstat_named_t inAddrMaskReps;
243 243 kstat_named_t outMsgs;
244 244 kstat_named_t outErrors;
245 245 kstat_named_t outDestUnreachs;
246 246 kstat_named_t outTimeExcds;
247 247 kstat_named_t outParmProbs;
248 248 kstat_named_t outSrcQuenchs;
249 249 kstat_named_t outRedirects;
250 250 kstat_named_t outEchos;
251 251 kstat_named_t outEchoReps;
252 252 kstat_named_t outTimestamps;
253 253 kstat_named_t outTimestampReps;
254 254 kstat_named_t outAddrMasks;
255 255 kstat_named_t outAddrMaskReps;
256 256 kstat_named_t inCksumErrs;
257 257 kstat_named_t inUnknowns;
258 258 kstat_named_t inFragNeeded;
259 259 kstat_named_t outFragNeeded;
260 260 kstat_named_t outDrops;
261 261 kstat_named_t inOverflows;
262 262 kstat_named_t inBadRedirects;
263 263 } icmp_named_kstat_t;
264 264
265 265
266 266 typedef struct ipv6IfIcmpEntry_named_kstat {
267 267 kstat_named_t ifIndex;
268 268 kstat_named_t entrySize;
269 269 kstat_named_t inMsgs;
270 270 kstat_named_t inErrors;
271 271 kstat_named_t inDestUnreachs;
272 272 kstat_named_t inAdminProhibs;
273 273 kstat_named_t inTimeExcds;
274 274 kstat_named_t inParmProblems;
275 275 kstat_named_t inPktTooBigs;
276 276 kstat_named_t inEchos;
277 277 kstat_named_t inEchoReplies;
278 278 kstat_named_t inRouterSolicits;
279 279 kstat_named_t inRouterAdvertisements;
280 280 kstat_named_t inNeighborSolicits;
281 281 kstat_named_t inNeighborAdvertisements;
282 282 kstat_named_t inRedirects;
283 283 kstat_named_t inGroupMembQueries;
284 284 kstat_named_t inGroupMembResponses;
285 285 kstat_named_t inGroupMembReductions;
286 286 kstat_named_t outMsgs;
287 287 kstat_named_t outErrors;
288 288 kstat_named_t outDestUnreachs;
289 289 kstat_named_t outAdminProhibs;
290 290 kstat_named_t outTimeExcds;
291 291 kstat_named_t outParmProblems;
292 292 kstat_named_t outPktTooBigs;
293 293 kstat_named_t outEchos;
294 294 kstat_named_t outEchoReplies;
295 295 kstat_named_t outRouterSolicits;
296 296 kstat_named_t outRouterAdvertisements;
297 297 kstat_named_t outNeighborSolicits;
298 298 kstat_named_t outNeighborAdvertisements;
299 299 kstat_named_t outRedirects;
300 300 kstat_named_t outGroupMembQueries;
301 301 kstat_named_t outGroupMembResponses;
302 302 kstat_named_t outGroupMembReductions;
303 303 kstat_named_t inOverflows;
304 304 kstat_named_t badHopLimit;
305 305 kstat_named_t inBadNeighborAdvertisemets;
306 306 kstat_named_t inBadNeighborSolicitations;
307 307 kstat_named_t inBadRedirects;
308 308 kstat_named_t inGroupMembBadQueries;
309 309 kstat_named_t inGroupMembBadReports;
310 310 kstat_named_t inGroupMembOurReports;
311 311 } ipv6IfIcmpEntry_named_kstat_t;
312 312
313 313
314 314 typedef struct sctp_named_kstat {
315 315 kstat_named_t sctpRtoAlgorithm;
316 316 kstat_named_t sctpRtoMin;
317 317 kstat_named_t sctpRtoMax;
318 318 kstat_named_t sctpRtoInitial;
319 319 kstat_named_t sctpMaxAssocs;
320 320 kstat_named_t sctpValCookieLife;
321 321 kstat_named_t sctpMaxInitRetr;
322 322 kstat_named_t sctpCurrEstab;
323 323 kstat_named_t sctpActiveEstab;
324 324 kstat_named_t sctpPassiveEstab;
325 325 kstat_named_t sctpAborted;
326 326 kstat_named_t sctpShutdowns;
327 327 kstat_named_t sctpOutOfBlue;
328 328 kstat_named_t sctpChecksumError;
329 329 kstat_named_t sctpOutCtrlChunks;
330 330 kstat_named_t sctpOutOrderChunks;
331 331 kstat_named_t sctpOutUnorderChunks;
332 332 kstat_named_t sctpRetransChunks;
333 333 kstat_named_t sctpOutAck;
334 334 kstat_named_t sctpOutAckDelayed;
335 335 kstat_named_t sctpOutWinUpdate;
336 336 kstat_named_t sctpOutFastRetrans;
337 337 kstat_named_t sctpOutWinProbe;
338 338 kstat_named_t sctpInCtrlChunks;
339 339 kstat_named_t sctpInOrderChunks;
340 340 kstat_named_t sctpInUnorderChunks;
341 341 kstat_named_t sctpInAck;
342 342 kstat_named_t sctpInDupAck;
343 343 kstat_named_t sctpInAckUnsent;
344 344 kstat_named_t sctpFragUsrMsgs;
345 345 kstat_named_t sctpReasmUsrMsgs;
346 346 kstat_named_t sctpOutSCTPPkts;
347 347 kstat_named_t sctpInSCTPPkts;
348 348 kstat_named_t sctpInInvalidCookie;
349 349 kstat_named_t sctpTimRetrans;
350 350 kstat_named_t sctpTimRetransDrop;
351 351 kstat_named_t sctpTimHeartBeatProbe;
352 352 kstat_named_t sctpTimHeartBeatDrop;
353 353 kstat_named_t sctpListenDrop;
354 354 kstat_named_t sctpInClosed;
355 355 } sctp_named_kstat_t;
356 356
357 357
358 358 typedef struct tcp_named_kstat {
359 359 kstat_named_t rtoAlgorithm;
360 360 kstat_named_t rtoMin;
361 361 kstat_named_t rtoMax;
362 362 kstat_named_t maxConn;
363 363 kstat_named_t activeOpens;
364 364 kstat_named_t passiveOpens;
365 365 kstat_named_t attemptFails;
366 366 kstat_named_t estabResets;
367 367 kstat_named_t currEstab;
368 368 kstat_named_t inSegs;
369 369 kstat_named_t outSegs;
370 370 kstat_named_t retransSegs;
371 371 kstat_named_t connTableSize;
372 372 kstat_named_t outRsts;
373 373 kstat_named_t outDataSegs;
374 374 kstat_named_t outDataBytes;
375 375 kstat_named_t retransBytes;
376 376 kstat_named_t outAck;
377 377 kstat_named_t outAckDelayed;
378 378 kstat_named_t outUrg;
379 379 kstat_named_t outWinUpdate;
380 380 kstat_named_t outWinProbe;
381 381 kstat_named_t outControl;
382 382 kstat_named_t outFastRetrans;
383 383 kstat_named_t inAckSegs;
384 384 kstat_named_t inAckBytes;
385 385 kstat_named_t inDupAck;
386 386 kstat_named_t inAckUnsent;
387 387 kstat_named_t inDataInorderSegs;
388 388 kstat_named_t inDataInorderBytes;
389 389 kstat_named_t inDataUnorderSegs;
390 390 kstat_named_t inDataUnorderBytes;
391 391 kstat_named_t inDataDupSegs;
392 392 kstat_named_t inDataDupBytes;
393 393 kstat_named_t inDataPartDupSegs;
394 394 kstat_named_t inDataPartDupBytes;
395 395 kstat_named_t inDataPastWinSegs;
396 396 kstat_named_t inDataPastWinBytes;
397 397 kstat_named_t inWinProbe;
398 398 kstat_named_t inWinUpdate;
399 399 kstat_named_t inClosed;
400 400 kstat_named_t rttNoUpdate;
401 401 kstat_named_t rttUpdate;
402 402 kstat_named_t timRetrans;
403 403 kstat_named_t timRetransDrop;
404 404 kstat_named_t timKeepalive;
405 405 kstat_named_t timKeepaliveProbe;
406 406 kstat_named_t timKeepaliveDrop;
407 407 kstat_named_t listenDrop;
408 408 kstat_named_t listenDropQ0;
409 409 kstat_named_t halfOpenDrop;
410 410 kstat_named_t outSackRetransSegs;
411 411 kstat_named_t connTableSize6;
412 412 } tcp_named_kstat_t;
413 413
414 414 typedef struct tcpConnEntry_named_kstat { /* IPv4 and IPv6 unified */
415 415 kstat_named_t state;
416 416 kstat_named_t localAddress;
417 417 kstat_named_t localPort;
418 418 kstat_named_t remAddress;
419 419 kstat_named_t remPort;
420 420 kstat_named_t snxt;
421 421 kstat_named_t suna;
422 422 kstat_named_t swnd;
423 423 kstat_named_t rnxt;
424 424 kstat_named_t rack;
425 425 kstat_named_t rwnd;
426 426 kstat_named_t rto;
427 427 kstat_named_t mss;
428 428 kstat_named_t internalState;
429 429 kstat_named_t ifIndex;
430 430 kstat_named_t version;
431 431 kstat_named_t pid;
432 432 } tcpConnEntry_named_kstat_t;
433 433
434 434 typedef struct udp_named_kstat {
435 435 kstat_named_t inDatagrams;
436 436 kstat_named_t inErrors;
437 437 kstat_named_t outDatagrams;
438 438 kstat_named_t entrySize;
439 439 kstat_named_t entry6Size;
440 440 kstat_named_t outErrors;
441 441 } udp_named_kstat_t;
442 442
443 443 typedef struct udpEntry_named_kstat {
444 444 kstat_named_t localAddress;
445 445 kstat_named_t localPort;
446 446 kstat_named_t state;
447 447 kstat_named_t remoteAddress;
448 448 kstat_named_t remotePort;
449 449 } udpEntry_named_kstat_t;
450 450
451 451
452 452 typedef struct udp6Entry_named_kstat {
453 453 kstat_named_t localAddress;
454 454 kstat_named_t localPort;
455 455 kstat_named_t ifIndex;
456 456 kstat_named_t state;
457 457 kstat_named_t remoteAddress;
458 458 kstat_named_t remotePort;
459 459 } udp6Entry_named_kstat_t;
↓ open down ↓ |
459 lines elided |
↑ open up ↑ |
460 460
461 461
462 462 typedef struct rawip_named_kstat {
463 463 kstat_named_t inDatagrams;
464 464 kstat_named_t inCksumErrs;
465 465 kstat_named_t inErrors;
466 466 kstat_named_t outDatagrams;
467 467 kstat_named_t outErrors;
468 468 } rawip_named_kstat_t;
469 469
470 +typedef struct dccp_named_kstat {
471 + kstat_named_t activeOpens;
472 + kstat_named_t passiveOpens;
473 + kstat_named_t inSegs;
474 + kstat_named_t outSegs;
475 +} dccp_named_kstat_t;
470 476
471 477 #define NUM_OF_FIELDS(S) (sizeof (S) / sizeof (kstat_named_t))
472 478
473 479 #ifdef __cplusplus
474 480 }
475 481 #endif
476 482
477 483 #endif /* _INET_KSTATCOM_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX